TikTok API

TikTok Search top API

Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination.

POST/v1/run/tiktok.search_top
Uptime
99.21%
30d · 1,266 calls
Requests
1,266
30d · weekly, last 12 wks
Response
4.4s
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.
{
  "data": {
    "items": [
      {
        "author": "Alex Rivera",
        "caption": "A short example description of this item.",
        "comments": 12500,
        "contentType": "A short example description of this item.",
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "likes": 12500,
        "saves": 42,
        "shares": 13,
        "url": "https://example.com/page",
        "views": 12500
      }
    ],
    "nextCursor": "example"
  },
  "found": true
}
Response interface
interface TiktokSearchTopResponse {
  data: {
    items: {
      author: string;
      caption: string;
      comments: number;
      contentType: string;
      createdUtc?: number;
      id: string;
      likes: number;
      saves?: number;
      shares: number;
      url: string;
      views: number;
    }[];
    nextCursor: string | null;
  } | 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-16 · uptime and latency measured over 30d
POST /v1/run/tiktok.search_top
curl -X POST https://api.getanyapi.com/v1/run/tiktok.search_top \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"funny"}'
FieldTypeExample value
Request body
querystring"funny"Keyword to search for (e.g. "funny").
cursorstringPagination cursor from a previous response.
publishTimestringTime-frame filter: yesterday, this-week, this-month, last-3-months, last-6-months, all-time.
regionstring2-letter country code for the proxy location (e.g. US, GB, FR).
sortBystringSort order: relevance, most-liked, date-posted.
Response
dataobject
data.itemsobject[]Populated whenever the provider has data for the entity.
data.items[].authorstringPopulated whenever the provider has data for the entity.
data.items[].captionstringPopulated whenever the provider has data for the entity.
data.items[].commentsinteger
data.items[].contentTypestring
data.items[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.items[].idstringPopulated whenever the provider has data for the entity.
data.items[].likesinteger
data.items[].savesinteger
data.items[].sharesinteger
data.items[].urlstringPopulated whenever the provider has data for the entity.
data.items[].viewsinteger
data.nextCursorstringOpaque cursor for the next page of results, or null when this lane has no more. Pass it back as cursor to continue.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the TikTok Search top API

The AnyAPI TikTok Search top API returns TikTok search top data as normalized JSON from one POST call to /v1/run/tiktok.search_top. Search TikTok's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination. AnyAPI routes each request across 2 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, 99.2% of TikTok search top calls through AnyAPI succeeded, with a median response time of 4.4 seconds across 1,266 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's top results for a keyword (caption, views, likes, comments, shares) with cursor pagination. 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, 99.2% of TikTok search top calls through AnyAPI succeeded, with a median response time of 4.4 seconds across 1,266 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.