Skip to content

Structured TikTok data: send queries and country_code. Cursor-paginated, 1 credit per successful call.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/tiktok-shop-search/Open in Playground

Call GET /api/v2/tiktok-shop-search/ with queries and country_code. The results are in data.products; send data.next_cursor back as cursor to get the next page. 2 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/tiktok-shop-search/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "queries=cloth" \
--data-urlencode "country_code=US" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
queriesstringyese.g. clothTikTok Shop product search keyword via EchoTik. Required first call. Aliases: keyword, q.
country_codestringyese.g. USTarget market.
USVNTHPHMYIDGBSGESMXDEITFRBRJP
locked in cursor
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
orderstringnototal_sale_nd_cntEchoTik sort key.
locked in cursor
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": {
"queries": "cloth",
"country_code": "US",
"page": 1,
"page_size": 20,
"products": [
{
"product_id": "1730778628184969488",
"product_name": "Women's Plain Dress, Summer Casual Loose Fit Sleeveless Dress",
"category": "Womenswear & Underwear",
"region": "US",
"min_price": "9.99",
"max_price": "15.99",
"real_price": "12.99",
"seller": "Example Shop",
"product_rating": "4.8",
"review_count": 1240,
"total_sale_cnt": 53000,
"total_sale_gmv_amt": "688700",
"keyword": "cloth",
"scraped_at": "2026-06-18T12:00:00.000Z"
}
],
"next_cursor": "eyJmIjoiMTczMDc3ODYyODE4NDk2OTQ4OCIsIm8iOiJ0b3RhbF9zYWxlX25kX2NudCIsInAiOjIsInEiOiJjbG90aCIsInIiOiJVUyIsInYiOjF9"
}
}

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

FieldTypeExampleDescription
queriesstringcloth—
country_codestringUS—
pageinteger1—
page_sizeinteger20—
productsarray[1 item]The results.
next_cursorstringeyJmIjoiMTczMDc3ODYyODE4NDk2OTQ4OCIsIm8iOiJ0b…Pass back as cursor for the next page. null on the last page.
products[].product_idstring1730778628184969488—
products[].product_namestringWomen's Plain Dress, Summer Casual Loose Fit …—
products[].categorystringWomenswear & Underwear—
products[].regionstringUS—
products[].min_pricestring9.99—
products[].max_pricestring15.99—
products[].real_pricestring12.99—
products[].sellerstringExample Shop—
products[].product_ratingstring4.8—
products[].review_countinteger1240—
products[].total_sale_cntinteger53000—
products[].total_sale_gmv_amtstring688700—
products[].keywordstringcloth—
products[].scraped_atstring2026-06-18T12:00:00.000Z—

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-shop-search/";
let params = { queries: "cloth", country_code: "US" };
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.products ?? []));
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
  • Locked into the cursor: country_code, order. Set them on the first call; later pages reuse them.
  • 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.