Skip to content

Structured TikTok data: every input is optional. Cursor-paginated, 2 credits per successful call.

GET · POST2 credits / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/tiktok-trending-hashtag/Open in Playground

Call GET /api/v2/tiktok-trending-hashtag/. The results are in data.data; send data.next_cursor back as cursor to get the next page. 9 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/tiktok-trending-hashtag/" \
-H "X-API-Key: YOUR_API_KEY" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
countrystringnoUSTikTok ranking country. One country per request; defaults to US.
USFRDEITESGBARAUBRCACOEGIDILJPKRMYMXPHSASGZATWTHTRAEVN
periodintegerno30Ranking window in days. Legacy 120 maps to 90.
73090120
result_typestringnotop100top100 is ranking-only. Analytics modes add trend and optional challenge metrics; anonymous source does not guarantee 100 results.
top100top100_with_analyticshashtag_analytics
industry_idstringno—Optional top-level TikTok industry ID. Restricts the feed to that industry.
include_industriesbooleannofalseExpand overall ranking with industry rankings. Rank remains relative to each industry; more requests.
related_videos_sourcestringnononeOptional TikWM third-party related videos in analytics modes. Adds requests; no cookies.
nonetikwm
related_items_limitintegerno3Related videos per hashtag when TikWM is enabled. Deadline may return fewer with a warning.
related_items_cursorintegerno0Optional TikWM starting cursor for related videos.
cursorstringno—Opaque continuation token. Cursor-only calls preserve country, window, industry, and analytics options.
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"success": true,
"data": {
"country": "US",
"period": 30,
"result_type": "top100",
"page": 1,
"page_size": 3,
"hashtags": [
{
"hashtag_id": "7696402918877954061",
"hashtag_name": "musteatinmycity",
"industry_info": {
"id": 27000000000,
"value": "Food & Beverage",
"label": "label_27000000000"
},
"video_views": 2345135987,
"publish_cnt": 2563515,
"rank": 1,
"rank_diff_type": null,
"record_id": "US:30:7696402918877954061",
"country": "US",
"period": 30,
"result_type": "top100",
"ranking_scope": "overall",
"ranking_industry_id": null,
"related_videos_source": "none",
"warning": "Anonymous rankings are source-limited. Industry ranks belong to their industry.",
"scraped_at": "2026-11-16T09:00:00.000Z"
}
],
"next_cursor": null,
"warning": "Anonymous rankings are source-limited. Industry ranks belong to their industry."
}
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.data.

FieldTypeExampleDescription
successbooleantrue—
dataobject{…}The results.
data.countrystringUS—
data.periodinteger30—
data.result_typestringtop100—
data.pageinteger1—
data.page_sizeinteger3—
data.hashtagsarray[1 item]—
data.next_cursornullnull—
data.warningstringAnonymous rankings are source-limited. Indust…—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/tiktok-trending-hashtag/";
let params = {};
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(data.data);
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • The response data carries its own success field from the scraper. The outer success is what counts: an HTTP 200 with outer success: true is billed, even if the inner field says otherwise.
  • TikTok Ad Library Leads — Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.
  • TikTok Ad Library — Structured TikTok data: send urls. Cursor-paginated, 1 credit per successful call.
  • TikTok Ads Top — Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
  • TikTok Collection Videos — Structured TikTok data: send urls. Cursor-paginated, 1 credit per successful call.