AdsE-commerce

TikTok API

Also known as抖音国际版抖音海外版

19 endpoints read TikTok: videos, hashtags, users, comments, ad library, Creative Center, TikTok Shop. From $0.0020 a call. No TikTok login and no cookie; a failed call is free.

Endpoints19 endpointsin 7 groups, one response shape
PriceFrom $0.0020per call. Failed calls are free
30-day availability100% Live · the share of time the endpoints were serving calls
DataFetched liveat the moment of the call

The 19 endpoints for TikTok, and what each returns

  • TikTok Ads Library search: Search TikTok's public Ads Library (ads shown in Europe) by keyword or by the advertiser's name: advertiser, headline, videos and images, when each was first and last shown, and a bracket of people reached; newest first, 12 ads a page. This is the transparency record of ads, a different set from the Creative Center's Top Ads.
  • TikTok Ads Library ad detail: Get one ad of TikTok's public Ads Library by its ID or link: advertiser, headline, videos and images, landing page, when it was first and last shown, the countries it was shown in and the campaign's objective.
  • TikTok comment replies: Get a page of the replies to a TikTok comment, by the comment's ID and its video's ID, 20 a page: text, replier, likes, time posted, which reply it answers.
  • TikTok Creative Center Top Ad detail: Get one Top Ad of TikTok's Creative Center by its ID: the ad's video, caption, brand name, landing page, likes, comments, shares, length, campaign objective, industry code and the countries it ran in.
  • TikTok Creative Center Top Ads search: Search the Top Ads of TikTok's Creative Center by keyword: the ad's video, caption, brand name, likes, length and campaign objective; one country at a time, over a chosen period, in the Creative Center's own order or by likes. 20 ads a page. This is a showcase of ads that did well, not an ad library: it has no dates.
  • TikTok hashtag videos: Get a page of the TikTok videos under a hashtag, by its name, about 20 a page: caption, author, engagement counts, cover and play address.
  • TikTok user profile: Get a TikTok user's profile by handle or ID: name, bio, follower, following and video counts, likes received, verification.
  • TikTok user search: Search TikTok accounts by keyword, 30 a page: handle, name, follower, following and video counts, likes received.
  • TikTok user videos: Get a page of the videos a TikTok user posted, by handle, 10 a page: caption, engagement counts, time posted, cover and play address; newest or most popular first.
  • TikTok video comments: Get a page of comments on a TikTok video by ID or link, 50 a page: text, commenter, likes, reply count, time posted. Each comment also says the commenter account's country or region.
  • TikTok video detail: Get one TikTok video by ID or link: caption, author, like, comment, share, favorite and play counts, cover and play address.
  • TikTok video search: Search TikTok videos by keyword, 30 a page; sort by relevance, likes or time posted, and limit how recently they were posted.
  • TikTok video transcript: Get what is said in a TikTok video by ID or link: the whole text and timed segments. lang chooses the language of the captions.
  • TikTok Shop product detail: Get a TikTok Shop product in the United States by its ID: title, description, pictures, rating, reviews, units sold, the shop with its rating, followers and products on sale, and the price and shipping fee its page shows. The page's price runs about a shipping fee above the price in the shop's list and the search, which the product search gives.
  • TikTok Shop product reviews: Get the first 10 buyers' reviews of a TikTok Shop product in the United States by the product's ID: text, rating, time, variant bought, pictures.
  • TikTok Shop product search: Search the products of TikTok Shop in the United States by terms: title, current and original price, rating, units sold, shop.
  • TikTok Shop seller products: Get a page of the products a TikTok Shop seller in the United States has on sale by the seller's ID: title, current and original price, rating, reviews, units sold.
  • TikTok user followers: Get a page of the accounts following a TikTok user, by handle, 50 a page, newest followers first: handle, name, bio, follower, following and video counts, likes received, and each account's country or region and language, for where the followers are.
  • TikTok video downloader, no watermark: Give a TikTok video or photo post by ID or link and get the address of every file it has: the video without watermark in each quality (with width, height, codec, bit rate, size and when it expires), the cover, the background music, and each picture of a photo post. Where a signature says when an address expires, expires_at says so; another call gives new ones.

One call, as it came back

A recorded call, fields already tidied up: ready for an AI or a spreadsheet.
Recorded
GET/v1/tiktok/videos/search$0.0020
FieldValue
typevideo
langen
published_at2026-10-11 23:17 UTC
author.followers92,601
metrics.likes353
metrics.comments11
metrics.shares19
metrics.favorites40

The first 8 rows of a response recorded 2026-10-12 19:17 UTC.

