Instagram Scraper
Get Instagram Post Count
Returns the post count shown on a public Instagram profile. Use this endpoint when Profile returns media_count as null or edge_owner_to_timeline_media.count contains only the current batch size. This endpoint makes a separate Instagram profile-page request so it does not add latency to the main Profile endpoint. Full values such as 12,345 Posts return the exact integer with is_estimated set to false. For profiles with more than 10,000 posts, Instagram may expose only a compact value such as 12K Posts or 1.2M Posts. Set allow_estimated=true to return the scaled integer with is_estimated set to true.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| handlestring · required | string | required | Instagram handle |
| allow_estimatedboolean · optional | boolean | optional | Set to true to return scaled estimates when Instagram abbreviates counts for profiles with more than 10,000 posts. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"handle": {
"type": "string"
},
"media_count": {
"type": "number"
},
"is_estimated": {
"type": "boolean"
}
},
"additionalProperties": true
}