Instagram Stats API
The Instagram Stats API retrieves engagement metrics and metadata for Instagram posts and reels, including like counts, comments, author information, and media details.
Endpoint
https://api.socialkit.dev/instagram/statsExample Request
GET https://api.socialkit.dev/instagram/stats?access_key=<your-access-key>&url=https://instagram.com/reel/DRU4smMj0cu/Response
{
"success": true,
"data": {
"url": "https://www.instagram.com/p/DRU4smMj0cu/",
"id": "3770888143290451758",
"shortcode": "DRU4smMj0cu",
"description": ".\n.\n.\n.\n.\n.\n#cat #catsoftheworld #catsoftheday #catsgram #pet #petlovers #petlover #petsofinstagram #funny #funnyvideos #cute #cutecats #kitten #kittenlove #kittycat #reels",
"likes": 122973,
"views": 3185519,
"comments": 485,
"shares": 0,
"timestamp": 1763744973,
"publishedAt": "2025-11-21T17:09:33.000Z",
"author": "yuumi_cat9",
"authorLink": "https://www.instagram.com/yuumi_cat9/",
"duration": "0:27",
"thumbnail": "https://scontent-iad3-1.cdninstagram.com/...",
"isVideo": true,
"videoUrl": "https://scontent-iad3-1.cdninstagram.com/.../video.mp4",
"contentType": "reel",
"isShortForm": true
}
}Parameters
url string Required
The Instagram URL of the post or reel to get statistics for. Supports various Instagram URL formats.
access_key string Required
Your API access key. Can be provided via the access_key query parameter, x-access-key header, or request body.
cache boolean Optional Defaults to false
Cache the response for faster subsequent requests.
cache_ttl number Optional Defaults to 2592000
Cache the response for a custom TTL (in seconds). Maximum 2592000 seconds (1 month), minimum 3600 seconds (1 hour).
Response Fields
The API returns the following data fields:
url: The original Instagram URL providedid: Instagram’s internal numeric media IDshortcode: The Instagram shortcode (theDRU4smMj0cuportion of/p/DRU4smMj0cu/URLs)description: The post/reel caption with hashtagsviews: Total view count (number, video / reel only)likes: Total like count (number)comments: Total comment count (number)shares: Total shares (Instagram rarely exposes this; usually0)timestamp: Unix timestamp (seconds) of when the post was publishedpublishedAt: ISO 8601 timestamp of when the post was published (e.g.2025-11-21T17:09:33.000Z)author: The Instagram usernameauthorLink: Link to the author’s Instagram profileduration: Video duration inM:SSformat (for reels/videos)thumbnail: URL to the post/reel thumbnail imageisVideo:truefor videos and reels,falsefor image posts and carouselsvideoUrl: Temporary CDN URL to the raw video file. Signed by Instagram with the current session and expires quickly. Use /instagram/download if you need to persist the file.contentType: One of"reel","video","post", or"carousel". Derived from URL pattern plus Instagram’s internalproductTypeflag.isShortForm:truefor Reels,falseotherwise. Useful for filtering short-form vs long-form content programmatically.
Use Cases
- Social Media Analytics: Track Instagram post and reel performance metrics
- Content Research: Analyze viral Instagram content and engagement patterns
- Competitor Analysis: Monitor competitor Instagram performance and trends
- Influencer Marketing: Evaluate influencer post performance and engagement rates
- Marketing Insights: Understand what Instagram content resonates with audiences
- Reporting: Generate comprehensive reports on Instagram content performance
- Content Strategy: Make data-driven decisions about Instagram content creation
- Engagement Tracking: Monitor post engagement over time for optimization
Notes
- Like and comment counts are retrieved in real-time
- All numeric fields are returned as integers
- Duration is only provided for video content and reels
- Thumbnail URLs are temporary and may expire after some time
- Supports various Instagram URL formats including posts, reels, and mobile links
- Statistics reflect the current state and may vary due to Instagram’s real-time updates