Search TikTok videos by keyword
scrapecreators.tiktok.search.videosSearches for TikTok videos by keyword or phrase — the general video search across all of TikTok.
- Price
- $0.00188/callAt provider cost
- Success rate
- 99.6%Last 30 days · 12,085 calls
- Latency p50
- 3.8 sp95 5.5 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-timePreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
trim | boolean | Optional | Set to true for a trimmed response | |
query | string | Required | Keyword to search for | ai |
cursor | number | Optional | Pagination cursor from previous response cursor field | 10 |
region | string | Optional | Does NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR | |
sort_by | string | Optional | Sort by | relevance |
date_posted | string | Optional | Time frame | all-time |
- Query parameters
trimbooleanOptionalSet to true for a trimmed response
querystringRequiredKeyword to search for
Example:
aicursornumberOptionalPagination cursor from previous response cursor field
Example:
10regionstringOptionalDoes NOT filter results to that region only — it places the proxy there (use for geo-restricted posts). 2-letter codes like US, GB, FR
sort_bystringOptionalSort by
Example:
relevancedate_postedstringOptionalTime frame
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.tiktok.search.videos?query=ai&date_posted=all-time' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.tiktok.search.videos?query=ai&date_posted=all-time",
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.tiktok.search.videos?query=ai&date_posted=all-time", {
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.