Run it in the Playground · $0.0020
Recorded response
{
  "code": "ok",
  "request_id": "eecdbf3f-64ce-4b11-b396-ee190d7ff728",
  "data": {
    "items": [
      {
        "id": "7566364515678793552",
        "url": "https://www.tiktok.com/@trail_and_lens/video/7566364515678793552",
        "type": "video",
        "text": "My honest take on space station, a month in.",
        "lang": "en",
        "published_at": "2026-10-11T23:17:34.000Z",
        "author": {
          "id": "6279025233109159764",
          "username": "trail_and_lens",
          "name": "Maya Chen",
          "avatar_url": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/fff322a0d982cccf1e82~c5_100x100.jpeg",
          "followers": 92601
        },
        "metrics": {
          "likes": 353,
          "comments": 11,
          "shares": 19,
          "favorites": 40,
          "views": 7561
        },
        "hashtags": [
          "weekendvibes",
          "gearreview",
          // … 2 more
        ],
        "mentions": []
      },
      // … 29 more
    ]
  },
  "page": {
    "next_cursor": "c1.bGY_kn5Dxsgl6MN3VXHyMcLAdlxPxQw-FwjswIlE",
    "cursor_expires_at": "2026-10-12T20:17:24.000Z",
    "has_more": true,
    "returned": 30
  },
  "warnings": [],
  "meta": {
    "capability": "tiktok.videos.search",
    "result_status": "complete",
    "fetched_at": "2026-10-12T19:17:24.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "title": "platform",
      "images": "capability",
      "author.verified": "capability",
      "metrics.reposts": "capability",
      "mentions.username": "capability",
      "mentions.name": "capability",
      "post_id": "platform",
      "parent_id": "platform",
      "root_id": "platform",
      "is_pinned": "capability"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}

From a response recorded 2026-10-12 19:17 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

What you can get

Each row is an endpoint: what it returns and what one call costs.

EndpointPathReturnsPrice
Videos5
TikTok video searchGET/v1/tiktok/videos/searchPost list$0.0020
TikTok video detailGET/v1/tiktok/videos/getPost$0.0020
TikTok video downloader, no watermarkGET/v1/tiktok/videos/media/getMedia files$0.0020
TikTok video transcriptGET/v1/tiktok/videos/transcript/getTranscript$0.0020
TikTok video commentsGET/v1/tiktok/videos/comments/listComment list$0.0020
Hashtags1
TikTok hashtag videosGET/v1/tiktok/hashtags/videos/listPost list$0.0020
Users4
TikTok user searchGET/v1/tiktok/users/searchAccount list$0.0020
TikTok user profileGET/v1/tiktok/users/getAccount$0.0020
TikTok user followersGET/v1/tiktok/users/followers/listAccount list$0.0020
TikTok user videosGET/v1/tiktok/users/videos/listPost list$0.0020
Comments1
TikTok comment repliesGET/v1/tiktok/comments/replies/listComment list$0.0020
Ad library2
TikTok Ads Library searchGET/v1/tiktok/ads/searchAd list$0.0020
TikTok Ads Library ad detailGET/v1/tiktok/ads/getAd$0.0020
TikTok Creative Center Top Ads searchGET/v1/tiktok/creative_center/ads/searchAd list$0.0020
TikTok Creative Center Top Ad detailGET/v1/tiktok/creative_center/ads/getAd$0.0020
TikTok Shop product searchGET/v1/tiktok/shop/products/searchProduct list$0.0020
TikTok Shop product detailGET/v1/tiktok/shop/products/getProduct$0.0020
TikTok Shop product reviewsGET/v1/tiktok/shop/products/reviews/listReview list$0.0020
TikTok Shop seller productsGET/v1/tiktok/shop/sellers/products/listProduct list$0.0020
Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.TikTok API pricing →TikTok data in your AI →See live status →

Only on TikTok

Creative Center, TikTok Shop: data that sits behind TikTok's own dashboards and sign-ins. Here each is one GET.

TikTok Creative Center API →

Top Ads search, ad details and performance

The Top Ads of TikTok's Creative Center: search the ads running on the list and read one ad with its performance figures.

GET /v1/tiktok/creative_center/ads/search$0.00202 endpoints · from $0.0020 →
TikTok Shop API →

Product search, product details, buyer reviews, seller catalogs

Public product data of TikTok Shop: product search, product details, buyer reviews and a seller's products.

GET /v1/tiktok/shop/products/search$0.00204 endpoints · from $0.0020 →

What people build with it

Ready-made tasks your AI can run on TikTok data. Each is a few calls under a spending cap.

Ask about TikTok right inside Claude or Cursor

Add the OneFeedAPI MCP server and the AI finds the TikTok endpoint it needs and calls it; answers link back to the source. You pay for the calls it makes.

TikTok MCP setup →
https://onefeedapi.com/mcp

Start in three steps

The call shown here is TikTok video search. Every other TikTok endpoint is called the same way and answers in the same envelope.

Get a key

Sign in with an emailed code or Google. Free trial, no card needed.

Call it, or let your AI call it

One GET from your code. Or paste this prompt into your agent with your key in it: it sets itself up, then finds and calls these endpoints by itself.

Read https://onefeedapi.com/agents.md and set up OneFeedAPI in this agent. My API key is dx_live_…; use it for every OneFeedAPI call.

Sign in to copy it with your key

Read the same shape every time

Items are in data.items (one object in data.item), the next page in page.next_cursor, the charge in meta.billing.amount. A failed call is not charged.

Read the quickstart →
curl -G "https://onefeedapi.com/v1/tiktok/videos/search" \
  --data-urlencode "query=space station" \
  -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi
from onefeedapi import OneFeedAPI

dx = OneFeedAPI()  # reads ONEFEED_API_KEY
result = dx.tiktok.videos.search(query="space station")
print(result["data"]["items"])
// npm i @onefeedapi/sdk
import { OneFeedAPI } from "@onefeedapi/sdk";

const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY
const result = await dx.tiktok.videos.search({ query: "space station" });
console.log(result.data.items);
onefeedapi call tiktok.videos.search 'query=space station'
{
  "mcpServers": {
    "onefeedapi": {
      "type": "http",
      "url": "https://onefeedapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ONEFEED_API_KEY}"
      }
    }
  }
}

