# Instagram location posts

Needs location id. Served by TikHub.

Purpose:
- Get Instagram location-related posts
- Support sorting by top or latest
- Location ID can be obtained from search API (search_places) or post details
Parameters:
- location_id: Location ID (numeric)
- tab: Post sort order
    - `ranked`: Top posts (default)
    - `recent`: Latest posts
- first: Posts per page (default 12, max 50)
- after: Pagination cursor from previous response `page_info.end_cursor`
- page_size_override: Posts per page (default 12)
Return:
- `data.sections`: Post section list
    - `layout_content.medias`: Media list
        - `media.id`: Post ID
        - `media.code`: Post shortcode
        - `media.media_type`: Media type (1=image, 2=video, 8=carousel)
        - `media.like_count`: Likes count
        - `media.comment_count`: Comments count
        - `media.caption.text`: Post caption text
        - `media.user`: Publisher info
- `data.next_max_id`: Next page cursor
- `data.next_page`: Next page info
- `data.more_available`: Whether has more content

示例/Example
location_id = "1016248898"
tab = "ranked"

- Tool ID: `tikhub/instagram-v3-get-location-posts`
- Name in the catalog: Instagram, Get location posts
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [Instagram search](/tools/instagram/search.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": {
    "location_id": {
      "type": "string",
      "description": "地点ID/Location ID",
      "title": "Location Id"
    },
    "tab": {
      "enum": [
        "ranked",
        "recent"
      ],
      "type": "string",
      "description": "帖子类型/Post type. 可选值/Options: ranked(热门/top), recent(最新/latest). Example: ranked",
      "default": "ranked",
      "title": "Tab"
    },
    "first": {
      "type": "integer",
      "maximum": 50,
      "minimum": 1,
      "description": "翻页时每页数量/Posts per page",
      "default": 12,
      "title": "First"
    },
    "after": {
      "type": "string",
      "description": "翻页游标，从上一次响应的end_cursor获取/Pagination cursor from previous response end_cursor",
      "title": "After"
    },
    "page_size_override": {
      "type": "integer",
      "description": "每页数量/Page size",
      "default": 12,
      "title": "Page Size Override"
    }
  },
  "required": [
    "location_id"
  ],
  "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-location-posts",
  "input": {
    "location_id": "1016248898",
    "tab": "ranked",
    "first": 12,
    "page_size_override": 12
  }
}
```

## 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_location_posts_api_v1_instagram_v3_get_location_posts_get)

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

---

[HTML page](/providers/tikhub/instagram-v3-get-location-posts) · [Agent index](/llms.txt)
