Instagram Trending Reels
instagram.reels.trending
List public trending reels up to limit or max_pages. stop_reason identifies the reached bound; next_cursor resumes after the last returned reel.
At a glance
- Endpoint ID
instagram.reels.trending- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 120 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "instagram.reels.trending", "input": { "limit": 16, "max_pages": 2 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "instagram.reels.trending", "input": { "limit": 16, "max_pages": 2 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "instagram.reels.trending", "input": { "limit": 16, "max_pages": 2 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
cursor |
string | no | Continuation cursor returned by a previous request. | |
limit |
integer | no | Maximum number of results to return. From 1 to 200. Default: 24. |
16 |
max_pages |
integer | no | Optional page cap. Defaults to enough eight-item pages for limit, up to 25. A smaller explicit cap can return fewer than limit. From 1 to 25. | 2 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "summary": { "has_more": true, "pages": 2 }, "items": [ { "data": { "like_count": 107104, "comment_count": 1960, "code": "DcNJ8IGMXaT", "has_audio": true, "id": "3966870561064318611", "like_and_view_counts_disabled": false, "original_height": 1280, "original_width": 720, "pk": "3966870561064318611", "taken_at": 1787107890, "caption": { "text": "Julio Rodriguez forgot how many outs there were and gifted the Brewers their 21st run of the night\n\n#mlb #baseball #sports #blooper #marine…" }, "image_versions2": { "candidates": [ {} ] }, "user": { "username": "jomboymedia", "id": "15256360155", "pk": "15256360155" }, "video_versions": [ { "type": 101 }, { "type": 102 } ] } }, { "data": { "like_count": 85475, "comment_count": 1527, "code": "DcMUehfpDsG", "has_audio": true, "id": "3966635430285425414", "like_and_view_counts_disabled": false, "original_height": 1920, "original_width": 1080, "pk": "3966635430285425414", "taken_at": 1787079849, "caption": { "text": "Daddy’s just kidding!" }, "image_versions2": { "candidates": [ {} ] }, "user": { "username": "treynkennedy", "id": "14799515", "pk": "14799515" }, "video_versions": [ { "type": 101 }, { "type": 102 } ] } } ]}
Fields
| Field | Type | Example |
|---|---|---|
items[].data.caption |
object | 1 fields |
items[].data.like_count |
integer | 107,104 |
items[].data.comment_count |
integer | 1960 |
items[].data |
object | 14 fields |
items[].data.code |
string | DcNJ8IGMXaT |
items[].data.has_audio |
boolean | true |
items[].data.id |
string | 3966870561064318611 |
items[].data.image_versions2 |
object | 1 fields |
items[].data.like_and_view_counts_disabled |
boolean | false |
items[].data.original_height |
integer | 1280 |
items[].data.original_width |
integer | 720 |
items[].data.pk |
string | 3966870561064318611 |
items[].data.taken_at |
integer | 1,787,107,890 |
items[].data.user |
object | 3 fields |
items[].data.video_versions |
array | 3 records |
items |
array | 3 records |
summary |
object | 2 fields |
summary.has_more |
boolean | true |
summary.pages |
integer | 2 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Instagram endpoints
instagram.audio-reels.listReels by audioinstagram.comments.listCommentsinstagram.embed.getEmbedinstagram.explore.listExploreinstagram.hashtag-posts.searchHashtag posts searchinstagram.hashtag.searchHashtag keyword searchinstagram.highlights.items.getSaved highlight itemsinstagram.highlights.listHighlightsinstagram.location.getLocationinstagram.popular.searchPopular searchinstagram.post.getPostinstagram.profile-posts.listProfile postsinstagram.profile.basicBasic profile by IDinstagram.profile.getProfileinstagram.profile.searchProfiles searchinstagram.reels.listReelsinstagram.reels.searchReels searchinstagram.topic.searchTopic searchinstagram.topics.listTopics
Something missing or unclear? Ask the team that builds the Instagram endpoints.