Instagram Profile post count API
To get a profile's post count from Instagram, call GET /v1/instagram/profile/post-count?handle=… with your API key. You get clean JSON back.
/v1/instagram/profile/post-countcurl "https://api.scraperize.com/v1/instagram/profile/post-count?handle=natgeo" \ -H "x-api-key: YOUR_API_KEY"
cache_max_age to reuse a recent result for free.429 with a Retry-After header.Parameters
handleRequirednatgeo (an @handle or profile URL also works).cache_max_ageOptionalmeta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.Send your key in the x-api-key header. Full API reference
Example response
{
"data": {
"profile": {
"id": "787132",
"handle": "natgeo",
"fullName": "National Geographic",
"url": "https://www.instagram.com/natgeo/",
"isPrivate": false,
"isVerified": true
},
"postCount": 32000,
"postCountText": "32K",
"isExact": false,
"hasPosts": true,
"followers": {
"count": 268407043,
"text": "268M"
},
"following": {
"count": 194,
"text": "195"
},
"fetchedAt": "2026-10-09T10:49:07.972Z"
},
"meta": {
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
"creditsCharged": 1,
"creditsRemaining": 4999,
"cached": false
}
}A real response, shortened to one item per list.
More Instagram endpoints
Instagram Profile post count API questions
How much does the Instagram Profile post count API cost?
1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.
Do I need a Instagram account or API key?
No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No Instagram login or developer app is needed.
How fresh is the data?
Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.
Where are the full parameters and response fields?
In the API reference, with every parameter, field and error.