Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Instagram Location Posts (V2)

API 文件
https://api.sandbase.ai/v1/api/instagram/v2/location-posts

Returns public Instagram posts tagged at a designated location. Requires a location ID and supports pagination tokens for browsing subsequent results.

價格
$0.002美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Location ID
Pagination token from previous response
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Instagram Location Posts (V2) API

Returns public Instagram posts tagged at one location. You send a location_id and get a page of posts, a total count, and a pagination_token for the next page.

Use cases

  • Collect recent public posts from a landmark, venue or neighborhood to see what visitors share.
  • Count how many posts are tagged at a place using data.count.
  • Page through a location's posts to build a media feed for a travel or local-guide site.
  • Pull post codes from a location to open each post in a related post-detail call.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/location-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location_id": "331004901"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
location_idstringYesLocation ID
pagination_tokenstringNoPagination token from previous response

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "count": 63,
    "items": [
      {
        "are_remixes_crosspostable": true,
        "boost_unavailable_identifier": null,
        "boost_unavailable_reason": null,
        "boost_unavailable_reason_v2": null,
        "can_reshare": true,
        "can_save": true,
        "caption": null,
        "caption_is_edited": false,
        "clips_metadata": {
          "achievements_info": {
            "num_earned_achievements": null,
            "show_achievements": false
          },
          "additional_audio_info": {
            "additional_audio_username": null,
            "audio_reattribution_info": {
              "should_allow_restore": false
            }
          },
          "asset_recommendation_info": null,
          "audio_canonical_id": "18452354581120915",
          "audio_ranking_info": {
            "best_audio_cluster_id": "1162699206086923"
          },
          "audio_type": "original_sounds",
          "basel_template_info_for_ig_app": {
            "is_basel_template": null,
            "original_template_media_id": null,
            "should_show_reuse_setting_for_owner": false,
            "use_template_deeplink": null
          },
          "branded_content_tag_info": {
            "can_add_tag": false
          }
        },
        "clips_tab_pinned_user_ids": [],
        "coauthor_producer_can_see_organic_insights": false,
        "coauthor_producers": []
      }
    ]
  },
  "pagination_token": "HE1lBBsp…"
}

Response fields

FieldMeaning
data.countNumber of posts reported for this location.
data.items[]One post tagged at the location. Posts can be single media, reels (with clips_metadata) or carousels (with carousel_media).
data.items[].codeShort post code, such as DfRKBtKMS51. Use it to build the post URL or to look the post up in another API.
data.items[].fbidNumeric ID string for the post.
data.items[].caption.created_at / data.items[].caption.created_at_utcUnix timestamp in seconds for when the caption was created. In this response both fields hold the same value. caption is null when the post has no caption.
data.items[].comment_countNumber of comments on the post.
data.items[].carousel_media_countNumber of items in a carousel post. Only carousel posts include it. carousel_media may list fewer items than this count.
data.items[].carousel_media[].idID of one item inside a carousel post.
data.items[].clips_metadata.audio_typeType of audio on a reel, such as original_sounds or licensed_music.
pagination_tokenToken for the next page of results. Send it back as pagination_token.

Notes

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON
Instagram每次呼叫 $0.002JSON

指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Instagram Location Posts (V2) API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/instagram/v2/location-posts。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Instagram Location Posts (V2) API 的費用是多少?

每次 $0.002。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Instagram Location Posts (V2) API 接受哪些參數?

必要:location_id (string)。 選填:pagination_token (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram Location Posts (V2) API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Instagram 開發者帳號或 API 金鑰嗎?

不需要。Instagram Location Posts (V2) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Instagram API 存取權。