Add this to your MCP client, then ask your agent to call tiktok.videos.search.

Edge cases

What the TikTok endpoints do at their edges, and what to check when a call does not return what you expected.

Page sizes
A list returns 10 to 60 items a page, depending on the endpoint. 10 of the 12 lists go on to a next page: page.next_cursor, passed back as cursor, each page a call of its own. The others return one page only.
Fields it cannot give
17 of the 19 endpoints cannot fill every field of the object they return. Each endpoint's page lists which, and every answer repeats them in meta.unavailable: a missing field is never a silent zero.
A missing object that reads as empty
TikTok comment replies, TikTok video comments, TikTok Shop product reviews: an object that does not exist cannot be told from one with nothing under it, so the answer is an empty result, not a 404.
Preview structures
8 endpoints return a preview structure whose fields may still change; the others return a standard object, the same on every platform.
Accounts by handle
An account's videos and followers take the handle without the @; hashtag videos take the hashtag's name without the #.
Long links only
Video endpoints take the ID or the long link (tiktok.com/@<handle>/video/<id>); short links are not taken.
Ads Library and Top Ads differ
The Ads Library is the transparency record of ads shown in Europe. Top Ads is a showcase of ads that did well, one country at a time (the US when none is named), and has no dates.
Shop: the US, first page
Shop endpoints cover the United States. Product detail has no price; product search gives it. Search and reviews return their first page only, reviews the first 10.
Not every video has a transcript
A video without captions reads as not found and is not charged; a video ID nobody has reads the same.

Questions about the TikTok API

Short answers. The details are on each endpoint's page.

What TikTok data can I get through the API?

19 endpoints: videos, hashtags, users, comments, ad library, Creative Center, TikTok Shop. Each endpoint's page gives its parameters and fields, with a recorded response.

How do I call the TikTok API?

Sign up for a key, send it as Authorization: Bearer <key> and call the endpoint's address, for example GET https://onefeedapi.com/v1/tiktok/ads/search. Or connect OneFeedAPI to Claude, Cursor or ChatGPT (MCP) and ask in a sentence. The free trial needs no card.

How many tokens does a TikTok API response take in an AI?

Across 18 TikTok endpoints, one recorded real response each, the platform's own JSON comes to 2.3M tokens and what an AI reads through OneFeedAPI's MCP server to 35k, 98% fewer; the JSON of a direct API call is 97% fewer (counted 2026-11-06). Every platform uses the same field names, and fields returns only the ones you name.

How is the TikTok API priced?

Per call, no subscription. All 19 endpoints cost $0.0020 a call. You are charged when data comes back; a failed call costs nothing.

Do I need a TikTok account or a cookie?

No. One OneFeedAPI key is all you hold: no TikTok login, no cookie, no device to keep alive. The endpoints return publicly visible data only.

Is the data live?

A call fetches from TikTok at that moment, and meta.fetched_at says when. A result is kept for 24 hours, so a retry with the same Idempotency-Key is not charged again.

What happens when TikTok changes something?

A call that fails is not charged, whatever the reason. An endpoint that is paused answers capability_paused, also free, and GET /v1/catalog/status says what is up right now.

Related

Call TikTok with one key.

Free trial on sign-up: up to 50 calls at $0.0020. No card. No TikTok login, no cookie, no subscription. A failed call is free.

Start free