Search Instagram hashtags

Search Instagram hashtags by keyword to get their names and post counts.

GET/v2/instagram/hashtags/search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
querystringrequiredquery

Text to search hashtags for.

min 1 chars · max 100 chars

Response fields
14

Endpoint-specific response payload.

Hashtags matching the query, in Instagram's ranking, with their post counts. One page: there is no cursor. Empty when nothing matches. `isTrending` is always null here: search doesn't report it.

datahashtags[]id
stringnullable

Hashtag id.

pattern: ^\d+$

datahashtags[]name
string

Tag name, without #.

min 1 chars

datahashtags[]mediaCount
integernullable

Posts using the tag. Null when Instagram doesn't report a real count.

≥ 0

datahashtags[]isTrending
booleannullable

Whether Instagram marks it trending.

datahashtags[]isRestricted
booleannullable

Whether Instagram restricts the tag, so its feed is empty (for example a tag it hides as sensitive). Null when this view doesn't say.

datahashtags[]url
string

Public tag page URL.

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v2/instagram/hashtags/search?query=nike" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Hashtags matching the query.