GETSearch1 credit
Search hashtags
GET https://api.instagramapi.dev/v1/search/hashtagsReturns hashtags matching a query with their post counts.
Build this with an AI agent
Paste this prompt into Claude, Codex, or any coding agent.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | yes | Search text. |
Example request
curl "https://api.instagramapi.dev/v1/search/hashtags?q=travel" \
-H "Authorization: Bearer $INSTAGRAMAPI_KEY"Try it
Live request · uses 1 creditExample responses
Switch tabs to see the body shape for success and each error status.
{
"data": {
"items": [
{
"id": "17843819167049166",
"name": "travel",
"media_count": 795858928
},
{
"id": "17841563530056883",
"name": "travelphotography",
"media_count": 521334210
}
],
"next_cursor": null
},
"meta": {
"endpoint": "search/hashtags",
"request_id": "req_3f8a1c9e",
"credits_charged": 1,
"credits_remaining": 4987,
"ms": 412
}
}Response fields
Fields returned under data on a 200 response. Every response also includes a meta object with billing info.
| Field | Type | Description |
|---|---|---|
| items | array<object> | Matching hashtags. |
| items[].id | string | Hashtag id. |
| items[].name | string | The hashtag text (without the #). |
| items[].media_count | number | Number of posts using the hashtag. |
| next_cursor | null | Always null. This endpoint returns a single page and isn't paginated. |