Instagram Scraper
Get Instagram Popular Search
Use this to explore an Instagram topic and the posts Instagram curates for it. It scrapes the public /popular/{query} page without requiring an Instagram login. The first page returns the topic title, numeric total media count, Instagram's generated description and sources, suggested terms, posts, and an opaque cursor. Pass that cursor with the same query to fetch more posts. Later pages return query, posts, cursor, and has_more only. For an exact hashtag through Google-indexed results, use /v1/instagram/search/hashtag. For reels only, use /v2/instagram/reels/search.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| querystring · required | string | required | The Popular topic to search for. |
| limitnumber · optional | number | optional | Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more; use the returned cursor for the next batch. The price is the same either way. |
| cursorstring · optional | string | optional | The opaque cursor returned by the previous response. Use it with the same query to fetch the next page of posts. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"posts": {
"type": "array"
},
"query": {
"type": "string"
},
"title": {
"type": "string"
},
"cursor": {
"type": "string"
},
"has_more": {
"type": "boolean"
},
"description": {
"type": "object",
"additionalProperties": {}
},
"limitApplied": {
"type": "boolean",
"description": "True when a Limit trimmed the results; there were more in this response."
},
"suggested_terms": {
"type": "array"
},
"total_media_count": {
"type": "number"
}
},
"additionalProperties": true
}