TikTok API

TikTok Video API

Full detail for a single TikTok video by URL: caption, region and engagement counts (views, likes, comments, shares, saves).

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

What the API returned
{
"id": "7375000000000000000",
"caption": "Matchday 🔥",
"region": "US",
"views": 9400000,
"likes": 1200000,
"comments": 18400,
"shares": 64000,
"saves": 41200,
... 16 more fields
}
Uptime
99.89%
30d · 9,081 calls
Requests
9,435
30d · weekly, last 12 wks
Response
1.4s
median · 30d

Pricing and providers

TikTok Video API pricing: one API, 5 interchangeable providers

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

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

Try it

Get TikTok video 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 `views`, 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. A source that returns only a rounded or shortened value for a field does not count as returning it.
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 10 of 27 fields. See every field

{
  "found": true,
  "data": {
    "id": "7375000000000000000",
    "caption": "Matchday 🔥",
    "region": "US",
    "views": 9400000,
    "likes": 1200000,
    "comments": 18400,
    "shares": 64000,
    "saves": 41200
  }
}

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-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • idstring

    TikTok video ID, the numeric run at the end of a video URL. Use it when a listing SKU handed you an id and no URL.

  • 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 `views`, 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. A source that returns only a rounded or shortened value for a field does not count as returning it.

  • urlstring

    https://www.tiktok.com/@cristiano/video/7375000000000000000

    Full TikTok video URL.

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

Response

JSON, one example value per field.

datadata
  • authorFollowersintegercan require

    The author's follower count at the time of the request. Some sources round large counts; name `authorFollowers` in requireFields to be served only by a source that returns the exact count. Null when the serving source does not report it.

  • authorHandlestring

    Author's TikTok handle, without the leading @.

  • authorImagestring

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

  • authorNamestring

    Author's display name.

  • authorUserIdstring

    Author's numeric TikTok user id.

  • authorVerifiedbooleancan require

    Whether the author's account carries a TikTok verification badge. Null when the serving source does not report it.

  • captionstring

    Matchday 🔥

    Populated whenever the provider has data for the entity.

  • commentsintegercan require

    18400

    Number of comments. Some sources round large counts (48.5K instead of 48,536); name `comments` in requireFields to be served only by a source that returns the exact count.

  • createdUtcnumber

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

  • durationSecondsnumber

    Video duration in seconds.

  • hashtagsstring[]

    Hashtags carried in the caption, without the leading #. Empty when the post uses none; @-mentions are excluded.

  • idstring

    7375000000000000000

    Populated whenever the provider has data for the entity.

  • imagestring

    URL of the video's cover/thumbnail image. A signed, short-lived TikTok CDN URL (typically expires within about a day; query params are load-bearing and kept intact), often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support. Absent when the upstream provides no cover.

  • likesintegercan require

    1200000

    Number of likes. Some sources round large counts (2.9M instead of 2,884,604); name `likes` in requireFields to be served only by a source that returns the exact count.

  • regionstring

    US

  • savesinteger

    41200

  • sdVideoUrlstringcan require

    Standard-resolution H.264 video URL without the watermark (often 720p), playable in every browser; the same file as videoUrl when the source has no higher-resolution file. Signed and short-lived, so the query string is load-bearing and kept intact.

  • sharesintegercan require

    64000

    Number of shares. Some sources round large counts (35.9K instead of 35,923); name `shares` in requireFields to be served only by a source that returns the exact count.

  • soundAuthorstring

    Credited author of the sound. Populated whenever the provider has data for the entity.

  • 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.

  • soundTitlestring

    Name of the sound. "original sound" means the creator's own audio rather than a licensed track. Populated whenever the provider has data for the entity.

  • urlstring

    Canonical TikTok URL of the video.

  • videoUrlstringcan require

    Playable video URL without the watermark, at the highest resolution the source has: often 1080p and often encoded as H.265 (HEVC), which some browsers such as Firefox cannot play; use sdVideoUrl for those. Signed and short-lived, so the query string is load-bearing and kept intact.

  • viewsintegercan require

    9400000

    Number of plays. Some sources round large counts (32.7M instead of 32,736,400); name `views` in requireFields to be served only by a source that returns the exact count.

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.

Selling this API? See the full schema your endpoint must return.

FAQ

About the TikTok Video API

The AnyAPI TikTok Video API returns TikTok video data as normalized JSON from one POST call to /v1/run/tiktok.video. Full detail for a single TikTok video by URL: caption, region and engagement counts (views, likes, comments, shares, saves). AnyAPI routes each request across 5 sources and falls back automatically when one fails. It costs from $0.40 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.9% of TikTok video calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 9,081 measured calls.

It costs from $0.40 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.

Full detail for a single TikTok video by URL: caption, region and engagement counts (views, likes, comments, shares, saves). 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.9% of TikTok video calls through AnyAPI succeeded, with a median response time of 1.4 seconds across 9,081 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 250 TikTok Video calls at $0.0004 each.

AnyAPI asks the next of its 5 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.video 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.