GETHashtags1 credit
Top hashtag posts
GET https://api.instagramapi.dev/v1/hashtag/topReturns the 'Top' posts for a hashtag (Instagram's ranked selection).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| tag | string | yes | Hashtag without the `#`. |
| cursor | string | no | Pagination cursor returned as `next_cursor` in the previous response. Omit for the first page. |
Example request
curl "https://api.instagramapi.dev/v1/hashtag/top?tag=sunset" \
-H "Authorization: Bearer $INSTAGRAMAPI_KEY"Try it
Live request · uses 1 creditExample response
{
"data": { /* Top-ranked posts for a hashtag. */ },
"meta": {
"endpoint": "hashtag/top",
"credits_charged": 1,
"credits_remaining": 4987,
"next_cursor": "QVFE...",
"ms": 412
}
}