Hashtag Info & Feeds
curl --request GET \
--url https://scrapebadger.com/v1/instagram/hashtags/{tag} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/instagram/hashtags/{tag}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/instagram/hashtags/{tag}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/instagram/hashtags/{tag}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/instagram/hashtags/{tag}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/instagram/hashtags/{tag}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/instagram/hashtags/{tag}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"hashtag": {},
"items": [
{}
]
}Endpoints
Hashtag Info & Feeds
Hashtag metadata by name, plus a paginated recent feed for the tag. Temporarily unavailable.
GET
/
v1
/
instagram
/
hashtags
/
{tag}
Hashtag Info & Feeds
curl --request GET \
--url https://scrapebadger.com/v1/instagram/hashtags/{tag} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/instagram/hashtags/{tag}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/instagram/hashtags/{tag}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/instagram/hashtags/{tag}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/instagram/hashtags/{tag}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/instagram/hashtags/{tag}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/instagram/hashtags/{tag}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"hashtag": {},
"items": [
{}
]
}Temporarily unavailable. This endpoint needs the authenticated Instagram
tier, which is offline while we scale the account pool. Every call currently
returns
503 {"error": "temporarily_unavailable"} with a Retry-After
header and is not billed. The public endpoints — profile,
posts, media detail
and comments — are live.tag (no #), then page its recent media feed.
Credits: 5 (hashtag info) · 8 (recent feed)
Authorization
string
required
Your ScrapeBadger API key.
Path Parameters
string
required
Hashtag without the
#, e.g. travel.Query Parameters (feed paths)
integer
default:"20"
Page size.
string
Opaque next-page token from a previous
next_cursor.Paths
GET /v1/instagram/hashtags/{tag}— hashtag info. 5 credits.GET /v1/instagram/hashtags/{tag}/recent— most recent media. 8 credits.
Response
object
For the info path — a
Hashtag: id, name, media_count, profile_pic_url.Media[]
For feed paths — see the Get Media
field reference. Wrapped in
{ items, count, next_cursor, has_more }.Example
curl "https://scrapebadger.com/v1/instagram/hashtags/travel" \
-H "X-API-Key: YOUR_API_KEY"
curl "https://scrapebadger.com/v1/instagram/hashtags/travel/recent?amount=20" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://scrapebadger.com/v1/instagram/hashtags/travel/recent?amount=20",
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { items, next_cursor } = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/instagram/hashtags/travel",
headers={"X-API-Key": "YOUR_API_KEY"},
)
hashtag = res.json()["hashtag"]
Response
{
"hashtag": {
"id": "17843712345678901",
"name": "travel",
"media_count": 712345678,
"profile_pic_url": "https://scontent.cdninstagram.com/v/tag.jpg"
}
}

