TikTok API

TikTok Search hashtag API

Search TikTok by hashtag and get matching videos (caption, views, likes, comments, shares) as normalized JSON.

POST/v1/run/tiktok.search_hashtag
Uptime
100.00%
30d · 227 calls
Requests
227
30d · weekly, last 12 wks
Response
5.1s
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": {
    "nextCursor": "example",
    "videos": [
      {
        "author": "Alex Rivera",
        "caption": "A short example description of this item.",
        "comments": 12500,
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "likes": 12500,
        "shares": 13,
        "views": 12500
      }
    ]
  },
  "found": true
}
Response interface
interface TiktokSearchHashtagResponse {
  data: {
    nextCursor: string | null;
    videos: {
      author: string;
      caption: string;
      comments: number;
      createdUtc: number;
      id: string;
      likes: 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-17 · uptime and latency measured over 30d
POST /v1/run/tiktok.search_hashtag
curl -X POST https://api.getanyapi.com/v1/run/tiktok.search_hashtag \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"recipe"}'
FieldTypeExample value
Request body
querystring"recipe"Hashtag or keyword to search for (without the leading #).
cursorstringPagination cursor from a previous response.
Response
dataobject
data.nextCursorstringOpaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue.
data.videosobject[]Populated whenever the provider has data for the entity.
data.videos[].authorstringPopulated whenever the provider has data for the entity.
data.videos[].captionstringPopulated whenever the provider has data for the entity.
data.videos[].commentsinteger
data.videos[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.videos[].idstringPopulated whenever the provider has data for the entity.
data.videos[].likesinteger
data.videos[].sharesinteger
data.videos[].viewsinteger
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the TikTok Search hashtag API

The AnyAPI TikTok Search hashtag API returns TikTok search hashtag data as normalized JSON from one POST call to /v1/run/tiktok.search_hashtag. Search TikTok by hashtag and get matching videos (caption, views, likes, comments, shares) as normalized JSON. 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, 100.0% of TikTok search hashtag calls through AnyAPI succeeded, with a median response time of 5.1 seconds across 227 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 hashtag and get matching videos (caption, views, likes, comments, shares) as normalized JSON. 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 search hashtag calls through AnyAPI succeeded, with a median response time of 5.1 seconds across 227 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.