Instagram reels with captions API
An account’s reels in full: captions, timestamps, plays, likes, comments, audio.
GET /v1/instagram/users/{username}/reels/fullBeta3 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/instagram/users/natgeo/reels/full",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 3 credits{ "items": [ { "pk": "4037787067701342133", "id": "4037787067701342133", "code": "DgJGfHpAS-1", "url": "https://www.instagram.com/reel/DgJGfHpAS-1/", "taken_at": null, "media_type": 1, "product_type": "clips", "caption": null, "like_count": 3530, "comment_count": 38, "play_count": 97198, "like_and_view_counts_disabled": false, "image_versions2": { "candidates": [ { "url": "https://scontent-sjc3-1.cdninstagram.com/v/t51.82787-15/921525947_18722563309019133_591112174822918768_n.jpg?stp=dst-jpg…", "width": null, "height": null } ] }, "user": null }, { "pk": "4037061490883314525", "id": "4037061490883314525", "code": "DgGhglkgkNd", "url": "https://www.instagram.com/reel/DgGhglkgkNd/", "taken_at": null, "media_type": 1, "product_type": "clips", "caption": null, "like_count": 17280, "comment_count": 67, "play_count": 1204811, "like_and_view_counts_disabled": false, "image_versions2": { "candidates": [ { "url": "https://scontent-sjc6-1.cdninstagram.com/v/t51.82787-15/930624953_18722449651019133_85184317330909988_n.jpg?stp=dst-jpg_…", "width": null, "height": null } ] }, "user": null }, "… 2 more" ], "more_available": false, "next_cursor": null, "user": null}Parameters
| Name | Type | Description |
|---|---|---|
usernamepath · required | string | Username, with or without the @, or a profile URL. Example: natgeo. |
cursorquery | string | The 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.
| Field | Type | Description |
|---|---|---|
items | InstagramMedia[] | |
more_available | boolean | |
next_cursor | string | null | Pass as cursor for the next page; null on the last page. |
user | InstagramUserShort |
Status codes
| Status | Meaning |
|---|---|
200 | Reels in full. |
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.