# Instagram post info by shortcode

Needs code. Served by TikHub.

Purpose:
- Get post details by shortcode
- Shortcode is the identifier in the post URL, e.g., `DUajw4YkorV` from `https://www.instagram.com/p/DUajw4YkorV/`
- Returns complete post info
Parameters:
- code: Post shortcode (e.g., DUajw4YkorV, required)
Return:
- `data.items`: Post info list
    - `id`: Post ID
    - `code`: Post shortcode
    - `media_type`: Media type (1=image, 2=video, 8=carousel)
    - `like_count`: Likes count
    - `comment_count`: Comments count
    - `caption.text`: Post caption text
    - `user`: Publisher info
    - `image_versions2`: Image version list
    - `video_versions`: Video version list (exists for videos)
    - `carousel_media`: Carousel media list (exists for carousels)
    - `taken_at`: Published timestamp

示例/Example
code = "DUajw4YkorV"

- Tool ID: `tikhub/instagram-v3-get-post-info-by-code`
- Name in the catalog: Instagram, Get post info by shortcode
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [Instagram posts](/tools/instagram/posts.md)
- Price: $0.008 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.008
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.008; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "帖子短代码/Post shortcode",
      "title": "Code"
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/instagram-v3-get-post-info-by-code",
  "input": {
    "code": "DUajw4YkorV"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/Instagram-V3-API/get_post_info_by_code_api_v1_instagram_v3_get_post_info_by_code_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/instagram-v3-get-post-info-by-code) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/instagram-v3-get-post-info-by-code) · [Agent index](/llms.txt)
