Instagram Hashtag Scraper API
Watch a hashtag: the posts and reels Instagram ranks under it, with captions, engagement counts and post dates.
Hashtag
Endpoint
curl "https://api.toolzerhub.com/v2/instagram/hashtag/media?hashtag=travel" \
-H "x-api-key: $TOOLZERHUB_API_KEY"{
"data": {
"more_available": true,
"next_max_id": "ZUp3QnVBQkgveHNCWEFBYTlnL2NzT2ZJK3BtMnMybkVvT1d3b2VPbjJXdlUzNnJZaE9LL29tL2tvOW1ycGVLYnkyYks3TGZCcnMvNDdFM0d0cERKcElEMXRHbVFoT3Z3ck1LTmcyb…",
"medias": [
{
"id": "3797498104006896686_51584866",
"code": "DSzbGfUjOwu",
"media_type": 2,
"taken_at": 1766917253,
"caption": {
"text": "SWISS🇨🇭🇨🇭\n\n#swiss #switzerland #switzerland🇨🇭 #visitswitzerland #swissalps"
},
"like_count": 6595839,
"comment_count": 19726,
"user": {
"username": "hidden"
}
},
{
"id": "3880220021150754850_4039659",
"code": "DXZT40LDKgi",
"media_type": 2,
"taken_at": 1776778335,
"caption": {
"text": "THE BEST TIME TO VISIT ⬇️\n\n🗽 New York - October\nPerfect mix of fall colors, crisp air, and fewer tourists\n\n🏜️ Jordan - March\nComfortable …"
},
"like_count": 21156,
"comment_count": 243,
"user": {
"username": "hidden"
}
},
{
"id": "4008906841034938346_39366193722",
"code": "Deif4glhVfq",
"media_type": 2,
"taken_at": 1792118983,
"caption": {
"text": "unreal 😍\n\n✈︎ hey there, I’m a part-time traveler exploring as much of this world that I can! follow for travel tips, dream destinations a…"
},
"like_count": 77986,
"comment_count": 683,
"user": {
"username": "hidden"
}
}
]
}
}- 1
- 15
- $0.11
- $0.06
Inputs
What you send
GET /v2/instagram/hashtag/media with your key in the x-api-key header.
| Parameter | Example | Notes |
|---|---|---|
| hashtagrequired | travel | Without the #. |
| max_id | ZUp3QnVB… | next_max_id from the previous page. |
Limits
Good to know
- Results are in Instagram's ranked order for the hashtag, not strictly by date.
How it works
From key to JSON
- 01x-api-key••••••••••Get a key
- 02GET/v2/instagram/hashtag/mediaSend a request
- 03{ data, status }200Get JSON
Pricing
1,000 posts cost $0.11
67 calls at 1 credit each is 67 credits: $0.11 on the $5 3K pack, down to $0.06 on the largest plan. The free 100 credits a month cover about 1,500 posts, and failed calls are not charged.
FAQ
Questions
- Can I get the newest posts for a hashtag?
- How many posts can I pull for one hashtag?
- Does it include reels?
Related
Often used with it
Same key, same credits. Every Instagram endpoint is on the Instagram API page.
Try the Instagram Hashtag API free
Every new workspace gets 100 credits a month. Buy credits only when you need more.
Get free API key(opens in new tab)