codestring필수
Post shortcode (e.g., DUajw4YkorV, required)
https://api.sandbase.ai/v1/api/instagram/v3/post-info-by-codeRetrieves detailed post information and media items for an Instagram post using its shortcode. Provides carousel media details, accessibility captions, and post identifiers.
[
{
"data": {
"_rid": "18909d626f419",
"auto_load_more_enabled": false,
"items": [
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"all_previous_submitters": [],
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"boost_unavailable_reason_v2": null,
"can_modify_carousel": false,
"can_see_insights_as_brand": false,
"can_view_more_preview_comments": false,
"can_viewer_reshare": true,
"can_viewer_save": true,
"caption": {
"bit_flags": 0,
"content_type": "comment",
"created_at": 1770377722,
"created_at_utc": 1770377722,
"did_report_as_spam": false,
"is_covered": false,
"is_ranked_comment": false,
"media_id": "3826528124109228757",
"pk": "18066362081641928",
"private_reply_status": 0,
"share_enabled": false,
"status": "Active",
"strong_id__": "18066362081641928",
"text": "breeze breeze breeze 🌀🌀🌀",
"type": 1,
"user": {
"fbid_v2": "17841464450204076",
"full_name": "Gigi",
"id": "64352612340",
"is_private": false,
"is_unpublished": false,
"is_verified": false,
"pk": "64352612340",
"pk_id": "64352612340",
"profile_pic_id": "3946880307500807853_64352612340",
"profile_pic_url": "https://instagram.flas1-1.fna.fbcdn.net/v/t51.82787-19/754250350_17963106291148341_7483633330144180762_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42NTkuYzIifQ&_nc_ht=instagram.flas1-1.fna.fbcdn.net&_nc_cat=109&_nc_oc=Q6cZ2gGS4yy-2SAvjjDs6JkhMg-wdG9vkCtyPfoiGrEfQ…",
"strong_id__": "64352612340",
"username": "hiyroze"
},
"user_id": "64352612340"
},
"caption_is_edited": false,
"carousel_media": [
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"caption": null,
"carousel_parent_id": "3826528124109228757_64352612340",
"commerciality_status": "not_commercial",
"creative_config": null,
"explore_pivot_grid": false,
"fb_user_tags": {
"in": []
},
"featured_products": [],
"id": "3826527467373490175_64352612340",
"image_versions2": {
"candidates": [
"…",
"…"
]
},
"media_overlay_info": null,
"media_type": 1,
"original_height": 1920,
"original_width": 1440,
"pk": "3826527467373490175",
"product_suggestions": [],
"product_type": "carousel_item",
"sharing_friction_info": {
"bloks_app_url": null,
"sharing_friction_payload": null,
"should_have_sharing_friction": false
},
"shop_routing_user_id": null,
"strong_id__": "3826527467373490175_64352612340",
"taken_at": 1770377719,
"tappable_elements": []
},
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"caption": null,
"carousel_parent_id": "3826528124109228757_64352612340",
"commerciality_status": "not_commercial",
"creative_config": null,
"explore_pivot_grid": false,
"fb_user_tags": {
"in": []
},
"featured_products": [],
"id": "3826527480602347118_64352612340",
"image_versions2": {
"candidates": [
"…",
"…"
]
},
"media_overlay_info": null,
"media_type": 1,
"original_height": 1920,
"original_width": 1440,
"pk": "3826527480602347118",
"product_suggestions": [],
"product_type": "carousel_item",
"sharing_friction_info": {
"bloks_app_url": null,
"sharing_friction_payload": null,
"should_have_sharing_friction": false
},
"shop_routing_user_id": null,
"strong_id__": "3826527480602347118_64352612340",
"taken_at": 1770377719,
"tappable_elements": []
},
"… 5 more items in the full response"
],
"carousel_media_count": 7,
"carousel_media_ids": [
"3826527467373490175",
"3826527480602347118",
"… 5 more items in the full response"
],
"carousel_media_pending_post_count": 0,
"client_cache_key": "MzgyNjUyODEyNDEwOTIyODc1Nw==.3",
"coauthor_producer_can_see_organic_insights": false,
"coauthor_producers": [],
"code": "DUajw4YkorV",
"collaborator_edit_eligibility": false,
"comment_count": 49,
"comment_inform_treatment": {
"action_type": null,
"should_have_inform_treatment": false,
"text": "",
"url": null
},
"comment_likes_enabled": true,
"community_notes_info": {
"enable_submission_friction": false,
"has_viewer_submitted_note": false,
"is_eligible_for_request_a_note": true,
"note_submission_disabled": false
},
"creative_config": null,
"creator_is_in_premium_reactions_alpha": null,
"crosspost_metadata": {
"fb_downstream_use_xpost_metadata": {
"downstream_use_xpost_deny_reason": "NONE"
}
},
"deleted_reason": 0,
"device_timestamp": 1770377642458069,
"eligible_insights_entrypoints": "NONE",
"enable_media_notes_production": true,
"facepile_top_likers": [],
"fb_user_tags": {
"in": []
},
"fbid": "18066362078641928",
"featured_products": [],
"filter_type": 0,
"floating_context_items": [],
"gen_ai_detection_method": {
"detection_method": "NONE"
},
"has_delayed_metadata": false,
"…": "79 more fields in the full response"
}
],
"more_available": false,
"num_results": 1,
"status": "ok"
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Get an Instagram post or reel by its shortcode: caption, media type, like and comment counts, post time, author, images, video URLs and carousel items.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/post-info-by-code" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "DUajw4YkorV"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Post shortcode (e.g., DUajw4YkorV, required) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"items": [
{
"pk": "3826528124109228757",
"code": "DUajw4YkorV",
"taken_at": 1770377720,
"media_type": 8,
"product_type": "carousel_container",
"like_count": 12296,
"comment_count": 49,
"carousel_media_count": 7,
"caption": {
"text": "breeze breeze breeze 🌀🌀🌀"
},
"user": {
"pk": "64352612340",
"username": "hiyroze",
"full_name": "Gigi",
"is_verified": false
}
}
],
"status": "ok"
}
| Field | Meaning |
|---|---|
items[].pk / code | Media ID and shortcode. |
items[].taken_at | Post time, Unix seconds. |
items[].media_type / product_type | 1 photo, 2 video, 8 carousel; clips for reels. |
items[].like_count / comment_count | Engagement counts. |
items[].caption.text | Caption. |
items[].user | Author username, full_name, pk. |
items[].image_versions2 / video_versions | Media URLs; signed and temporary. |
/p/ or /reel/; extract it with Extract Shortcode.$0.008 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
Send code with the exact shortcode, such as DUajw4YkorV, from a selected /p/ or /reel/ URL or trusted returned record. The body does not take a complete URL, username, numeric pk or composite post_owner ID. No decoder or extra shortcode-extraction call is required when the code is already known. Do not derive missing dates from an ID.
The October 7 full saved response has status ok and one items record. Validate the business status and array, then match item.code to the requested code before associating it. A completed outer request, an unrelated first record or an empty list is not proof of the selected detail. This route's status check is different from the user-reels payload with no status field.
The saved item is a seven-item carousel, not a Reel. It is an independent known-code example, not proof of a successful account-page-to-Reel-detail chain. The shortened README has different counter values; do not combine them into a measured growth series. Preserve media_type, product_type, exact string identifiers and missing values rather than forcing every result into a video shape.
Read caption.text for this response, rather than the Reels list's caption_text. The reference describes taken_at as Unix seconds; keep it distinct from your observation time and the saved-example timestamp. user/owner, image_versions2, video_versions and carousel_media differ from the normalized list fields. Keep returned preview comments as previews, not a complete comment thread or a new comments request.
Media references may be temporary, signed or unresolved. They are not downloaded files, permanent evidence or permission to reuse media. Preserve the selected shortcode and inspect metadata without automatically fetching images, videos, carousel children or author profiles. Returned more_available and auto_load_more_enabled do not add a pagination input to this single-code contract.
Choose a known username's Reels page or one known shortcode's detail. Share the setup Skill, Markdown quickstart, exact selected identifier and the fields you need. Keep SANDBASE_API_KEY locally and use POST /v1/api/ with Bearer authentication. Check a completed SandBase envelope and an object at outputs[0].data before the route-specific checks.
Pricing checked November 8, 2026 lists $0.008 per selected call, with 100 daily calls shared across eligible data APIs in the organization and a 00:00 UTC reset. Eligibility is not remaining allowance. A second selected endpoint is another call; this first task does not automatically add profiles, comments, media downloads or a schedule. No new business request, forward/backward page or paid call was made for this revision. The Instagram Reels Python guide distinguishes historical research, saved references and offline validation.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/post-info-by-code" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "DUajw4YkorV"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
codestring필수Post shortcode (e.g., DUajw4YkorV, required)
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"_rid": "18909d626f419",
"auto_load_more_enabled": false,
"items": [
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"all_previous_submitters": [],
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"boost_unavailable_reason_v2": null,
"can_modify_carousel": false,
"can_see_insights_as_brand": false,
"can_view_more_preview_comments": false,
"can_viewer_reshare": true,
"can_viewer_save": true,
"caption": {
"bit_flags": 0,
"content_type": "comment",
"created_at": 1770377722,
"created_at_utc": 1770377722,
"did_report_as_spam": false,
"is_covered": false,
"is_ranked_comment": false,
"media_id": "3826528124109228757",
"pk": "18066362081641928",
"private_reply_status": 0,
"share_enabled": false,
"status": "Active",
"strong_id__": "18066362081641928",
"text": "breeze breeze breeze 🌀🌀🌀",
"type": 1,
"user": {
"fbid_v2": "17841464450204076",
"full_name": "Gigi",
"id": "64352612340",
"is_private": false,
"is_unpublished": false,
"is_verified": false,
"pk": "64352612340",
"pk_id": "64352612340",
"profile_pic_id": "3946880307500807853_64352612340",
"profile_pic_url": "https://instagram.flas1-1.fna.fbcdn.net/v/t51.82787-19/754250350_17963106291148341_7483633330144180762_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42NTkuYzIifQ&_nc_ht=instagram.flas1-1.fna.fbcdn.net&_nc_cat=109&_nc_oc=Q6cZ2gGS4yy-2SAvjjDs6JkhMg-wdG9vkCtyPfoiGrEfQ…",
"strong_id__": "64352612340",
"username": "hiyroze"
},
"user_id": "64352612340"
},
"caption_is_edited": false,
"carousel_media": [
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"caption": null,
"carousel_parent_id": "3826528124109228757_64352612340",
"commerciality_status": "not_commercial",
"creative_config": null,
"explore_pivot_grid": false,
"fb_user_tags": {
"in": []
},
"featured_products": [],
"id": "3826527467373490175_64352612340",
"image_versions2": {
"candidates": [
"…",
"…"
]
},
"media_overlay_info": null,
"media_type": 1,
"original_height": 1920,
"original_width": 1440,
"pk": "3826527467373490175",
"product_suggestions": [],
"product_type": "carousel_item",
"sharing_friction_info": {
"bloks_app_url": null,
"sharing_friction_payload": null,
"should_have_sharing_friction": false
},
"shop_routing_user_id": null,
"strong_id__": "3826527467373490175_64352612340",
"taken_at": 1770377719,
"tappable_elements": []
},
{
"accessibility_caption": "Photo by Gigi on February 06, 2026.",
"caption": null,
"carousel_parent_id": "3826528124109228757_64352612340",
"commerciality_status": "not_commercial",
"creative_config": null,
"explore_pivot_grid": false,
"fb_user_tags": {
"in": []
},
"featured_products": [],
"id": "3826527480602347118_64352612340",
"image_versions2": {
"candidates": [
"…",
"…"
]
},
"media_overlay_info": null,
"media_type": 1,
"original_height": 1920,
"original_width": 1440,
"pk": "3826527480602347118",
"product_suggestions": [],
"product_type": "carousel_item",
"sharing_friction_info": {
"bloks_app_url": null,
"sharing_friction_payload": null,
"should_have_sharing_friction": false
},
"shop_routing_user_id": null,
"strong_id__": "3826527480602347118_64352612340",
"taken_at": 1770377719,
"tappable_elements": []
},
"… 5 more items in the full response"
],
"carousel_media_count": 7,
"carousel_media_ids": [
"3826527467373490175",
"3826527480602347118",
"… 5 more items in the full response"
],
"carousel_media_pending_post_count": 0,
"client_cache_key": "MzgyNjUyODEyNDEwOTIyODc1Nw==.3",
"coauthor_producer_can_see_organic_insights": false,
"coauthor_producers": [],
"code": "DUajw4YkorV",
"collaborator_edit_eligibility": false,
"comment_count": 49,
"comment_inform_treatment": {
"action_type": null,
"should_have_inform_treatment": false,
"text": "",
"url": null
},
"comment_likes_enabled": true,
"community_notes_info": {
"enable_submission_friction": false,
"has_viewer_submitted_note": false,
"is_eligible_for_request_a_note": true,
"note_submission_disabled": false
},
"creative_config": null,
"creator_is_in_premium_reactions_alpha": null,
"crosspost_metadata": {
"fb_downstream_use_xpost_metadata": {
"downstream_use_xpost_deny_reason": "NONE"
}
},
"deleted_reason": 0,
"device_timestamp": 1770377642458069,
"eligible_insights_entrypoints": "NONE",
"enable_media_notes_production": true,
"facepile_top_likers": [],
"fb_user_tags": {
"in": []
},
"fbid": "18066362078641928",
"featured_products": [],
"filter_type": 0,
"floating_context_items": [],
"gen_ai_detection_method": {
"detection_method": "NONE"
},
"has_delayed_metadata": false,
"…": "79 more fields in the full response"
}
],
"more_available": false,
"num_results": 1,
"status": "ok"
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Instagram | $0.008 / 호출 | JSON |
Instagram | $0.008 / 호출 | JSON |
Instagram | $0.008 / 호출 | JSON |
Instagram | $0.008 / 호출 | JSON |
Instagram | $0.002 / 호출 | JSON |
Instagram | $0.008 / 호출 | JSON |
가이드:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/instagram/v3/post-info-by-code에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.008, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: code (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Instagram Post Info by Shortcode은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Instagram API 액세스를 별도로 신청할 필요는 없습니다.
code에는 선택한 shortcode를 정확히 그대로 보내세요. SandBase envelope를 검증한 뒤 status ok, items 배열, 그리고 반환된 item.code가 요청과 일치하는지 확인하세요. 숫자 pk, 복합 ID, URL 또는 무관한 첫 번째 item은 동일하지 않습니다. ID에서 게시일을 추론하지 마세요.
아닙니다. 저장된 상세 정보는 독립적인 7개 항목 carousel 예시입니다. user-reels 페이지와 축약된 README는 별도의 참고 자료이며, 새로 테스트된 체인이나 시간에 따른 성장 시리즈가 아닙니다. 모든 상세 정보가 Reel이라고 가정하지 말고, post types와 카운터를 보존하세요.
미리보기 댓글은 완전한 스레드가 아닙니다. media URLs는 서명되었거나, 임시적이거나, 해석되지 않았을 수 있으며, 다운로드된 파일이나 재사용 허가가 아닙니다. 알려진 code를 읽는다고 해서 comments, profiles, carousel children 또는 다른 페이지가 자동으로 호출되지는 않습니다.