Instagram profile reels API
A paged feed of the profile's public reels, 12 a page, with play, like and comment counts, caption, exact time, duration and video URL.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
stats.views is Instagram's play count (extra.views_source = plays). Look a profile up by handle.
You send one of handle or id.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/instagram/profile/reels" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'handle=nasa'import os
import requests
params = {
"handle": "nasa",
}
res = requests.get(
"https://api.socialscrape.io/v1/instagram/profile/reels",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/instagram/profile/reels");
url.search = new URLSearchParams({
handle: "nasa",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Instagram profile reels",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/instagram/profile/reels",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "nasa"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | one of | Username, with or without the leading @. Also accepted as username. |
id | string | one of | Numeric Instagram user id. Also accepted as user_id, userId. |
require_play_counts | boolean | Fail rather than return a reel whose play count is missing. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_6441bd0ae5a0a9feb3fc6f8e",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "instagram",
"id": "DfF3eqGSKKc",
"url": "https://www.instagram.com/reel/DfF3eqGSKKc/",
"type": "reel",
"author": {
"id": "673882723",
"handle": null,
"name": null,
"url": null,
"avatar_url": null,
"verified": null
},
"title": null,
"text": "More power loading. π\n\nToday, NASA astronaut Anil Menon and CSA (Canadian Space Agency) astronaut Joshua Kutryk conducted a spacewalk to install the 7th of ...",
"published_at": "2026-10-29T20:35:35Z",
"duration_seconds": 41,
"language": null,
"hashtags": [],
"mentions": [],
"stats": {
"views": 1022540,
"likes": 6274,
"comments": 64,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/865204930_18640535563026724_3353517023594775034_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=1&ccb=7-5&...",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQMgO65IBSO4D1Fg1v8qWRLjCR7N-LaX4H_sPQeyoyjFQE149o094RWHdy1qn9GBy1VHAND2Io7UoTGpUBgIXE-YSbD4UnaCrO694...",
"audio_url": null,
"image_urls": null,
"width": 1080,
"height": 1920
},
"song": {
"id": "29430201353240150",
"title": "Original audio",
"artist": "nasajohnson",
"url": "https://www.instagram.com/reels/audio/29430201353240150/"
},
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"accessibility_caption": "Video by NASAβs Johnson Space Center on October 29, 2026. May be an image of poster, magazine and text.",
"coauthors": [
"iss",
"nasa"
],
"media_id": "4018862241843028636",
"product_type": "clips",
"published_from": "taken_at",
"tagged_users": [
"nasa",
"iss",
"astro_anil"
]
}
},
{
"object": "post",
"platform": "instagram",
"id": "De7XCa_TJ4h",
"url": "https://www.instagram.com/reel/De7XCa_TJ4h/",
"type": "reel",
"author": {
"id": "79712351002",
"handle": null,
"name": null,
"url": null,
"avatar_url": null,
"verified": null
},
"title": null,
"text": "This is how @nasa does game day. Roll Tide! ππ",
"published_at": "2026-10-25T18:35:11Z",
"duration_seconds": 61,
"language": null,
"hashtags": [],
"mentions": [
"nasa"
],
"stats": {
"views": 4293502,
"likes": 50154,
"comments": 232,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-15/858088880_1909652077075572_3321833479248057878_n.jpg?stp=dst-jpg_e35_s640x640_tt6&_nc_cat=101&ccb=7-5...",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQO_XE-Eozfv9EhJgpBw8CpgqEydxrCcLTTmdJ4OmJL4u8TmjEREW4NyjX7EoxhsUiVfVbZseRJAIb1F9nUfjAsGTOK4bYFiS-v5f...",
"audio_url": null,
"image_urls": null,
"width": 1916,
"height": 1078
},
"song": {
"id": "28950738997869062",
"title": "Original audio",
"artist": "nasaadmin",
"url": "https://www.instagram.com/reels/audio/28950738997869062/"
},
"location": {
"name": "Bryant-Denny Stadium",
"address": null,
"city": null,
"region": null,
"country": null,
"latitude": 33.207475199557,
"longitude": -87.550968119022
},
"is_pinned": null,
"is_sponsored": null,
"extra": {
"accessibility_caption": "Video by NASA Administrator Jared Isaacman on October 25, 2026. May be an image of stadium and text.",
"coauthors": [
"univofalabama",
"nasa",
"alabamafbl"
],
"media_id": "4015904814218911265",
"product_type": "clips",
"published_from": "taken_at",
"tagged_users": [
"ua_athletics",
"alabamafbl",
"nasa"
]
}
}
],
"cursor": "c17841401474538262:AQHTHMmlaPdA-6bF07PfanKgYJNHJ-6Hq5zlmr-g3eo2kS9HJGFp94XRCnWa7ntQhXlpAImfwhLJOUMejXbYfaQenw",
"has_more": true,
"parent": {
"object": "profile",
"platform": "instagram",
"id": null,
"handle": "nasa",
"name": null,
"headline": null,
"url": "https://www.instagram.com/nasa/",
"kind": "unknown",
"bio": null,
"avatar_url": null,
"banner_url": null,
"verified": null,
"is_private": null,
"external_url": null,
"links": null,
"location": null,
"category": null,
"created_at": null,
"stats": {
"followers": null,
"following": null,
"posts": null,
"likes": null,
"views": null
},
"extra": null
}
},
"cursor": "c17841401474538262:AQHTHMmlaPdA-6bF07PfanKgYJNHJ-6Hq5zlmr-g3eo2kS9HJGFp94XRCnWa7ntQhXlpAImfwhLJOUMejXbYfaQenw",
"has_more": true
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.instagram.profile_reels(...) and the TypeScript client client.instagram.profileReels(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.