Search TikTok videos
tiktok_search_videosSearch TikTok posts by keyword. Each result includes the caption, view, like, comment and share counts, creator, sound and hashtags. Page through results with the cursor from the previous response's nextCursor. Read-only: returns public data and changes nothing. Costs 1 credit per request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"count": "<count>"
},
"name": "tiktok_search_videos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of results to return (1–30). Defaults to 30. | |
| query | Yes | Search keywords, for example "street food". | |
| cursor | No | The previous response's `nextCursor`, to fetch the next page. Omit it for the first page. | |
| cacheOnly | No | Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| cacheMaxAgeHours | No | Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24. |