Instagram posts API: an account's recent posts and reels, up to 120
Up to 120 of the most recent posts and reels of a username.
About the Recent posts & reels (up to 120) endpoint
The Instagram posts API returns up to 120 of an account's most recent posts and reels in one call, each with shortcode, caption, media type and URLs, like and comment counts, view counts for reels, and post dates. It gives enough history to analyse posting frequency, engagement trends and content mix without paging through an account post by post.
What you can build with it
- Engagement analysis over an account's recent history
- Posting-frequency and content-mix reports for creators and competitors
- Bulk collection of captions and media for research
Request
https://socialgraph.dev/api/v1/instagram/posts
Send your API key as Authorization: Bearer YOUR_API_KEY.
Parameters go in the query string.
Parameters
| Name | Type | Description |
|---|---|---|
usernamerequired |
string | Instagram username, e.g. apple. |
Code examples
Example response
[
{
"post": {
"id": "4004230002159797893",
"owner": {
"id": "5821462185",
"username": "apple"
},
"caption": "Snailed it ๐ \n#ShotoniPhone by @_gulligull_ โฆ",
"post_date": "2026-10-09T15:57:15Z",
"short_code": "DeR4fi9skaF",
"display_url": "https://scontent.cdninstagram.com/v/t51.82787-15/842935240_โฆ.jpg",
"product_type": "clips",
"accessibility_caption": "Video by apple on October 09, 2026. May be an image of balloon and text."
}
},
"โฆ up to 120 posts"
]Errors
| Status | Meaning | Charged? |
|---|---|---|
| 401 | Missing, invalid or revoked API key | No |
| 402 | Not enough credits (insufficient_credits) | No |
| 404 | The account or post doesn't exist | No |
| 422 | Missing or invalid parameters | No |
| 502 / 503 | The data source is temporarily unavailable | No |
Recent posts & reels (up to 120) API: frequently asked questions
How many posts can I get for a user?
Up to 120 of the most recent posts and reels. For just the newest 12, use the cheaper Latest posts endpoint.
Does it return every post an account ever made?
No, the most recent posts up to 120. Older history beyond that is not available.
Are likes, comments and views included for each post?
Yes: like_count and comment_count for every post, and view_count for reels and videos.
Why do my calls take several seconds?
Fetching up to 120 posts is a heavier request; most calls finish in a few seconds. Set your client timeout to at least 60 seconds.
How much does the Recent posts & reels (up to 120) endpoint cost?
2 credits per successful call (0.004 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.
Can I try the Recent posts & reels (up to 120) API without signing up?
Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.
๐ Preset demo input. Live demos use Instagram's own account, @instagram. Sign up free to use your own.