Instagram reels by audio API
Reels that use a sound, with its title, artist and reel count.
GET /v1/instagram/audio/{audio_id}/reelsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/instagram/audio/28902130652781918/reels",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "audio": { "audio_asset_id": "28902130652781918", "title": "Original audio", "artist": "natgeo", "is_original": true, "is_explicit": false }, "media_count": 1, "items": [ { "pk": "4017311023166285121", "id": "4017311023166285121_787132", "code": "DfAWxdIFmVB", "url": "https://www.instagram.com/reel/DfAWxdIFmVB/", "taken_at": 1793124003, "media_type": 2, "product_type": "clips", "caption": { "text": "Even a moment’s rest on Everest can come with a reminder of just how unpredictable the mou…", "created_at": 1793124005 }, "like_count": 47615, "comment_count": 296, "like_and_view_counts_disabled": false, "user": { "pk": "787132", "username": "natgeo", "full_name": "National Geographic", "profile_pic_url": "https://scontent-lga3-2.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_905103…", "is_verified": true, "is_private": false }, "play_count": 1819366, "video_duration": 68.33, "…": "10 more fields" } ], "more_available": true, "next_cursor": "eyJzIjoiYXVkaW86Mjg5MDIxMzA2NTI3ODE5MTgiLCJjIjoiR2hhQ2xiT0I2Y1d0d0c4bXBPYUhwc05vRkFJMEFpa0…"}Parameters
| Name | Type | Description |
|---|---|---|
audio_idpath · required | string | Audio id. Example: 28902130652781918. |
cursorquery | string | The previous page’s next_cursor. Omit for the first page. |
Response fields
200 with a InstagramAudioReels, in the shape of Instagram’s own media and user objects.
| Field | Type | Description |
|---|---|---|
audio | InstagramAudio | The sound a reel uses (original audio or a track). |
media_count | integer | null | Reels using this audio, as Instagram counts them. |
items | InstagramMedia[] | |
more_available | boolean | |
next_cursor | string | null | Pass as cursor for the next page; null on the last page. |
Status codes
| Status | Meaning |
|---|---|
200 | Reels with this audio. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account or post does not exist, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Instagram 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.