TikTok
tiktokRead public TikTok data with Desearch. Set action and that action's arguments. search (query; optional count, sort, cursor): videos that match a keyword. post (id): one video by its ID. profile (username): one profile. profile_posts (username; optional count, cursor): a user's videos. comments (video_id; optional count, cursor): a video's comments. hashtag (tag; optional count, cursor): videos with a hashtag. trending (optional region, count): trending videos for a region, one page. A video id from search can be passed to post or comments. post and profile return the item itself. List actions return { results, next_cursor, next }. For the next page, call again with the same action and target and cursor set to next_cursor, unchanged; next_cursor is null on the last page. A cursor lasts 24 hours.
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": {
"action": "<action>"
},
"name": "tiktok"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | post: the TikTok video ID, example: '7620891413932166433'. | |
| tag | No | hashtag: the hashtag without #, example: 'ai'. A leading # is removed. | |
| sort | No | search: sort option, when TikTok supports one. | |
| count | No | Most items to return (1-100). API default: 10 for search, 20 for the other list actions. One page may hold fewer. | |
| query | No | search: keyword or phrase, example: 'bittensor'. | |
| action | Yes | What to read: 'search', 'post', 'profile', 'profile_posts', 'comments', 'hashtag', or 'trending'. | |
| cursor | No | next_cursor from the previous page of the same action and target, sent back unchanged. Omit it for the first page. | |
| region | No | trending: two-letter region code, example: 'US' (API default). | |
| username | No | profile, profile_posts: TikTok username, example: 'tiktok'. A leading @ is removed. | |
| video_id | No | comments: the TikTok video ID. |