Instagram engagement API: statistics of an account's recent posts
Engagement statistics for the last 12 posts and reels of a username.
About the Recent posts statistics endpoint
This endpoint summarises the engagement of an Instagram account's recent posts and reels: likes, comments and views across the latest content, from the username alone. Combine it with the account's follower count to calculate an engagement rate, the standard measure for comparing creators of different sizes.
What you can build with it
- Engagement rate calculation for influencer vetting
- Creator analytics dashboards that track engagement over time
- Competitor benchmarking across accounts in the same niche
Request
https://socialgraph.dev/api/v1/instagram/posts-statistics
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
{}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 statistics API: frequently asked questions
How do I calculate an Instagram engagement rate?
Divide the average likes plus comments per post by the follower count. This endpoint gives the per-post statistics; the Follow counts endpoint gives the followers.
Which posts are included in the statistics?
The account's recent posts and reels, the same ones you'd see at the top of its profile.
Does it include reel views?
Yes, view statistics are included for reels and videos.
Do I need an Instagram business account or token?
No. The statistics are computed from publicly available posts, with no login or token.
How much does the Recent posts statistics 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 statistics 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.