Search TikTok top results by keyword — videos, photos
scrapecreators.x.v1-tiktok-search-topSearches TikTok's 'Top' results by query — returns both videos and photo carousels, unlike keyword search which only returns videos.
- Price
- $0.00188/callAt provider cost
- Success rate
- 99.5%Last 30 days · 4,677 calls
- Latency p50
- 4.3 sp95 6.7 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funnyPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
query | string | Required | Keyword to search for | funny |
cursor | number | Optional | Cursor to get more videos. Get 'cursor' from previous response. | |
region | string | Optional | Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc | |
sort_by | string | Optional | Sort by | relevance |
publish_time | string | Optional | Time Frame TikTok was posted | all-time |
- Query parameters
querystringRequiredKeyword to search for
Example:
funnycursornumberOptionalCursor to get more videos. Get 'cursor' from previous response.
regionstringOptionalNote, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc
sort_bystringOptionalSort by
Example:
relevancepublish_timestringOptionalTime Frame TikTok was posted
Example:
all-time
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-tiktok-search-top?query=funny", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.