GETSearch1 credit

Search hashtags

GET https://api.instagramapi.dev/v1/search/hashtags

Returns 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

NameTypeRequiredDescription
qstringyesSearch text.

Example request

curl "https://api.instagramapi.dev/v1/search/hashtags?q=travel" \
  -H "Authorization: Bearer $INSTAGRAMAPI_KEY"

Try it

Live request · uses 1 credit

Example 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.

FieldTypeDescription
itemsarray<object>Matching hashtags.
items[].idstringHashtag id.
items[].namestringThe hashtag text (without the #).
items[].media_countnumberNumber of posts using the hashtag.
next_cursornullAlways null. This endpoint returns a single page and isn't paginated.