Docs / Instagram / Media

Instagram Media API Reference

A single post or reel by URL or shortcode, including caption and media URLs.

Maintained by the InScrape API team · Last reviewed 2026-09-19

GET /v1/instagram/post1 credit per request

Request examples

Choose your language

All examples call the same REST endpoint.

curl "https://api.inscrape.dev/v1/instagram/post?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FC8QltIdyBGH%2F" \
  -H "x-api-key: $INSCRAPE_KEY"

Response examples

Explore the response

Switch tabs to inspect representative payloads.

Include
{  "success": true,  "credits_charged": 1,  "credits_remaining": 843,  "processing_time_ms": 1842,  "requested_at": "2026-09-13T14:32:18Z",  "query": {    "url": "https://www.instagram.com/p/C8QltIdyBGH/"  },  "data": {    "media": [      {        "post_index": "1",        "id": "18058122345678901",        "shortCode": "C8QltIdyBGH",        "postLink": "https://www.instagram.com/p/C8QltIdyBGH/",        "post_timestamp": 1724176991,        "likes": 84112,        "comments": 902,        "reposts": 164,        "fb_like_count": null,        "fb_comment_count": null,        "mediaType": 2,        "product_type": "clips",        "caption": "Inside one of the planet's most remote landscapes. #explore",        "accessibility_caption": null,        "firstMedia": [          {            "url": "https://cdn.example.com/C8QltIdyBGH.jpg",            "videoUrl": "https://cdn.example.com/C8QltIdyBGH.mp4",            "width": 1080,            "height": 1350          }        ],        "carouselMedia": [],        "location": null,        "owner": {          "pk": "1751818088",          "username": "iamsydneythomas",          "full_name": "Sydney Thomas",          "is_verified": true,          "profile_pic_url": "https://cdn.example.com/iamsydneythomas.jpg"        },        "coauthors": [],        "usertags": [          {            "pk": "25025320",            "id": "25025320",            "username": "instagram",            "full_name": "Instagram",            "profile_pic_url": "https://cdn.example.com/instagram.jpg",            "is_verified": true,            "position": [              0.51,              0.44            ]          }        ],        "mentions": [          "instagram"        ],        "hashtag": [          "#explore"        ],        "caption_is_edited": false,        "is_paid_partnership": false,        "sponsor_tags": null,        "aigm_account_label_info": {          "attribution_label_text": null,          "is_auto_detected": false,          "is_enabled": false,          "is_manually_enabled": false        },        "latest_story_media": 0,        "like_and_view_counts_disabled": false,        "comments_disabled": false,        "commenting_disabled_for_viewer": false,        "can_viewer_reshare": true,        "ig_media_sharing_disabled": false,        "can_see_insights_as_brand": false,        "hasAudio": true,        "clips_metadata": {          "audio_type": "original_sounds",          "music_canonical_id": null,          "music_info": null,          "original_sound_info": {            "original_audio_title": "Original audio",            "should_mute_audio": false,            "audio_asset_id": "18401234567890123",            "consumption_info": {              "is_trending_in_clips": false,              "should_mute_audio_reason": "",              "should_mute_audio_reason_type": null            },            "ig_artist": {              "id": "1751818088",              "username": "iamsydneythomas",              "profile_pic_url": "https://cdn.example.com/iamsydneythomas.jpg"            },            "is_explicit": false,            "audio_filter_infos": null          }        },        "ai_agent_owner_username": null,        "ai_label_info": null,        "views": 2401558,        "post_date": "2024-08-20 18:03:11 UTC+0"      }    ]  }}

Headers

NameTypeRequiredDescription
x-api-keystringYesYour API key. All keys on a team share one credit pool.

Query parameters

NameTypeRequiredDescription
urlstringYesFull post URL or bare shortcode
include_commentsbooleanNoReturn commentsdefault: false

Errors

StatusCodeWhen
400
INVALID_PARAMSA required parameter is missing or the wrong type.
401
INVALID_API_KEYThe key is unknown or has been revoked.
402
INSUFFICIENT_CREDITSBalance is below this endpoint's cost.
402
KEY_LIMIT_REACHEDThis API key has reached its credit limit.
404
ENDPOINT_NOT_FOUNDThe API endpoint does not exist. Check the API URL and endpoint path. No credits are charged.
500
SCRAPE_FAILEDUpstream fetch failed after retries.
503
SERVICE_UNAVAILABLEThe API is temporarily unavailable. Check credits_charged; failures before resource use are free.
504
UPSTREAM_TIMEOUTThe upstream scraper timed out.

Completed lookups return 200 and are charged at the endpoint rate, including private accounts and confirmed missing targets. Empty or missing targets return empty lists; an unavailable Profile is null. Documented empty next-page responses remain free. Check credits_charged on every response.