Search TikTok posts by keyword
justoneapi.tiktok.search.videosSearch TikTok posts by keyword, with region, sort and publish-time filters
- Price
- $0.01476/successAt provider cost
- Success rate
- 100%Last 30 days · 2,494 calls
- Latency p50
- 6.3 sp95 11 s
- Last verified
- Jul 28, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffeePreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
offset | integer | Optional | starts at 0, steps by 20 | 0 |
region | string | Optional | ISO 3166-1 alpha-2, default US | US |
keyword | string | Required | coffee | |
sortType | string | Optional | RELEVANCE (default) | MOST_LIKED | |
publishTime | string | Optional | ALL (default) | ONE_DAY | ONE_WEEK | ONE_MONTH | THREE_MONTH | SIX_MONTH | |
- Query parameters
offsetintegerOptionalstarts at 0, steps by 20
Example:
0regionstringOptionalISO 3166-1 alpha-2, default US
Example:
USkeywordstringRequiredExample:
coffeesortTypestringOptionalRELEVANCE (default) | MOST_LIKED
publishTimestringOptionalALL (default) | ONE_DAY | ONE_WEEK | ONE_MONTH | THREE_MONTH | SIX_MONTH
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffee' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffee",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.tiktok.search.videos?offset=0®ion=US&keyword=coffee", {
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.01476/success, including the service fee.