What it does
Searches TikTok for videos matching a query. Supports filtering by publish time and sorting by relevance, likes, or date.Tool details
| Field | Value |
|---|---|
| Tool name | tiktok.search_videos |
| Platform | TikTok |
| REST endpoint | GET /v1/tiktok/search/videos |
| Result type | Collection tool |
Parameters
| Parameter | Source | Type | Required | Description |
|---|---|---|---|---|
query | query | string | Yes | Search query |
cursor | query | string | No | Pagination cursor Default: 0. |
count | query | integer | No | Number of videos to fetch (maximum: 100, actual results may vary) Default: 50. |
order | query | string | No | Sort order: relevance (default), most-liked, or date-posted Default: relevance. Allowed values: relevance, most-liked, date-posted. |
published | query | string | No | Filter by publish time: all-time (default), yesterday, this-week, this-month, last-3-months, or last-6-months Default: all-time. Allowed values: all-time, yesterday, this-week, this-month, last-3-months, last-6-months. |
projection_preset | shared | string | No | Optional. Defaults to minimal. Allowed values: full, minimal, identity, engagement, content. |
data_fields | shared | string[] | No | Optional. Adds top-level keys from data on top of the selected projection_preset. |
item_fields | shared | string[] | No | Optional. Adds keys from data.orderedItems[] on top of the selected projection_preset. |
Example
Available data fields
Available item fields
Response notes
Successful calls return a JSON object with a top-leveldata field and, when
available, metadata.creditsUsed and metadata.creditsRemaining. See
response format,
pagination, and credits.