Get Instagram hashtag

Get an Instagram hashtag's id, post count and trending flag by name or tag link.

GET/v2/instagram/hashtags/{hashtag}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
hashtagstringrequiredpath

Hashtag name, with or without `#`, or its instagram.com tag link.

Response fields
13

Endpoint-specific response payload.

datalookupStatus
string

`found`, or `not_found` when nobody has used the hashtag (Instagram has no posts under it).

one of: found, not_found

The hashtag. Null when not found.

datahashtagid
stringnullable

Hashtag id.

pattern: ^\d+$

datahashtagname
string

Tag name, without #.

min 1 chars

datahashtagmediaCount
integernullable

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

≥ 0

datahashtagisTrending
booleannullable

Whether Instagram marks it trending.

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

datahashtagurl
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

Code example

curl "https://api.socialfetch.dev/v2/instagram/hashtags/coffee" \
  -H "x-api-key: YOUR_API_KEY"

Responses

The hashtag.