100 free credits. No credit card required. Get a key

Instagram trending reels API

The reels Instagram’s public reels feed is showing right now, with counts and audio.

GET /v1/instagram/reels/trendingBeta2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/instagram/reels/trending",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"items": [
{
"pk": "4037084600496233951",
"id": "4037084600496233951_1299389749",
"code": "DgGmw4Exx3f",
"url": "https://www.instagram.com/p/DgGmw4Exx3f/",
"taken_at": 1795478048,
"media_type": 1,
"product_type": null,
"caption": {
"text": "Calm down man… 😂"
},
"like_count": 266205,
"comment_count": 1089,
"like_and_view_counts_disabled": false,
"user": {
"pk": "1299389749",
"username": "ariesspears",
"profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.2885-19/47582537_225754825000413_2951596015…"
},
"has_audio": true,
"original_width": 1080,
"…": "4 more fields"
},
{
"pk": "4036817825359334641",
"id": "4036817825359334641_1015456286",
"code": "DgFqGyXggzx",
"url": "https://www.instagram.com/p/DgFqGyXggzx/",
"taken_at": 1795446243,
"media_type": 1,
"product_type": null,
"caption": {
"text": "Clearing my whole calendar 🗓️"
},
"like_count": 37419,
"comment_count": 239,
"like_and_view_counts_disabled": false,
"user": {
"pk": "1015456286",
"username": "kevincuencatv",
"profile_pic_url": "https://scontent-lax3-1.cdninstagram.com/v/t51.2885-19/476425745_1840267126728315_61285429…"
},
"has_audio": true,
"original_width": 1080,
"…": "4 more fields"
},
"… 6 more"
],
"more_available": true,
"next_cursor": "eyJzIjoidHJlbmRpbmciLCJjIjoiR29hLTk3ak13TVBOaG5EaXM1RDRrcHZVaFhELTdZYjRyYUd5aDNETXFieUEtck…"
}

Parameters

NameTypeDescription
cursorquerystringThe previous page’s next_cursor. Omit for the first page.
Response fields

200 with a InstagramMediaList, in the shape of Instagram’s own media and user objects.

FieldTypeDescription
itemsInstagramMedia[]
more_availableboolean
next_cursorstring | nullPass as cursor for the next page; null on the last page.
userInstagramUserShort
Status codes
StatusMeaning
200A page of reels.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account or post does not exist, or was removed.
429Too many requests. Wait for Retry-After seconds.
503Instagram is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Instagram is a trademark of Instagram, LLC (Meta Platforms, Inc.). We are not affiliated with or endorsed by Instagram or Meta.