location_idstringจำเป็น
Location ID
https://api.sandbase.ai/v1/api/instagram/v2/location-postsReturns public Instagram posts tagged at a designated location. Requires a location ID and supports pagination tokens for browsing subsequent results.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
data.count.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.
| Name | Type | Required | Description |
|---|---|---|---|
location_id | string | Yes | Location ID |
pagination_token | string | No | Pagination token from previous 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…"
}
| Field | Meaning |
|---|---|
data.count | Number 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[].code | Short post code, such as DfRKBtKMS51. Use it to build the post URL or to look the post up in another API. |
data.items[].fbid | Numeric ID string for the post. |
data.items[].caption.created_at / data.items[].caption.created_at_utc | Unix 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_count | Number of comments on the post. |
data.items[].carousel_media_count | Number of items in a carousel post. Only carousel posts include it. carousel_media may list fewer items than this count. |
data.items[].carousel_media[].id | ID of one item inside a carousel post. |
data.items[].clips_metadata.audio_type | Type of audio on a reel, such as original_sounds or licensed_music. |
pagination_token | Token for the next page of results. Send it back as pagination_token. |
location_id with Instagram Location Search, or with Instagram Location Search by Coordinates if you only have coordinates.location_id and the pagination_token from the previous response.clips_metadata, carousels include carousel_media, and caption can be null.code to Instagram Post Details (V2).$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
location_idstringจำเป็นLocation ID
pagination_tokenstringPagination token from previous response
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v2/location-posts โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.002 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: location_id (string). ตัวเลือก: pagination_token (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Instagram Location Posts (V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก