TikTok API

TikTok Keyword search API

Search TikTok by keyword and get matching videos with captions and engagement (views, likes, comments, shares).

POST/v1/run/tiktok.search_keyword
Uptime
100.00%
30d · 1,059 calls
Requests
1,059
30d · weekly, last 12 wks
Response
1.9s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "found": true,
  "data": {
    "videos": [
      {
        "id": "7268287584244124971",
        "caption": "My marathon training routine 🏃",
        "region": "US",
        "views": 1282645,
        "likes": 481608,
        "comments": 187,
        "shares": 2721
      }
    ]
  }
}
Response interface
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 30d
POST /v1/run/tiktok.search_keyword
curl -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"}'
FieldTypeExample value
Request body
querystring"marathon training"The keyword to search TikTok for.
cursorstringPagination cursor from a previous response.
datePostedintegerTime 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.
requireCursorbooleanDeprecated. 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.
sortByenumSort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.
Response
foundbooleantrue
dataobject
data.videosarray
data.videos[].idstring"7268287584244124971"
data.videos[].captionstring"My marathon training routine 🏃"
data.videos[].regionstring"US"
data.videos[].viewsnumber1282645
data.videos[].likesnumber481608
data.videos[].commentsnumber187
data.videos[].sharesnumber2721
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search TikTok by keyword and get matching videos with captions and engagement (views, likes, comments, shares). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.