What this endpoint helps with
The response includes public Hashtag data and context needed for subsequent API requests.
When to use it
Use this method when an input identifier or parameter is known and one predictable API result is required.
Retrieve Hashtag data from Instagram through the focused “Recent media by tag name” operation and connect it to product workflows.
Use this method when an input identifier or parameter is known and one predictable API result is required.
Review the result and common workflows first, then move to parameters and a working request example.
The response includes public Hashtag data and context needed for subsequent API requests.
Use this method when an input identifier or parameter is known and one predictable API result is required.
Request the object you need without loading a larger collection.
Add the Instagram API result to records, workflows, and internal tools.
Use the response as input for adjacent methods and multi-step workflows.
Both versions solve the same job and accept the same parameters. Use the switch to compare the response structure and choose the version your client expects.
Switch versions on this page to compare response structures while keeping the same documentation URL.
Authentication, required parameters, and the request shape stay the same across V1 and V2. In practice, you choose the version when you build the endpoint path and when you parse the response.
The main difference is the response envelope. Use V2 for new integrations and keep V1 only when you need compatibility with an existing client contract.
Use the same API key header and the same query parameters for both versions. This documentation shows the shared parameter set first, then version-specific endpoint paths and code snippets.
| Parameter | Required | Type | Example | Description |
|---|---|---|---|---|
tag_name |
Yes | str |
value |
Instagram hashtag name (without the `#` symbol). - Can contain letters and numbers. - Cannot include spaces or special symbols. **Example**: `ufc` **Link format**: `https://www.instagram.com/explore/tags/{tag_name}/` |
cursor |
No | str | None |
QVFB... |
Next-page cursor returned by the previous response. Omit it for the first page. |
Choose a version when you copy the exact endpoint path, example URL, and code snippet. The parameter list above stays the same.
GET /api/v2/instagram.com/hashtag/recent-media-by-tag-namecurl --request GET \
--url "https://www.scrapestorm.net/api/v2/instagram.com/hashtag/recent-media-by-tag-name" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'tag_name=value' \
# Optional parameters:
# --data-urlencode 'cursor=QVFB...'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/instagram.com/hashtag/recent-media-by-tag-name"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"tag_name": "value",
}
# Optional parameters
# params["cursor"] = "QVFB..."
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v2/instagram.com/hashtag/recent-media-by-tag-name";
const params = new URLSearchParams({
tag_name: "value",
});
// Optional parameters
// params.set("cursor", "QVFB...");
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
tag_name: "value",
};
// Optional parameters
// params.cursor = "QVFB...";
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"tag_name" => "value",
];
// Optional parameters
// $query["cursor"] = "QVFB...";
try {
$response = $client->request("GET", "/api/v2/instagram.com/hashtag/recent-media-by-tag-name", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v2/instagram.com/hashtag/recent-media-by-tag-name"
params := url.Values{}
params.Set("tag_name", "value")
// Optional parameters
// params.Set("cursor", "QVFB...")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
Choose a version when you copy the exact endpoint path, example URL, and code snippet. The parameter list above stays the same.
GET /api/v1/instagram.com/hashtag/recent-media-by-tag-namecurl --request GET \
--url "https://www.scrapestorm.net/api/v1/instagram.com/hashtag/recent-media-by-tag-name" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'tag_name=value' \
# Optional parameters:
# --data-urlencode 'cursor=QVFB...'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v1/instagram.com/hashtag/recent-media-by-tag-name"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"tag_name": "value",
}
# Optional parameters
# params["cursor"] = "QVFB..."
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v1/instagram.com/hashtag/recent-media-by-tag-name";
const params = new URLSearchParams({
tag_name: "value",
});
// Optional parameters
// params.set("cursor", "QVFB...");
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
tag_name: "value",
};
// Optional parameters
// params.cursor = "QVFB...";
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"tag_name" => "value",
];
// Optional parameters
// $query["cursor"] = "QVFB...";
try {
$response = $client->request("GET", "/api/v1/instagram.com/hashtag/recent-media-by-tag-name", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v1/instagram.com/hashtag/recent-media-by-tag-name"
params := url.Values{}
params.Set("tag_name", "value")
// Optional parameters
// params.Set("cursor", "QVFB...")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
The preview keeps key fields and the first collection items so you can scan the response shape quickly. Switching versions changes the JSON format.
A live verification example is not available for V2 yet. This placeholder keeps the standard response envelope visible until a verified example is ready.
{
"success": true,
"status": "ok",
"data": {}
}
A live verification example is not available for V1 yet. This placeholder keeps the standard response envelope visible until a verified example is ready.
{
"success": true,
"status": "ok",
"data": {}
}
Use this documentation as the first decision point, then move into pricing, platform coverage, and integration rules before you connect the endpoint for recurring use.
Use these answers to decide whether this API method fits your workflow, versioning choice, and rollout plan.
The method performs “Recent media by tag name” for Hashtag. The compact response example below shows the exact field structure.
Choose V2 for new integrations because it provides a normalized structure. Use V1 only for compatibility with clients that already consume the platform-native format.
Create an API key, send it in the request header, and provide the required parameters from the table. The code samples already contain the correct path and request structure.