Appearance
Post/Reel Info
GET /v1/instagram/post
Fetches detailed metadata for a single Instagram post or reel by shortcode or URL. Returns caption text, like count, comment count, video URL, video play count, video duration, display images, owner info, tagged users, and carousel sidecar children when applicable. Play counts are Instagram-only views and exclude cross-posted Facebook views.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
url | string | yes | Instagram post or reel URL | |
region | string | no | 2 letter country code to set the proxy in | US |
trim | boolean | no | Set to true to get a trimmed response | |
download_media | boolean | no | Set to true to download the video/images and get back permanent Supabase URLs. Costs 10 credits if media is found, 1 credit otherwise. |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/instagram/post?url=<url>' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ url: '...' });
const res = await fetch(`https://api.scrapecreators.com/v1/instagram/post?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/instagram/post',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'url': '...'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators instagram post --helpExample Response
json
{
"data": {
"xdt_shortcode_media": {
"id": "3657869083548472514",
"shortcode": "DLDXI0fylTC",
"__typename": "XDTGraphVideo",
"thumbnail_src": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=c0.469.1206.1206a_dst-jpg_e35_s640x640_sh0.08_tt6&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_cat=104&_nc_oc=Q6cZ2QE_dnPQQ4wu9mDyMWXNHRAYOB8jcOQ_TxJE9VRReZUTgEUIXch0-khNb8H5VcwinCc&_nc_ohc=3V4jFXtydQsQ7kNvwHQ3Qp8&_nc_gid=aG9nPhpAiGuGUrkmWPrm6Q&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_AfOjs7er3gUbnHBBBBsi_iqeOOKHtqNfw1AFLrOYfXTVDQ&oe=685A2AED&_nc_sid=d885a2",
"display_url": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-15/509601086_18503874985017172_8563682873145552176_n.jpg?stp=dst-jpg_e35_p1080x1080_sh0.08_tt6&_nc_ht=scontent-iad3-1.cdninstagram.com&_nc_cat=104&_nc_oc=Q6cZ2QE_dnPQQ4wu9mDyMWXNHRAYOB8jcOQ_TxJE9VRReZUTgEUIXch0-khNb8H5VcwinCc&_nc_ohc=3V4jFXtydQsQ7kNvwHQ3Qp8&_nc_gid=aG9nPhpAiGuGUrkmWPrm6Q&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_AfO_siFFGU1ggTsVsukqx_uxf69WPySR5tDouIn7xN604A&oe=685A2AED&_nc_sid=d885a2",
"video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t16/f2/m86/AQPIiBLJBqG6YM9FzeabZmQkGTo94LpWkFoXGZJKZzy1TmBaeQneYOCvLLIE9oatPQwWEFvodXRGHTKQmyBOxJfo3UbjavdoyajuoZA.mp4?stp=dst-mp4&efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uY2xpcHMuYzIuNzIwLmJhc2VsaW5lIn0&_nc_cat=103&vs=1061284792789338_358197508&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC84NTQxMUYyMDM1NDdDN0E4ODc4N0FDRUIyMUUyRDQ4OV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HTk1hVGg1M1FKWnRBWG9FQUF3Y2JiN3gyZkVSYnFfRUFBQUYVAgLIARIAKAAYABsAFQAAJuzxz6DikvE%2FFQIoAkMzLBdAVSqfvnbItBgSZGFzaF9iYXNlbGluZV8xX3YxEQB1%2Fgdl5p0BAA%3D%3D&_nc_rid=b32127cffa&ccb=9-4&oh=00_AfMDvtWEdtNwN65iaFnkXOOEtR-W6ttellTLNCr3L_dovA&oe=68562DB4&_nc_sid=d885a2",
"has_audio": true,
"accessibility_caption": null,
"video_view_count": 0,
"video_play_count": 425901,
"product_type": "clips",
"video_duration": 84.666,
"clips_music_attribution_info": {
"artist_name": "jane",
"song_name": "Original audio",
"uses_original_audio": true,
"should_mute_audio": false,
"should_mute_audio_reason": "",
"audio_id": "3011705342342322"
},
"is_video": true,
"owner": {
"id": "21393171",
"username": "jane",
"is_verified": true,
"profile_pic_url": "https://scontent-iad3-2.cdninstagram.com/v/t51.2885-19/482782944_496357423346018_5818268903424754264_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=scontent-iad3-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2QE_dnPQQ4wu9mDyMWXNHRAYOB8jcOQ_TxJE9VRReZUTgEUIXch0-khNb8H5VcwinCc&_nc_ohc=UOwY1iuLY14Q7kNvwGxpnGC&_nc_gid=aG9nPhpAiGuGUrkmWPrm6Q&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_AfMoD70mIn__G3PAJReI4bkQpSODkCurTmjbCMJiB2vxvA&oe=685A30E8&_nc_sid=d885a2",
"blocked_by_viewer": false,
... (truncated)Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |