TikTok Keyword search API
Search TikTok by keyword and get matching videos with captions and engagement (views, likes, comments, shares).
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"found": true,
"data": {
"videos": [
{
"id": "7268287584244124971",
"caption": "My marathon training routine 🏃",
"region": "US",
"views": 1282645,
"likes": 481608,
"comments": 187,
"shares": 2721
}
]
}
}interface TiktokSearchKeywordResponse {
data: {
nextCursor?: string | null;
videos: {
author?: string;
caption: string;
comments: number;
createdUtc?: number;
id: string;
likes: number;
region: string;
saves?: number;
shares: number;
views: number;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-14 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/tiktok.search_keyword \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"marathon training"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "marathon training"The keyword to search TikTok for. |
| cursor | string | Pagination cursor from a previous response. |
| datePosted | integer | Time frame filter. Use a canonical JSON integer that is nonnegative; common values are 0 for any time, 1 for the past 24 hours, 7 for the past week, and 30 for the past month. Legacy numeric strings remain accepted. |
| requireCursor | boolean | Deprecated. Every source for this search returns a nextCursor, so this changes nothing about the price or which source serves you; it stays accepted so callers that already send it keep working. |
| sortBy | enum | Sort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.videos | array | |
| data.videos[].id | string | "7268287584244124971" |
| data.videos[].caption | string | "My marathon training routine 🏃" |
| data.videos[].region | string | "US" |
| data.videos[].views | number | 1282645 |
| data.videos[].likes | number | 481608 |
| data.videos[].comments | number | 187 |
| data.videos[].shares | number | 2721 |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the TikTok Keyword search API
The AnyAPI TikTok Keyword search API returns TikTok keyword search data as normalized JSON from one POST call to /v1/run/tiktok.search_keyword. Search TikTok by keyword and get matching videos with captions and engagement (views, likes, comments, shares). AnyAPI routes each request across 3 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of TikTok keyword search calls through AnyAPI succeeded, with a median response time of 1.9 seconds across 1,059 measured calls.