TikTok API

TikTok Search hashtag API

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

$1.20/1k req, pay per request, no subscription.

What the API returnedvideos[0]
{
"id": "7483012938467123901",
"caption": "5 minute garlic butter shrimp, no cap this is the easiest weeknight dinner #recipe",
"author": "marcochef",
"views": 4820000,
"likes": 612000,
"comments": 8420,
"shares": 31200,
"createdUtc": 1758844800,
... 14 more fields
}
Uptime
100.00%
30d · 2,174 calls
Requests
2,174
30d · weekly, last 12 wks
Response
4.8s
median · 30d

Pricing and providers

TikTok Search hashtag API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get TikTok search hashtag in one request

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle` or `locationName`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 21 of 27 fields. See every field

{
  "found": true,
  "data": {
    "nextCursor": "MTc1ODkzMTIwMA",
    "videos": [
      {
        "id": "7483012938467123901",
        "caption": "5 minute garlic butter shrimp, no cap this is the easiest weeknight dinner #recipe",
        "author": "marcochef",
        "views": 4820000,
        "likes": 612000,
        "comments": 8420,
        "shares": 31200,
        "createdUtc": 1758844800,
        "url": "https://www.tiktok.com/@marcochef/video/7483012938467123901",
        "image": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/recipe-hero-clean~tplv-obj.jpeg?x-signature=Kq3fN1p",
        "videoUrl": "https://v16-webapp.tiktok.com/8f2a1c9e0b3d4e5f6a7b8c9d0e1f2a3b/tiktok/video.mp4?x-expires=1759344000&x-signature=Kq3fN1p",
        "durationSeconds": 42,
        "saves": 94300,
        "authorName": "Marco Delgado",
        "authorUserId": "6801238450918273920",
        "authorImage": "https://p16-sign-va.tiktokcdn.com/tos-useast5-avt-0068/marcochef-avatar~tplv-obj.jpeg?x-signature=Rf8pQ2m",
        "authorVerified": false
      },
      {
        "id": "7482977213904456782",
        "caption": "one pan chicken and rice that tastes like your grandma made it #recipe",
        "author": "sundaykitchen",
        "views": 1930000,
        "likes": 248000,
        "comments": 3110,
        "shares": 9800,
        "createdUtc": 1758758400,
        "url": "https://www.tiktok.com/@sundaykitchen/video/7482977213904456782",
        "image": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/recipe-second-clean~tplv-obj.jpeg?x-signature=Lm4hR2v",
        "durationSeconds": 58,
        "saves": 41200,
        "authorName": "Priya Anand",
        "authorUserId": "6712398450918204561",
        "authorImage": "https://p16-sign-va.tiktokcdn.com/tos-useast5-avt-0068/sundaykitchen-avatar~tplv-obj.jpeg?x-signature=Tg9wE3n",
        "authorVerified": true
      },
      {
        "id": "7482801122938467892",
        "caption": "budget meal prep for the week, $22 total #recipe #mealprep",
        "author": "budgetbites",
        "views": 862000,
        "likes": 91400,
        "comments": 1560,
        "shares": 4200,
        "createdUtc": 1758672000,
        "url": "https://www.tiktok.com/@budgetbites/video/7482801122938467892",
        "image": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/recipe-third-clean~tplv-obj.jpeg?x-signature=Xp2qZ8k",
        "durationSeconds": 71,
        "saves": 18700,
        "authorName": "Jasmine Cole",
        "authorUserId": "6623409851029384712",
        "authorImage": "https://p16-sign-va.tiktokcdn.com/tos-useast5-avt-0068/budgetbites-avatar~tplv-obj.jpeg?x-signature=Vn7yC1s",
        "authorVerified": false
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-11-01 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • querystring

    recipe

    Hashtag or keyword to search for (without the leading #).

  • cursorstring

    Pagination cursor from a previous response.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle` or `locationName`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • nextCursorstring

    MTc1ODkzMTIwMA

    Opaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue.

each videodata.videos[]

Populated whenever the provider has data for the entity.

  • authorstring

    marcochef

    Populated whenever the provider has data for the entity.

  • authorImagestring

    https://p16-sign-va.tiktokcdn.com/tos-useast5-avt-0068/marcochef-avatar~tplv-obj.jpeg?x-signature=Rf8pQ2m

    Author's avatar image URL. Signed and short-lived, so the query string is load-bearing and kept intact.

  • authorNamestring

    Marco Delgado

    Author's display name.

  • authorUserIdstring

    6801238450918273920

    Author's numeric TikTok user id.

  • authorVerifiedboolean

    false

    Whether the author's account carries a TikTok verification badge.

  • captionstring

    5 minute garlic butter shrimp, no cap this is the easiest weeknight dinner #recipe

    Populated whenever the provider has data for the entity.

  • commentsinteger

    8420

  • createdUtcnumber

    1758844800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • durationSecondsnumber

    42

    Video duration in seconds.

  • hashtagsstring[]

    Hashtags carried in the caption, without the leading #. Empty when the post uses none; @-mentions are excluded. Populated whenever the provider has data for the entity.

  • idstring

    7483012938467123901

    Populated whenever the provider has data for the entity.

  • imagestring

    https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/recipe-hero-clean~tplv-obj.jpeg?x-signature=Kq3fN1p

    URL of the video's cover image. Signed and short-lived, so the query string is load-bearing and kept intact.

  • likesinteger

    612000

  • locationNamestringcan require

    Name of the place the video is tagged at, or null when it has no location tag or the serving source does not report it.

  • savesinteger

    94300

    Save count.

  • sharesinteger

    31200

  • soundAuthorstringcan require

    Credited author of the sound. Null when the serving source does not report it.

  • soundClipIdstring

    Id of the sound the video uses. Pass it to tiktok.song or tiktok.song_videos as clipId. Populated whenever the provider has data for the entity.

  • soundTitlestringcan require

    Name of the sound. "original sound" means the creator's own audio rather than a licensed track. Null when the serving source does not report it.

  • urlstring

    https://www.tiktok.com/@marcochef/video/7483012938467123901

    Canonical TikTok URL of the video.

  • videoUrlstring

    https://v16-webapp.tiktok.com/8f2a1c9e0b3d4e5f6a7b8c9d0e1f2a3b/tiktok/video.mp4?x-expires=1759344000&x-signature=Kq3fN1p

    Playable video URL. Signed and short-lived, so the query string is load-bearing and kept intact.

  • viewsinteger

    4820000

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

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 4.8 seconds across 2,174 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 and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

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

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 TikTok Search hashtag calls at $0.0012 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/tiktok.search_hashtag with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.