TikTok videos by user, hashtag, search
tiktokGet TikTok videos for a username, a hashtag or a search keyword. The body is {mode: profile|hashtag|search, query, limit} and limit runs 1-20. Each video has id, url, text, created_at, author, plays, likes, comments, shares, saves, duration_s, hashtags and music; no expiring media links. raw true returns the original records. A leading @ or # in the query is stripped.
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": {
"mode": "<mode>",
"query": "<query>"
},
"name": "tiktok"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true returns the provider's own records instead of the compact shape | |
| mode | Yes | profile=user's videos, hashtag=videos under a tag, search=keyword→videos | |
| limit | No | number of videos wanted, 1 to 20 (default 5). A larger value is lowered to 20 and 0 or a negative one means the default; the quote follows the value used. | |
| query | Yes | username (profile), hashtag without #, or search keywords |