Skip to content

Hashtag Endpoints

Get hashtag info, top and recent media.

Authentication & errors

All endpoints require x-access-key header. See Authentication. Error responses: Response Codes.

Endpoints: /v1/hashtag/by/name


GET /v1/hashtag/by/name

Get hashtag object by name. Returns a Hashtag object.

Parameter Type Required Description
name string Yes Please make sure to use a clean hashtag without any special symbols. Good one: love, sea, dog, 공구 Bad one: #dog, sea_., tanjung.., #공구.
curl -H "x-access-key: YOUR_TOKEN" \
  "https://api.hikerapi.com/v1/hashtag/by/name?name=love"
from hikerapi import Client

cl = Client(token="YOUR_TOKEN")
result = cl.hashtag_by_name_v1(name="love")
import requests

response = requests.get(
    "https://api.hikerapi.com/v1/hashtag/by/name",
    headers={"x-access-key": "YOUR_TOKEN"},
    params={"name": "love"},
)
print(response.json())
const response = await fetch(
  "https://api.hikerapi.com/v1/hashtag/by/name?name=love",
  { headers: { "x-access-key": "YOUR_TOKEN" } }
);
const data = await response.json();
Example response
{
  "id": "17843826142012701",
  "name": "love",
  "media_count": 2147483647,
  "allow_following": false,
  "profile_pic_url": null
}

Deprecated endpoints

These endpoints are deprecated — use the recommended alternatives. Retired ones respond with 410 Gone and are never charged (see Response Codes); the rest still work but will be removed in a future version.

~~GET /v1/hashtag/medias/clips~~

Warning

Gone: use /g2/hashtag/medias (reels and posts)

~~GET /v1/hashtag/medias/clips/chunk~~

Warning

Gone: use /g2/hashtag/medias (reels and posts)

~~GET /v1/hashtag/medias/recent~~

Warning

Gone: Instagram closed the recent tab, no replacement

~~GET /v1/hashtag/medias/recent/chunk~~

Warning

Gone: Instagram closed the recent tab, no replacement

~~GET /v1/hashtag/medias/top~~

Warning

Gone: use /g2/hashtag/medias

~~GET /v1/hashtag/medias/top/chunk~~

Warning

Gone: use /g2/hashtag/medias

~~GET /v1/hashtag/medias/top/recent/chunk~~

Warning

Gone: Instagram closed the recent tab, no replacement


Ready to integrate? First 100 requests free — Get your API key →