FetchPI
Log in
← Browse all APIs

TikTok Data API

TikTok profiles, videos, comments, hashtags, music and live rooms through one REST interface that returns normalized JSON.

  • 16 capability families
  • 16 documented endpoints

Endpoints by capability family

profile

1 documented endpointsOpen the profile capability page →

Account identity: profile lookups with bio, verification and audience fields as normalized JSON.

MethodPathCapability
GET/v1/tiktok/users/{username}tiktok.profile

user_posts

1 documented endpointsOpen the user_posts capability page →

Publishing and activity feeds: what an account, hashtag or music page has posted, in order.

MethodPathCapability
GET/v1/tiktok/users/{username}/poststiktok.user_posts

post

1 documented endpointsOpen the post capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/posts/{id}tiktok.post

comments

1 documented endpointsOpen the comments capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/posts/{id}/commentstiktok.comments

search_posts

1 documented endpointsOpen the search_posts capability page →

Search and trends: keyword search over posts and accounts, hot lists and trending topics.

MethodPathCapability
GET/v1/tiktok/search/poststiktok.search_posts

comment_replies

1 documented endpointsOpen the comment_replies capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/posts/{id}/comments/{comment_id}/repliestiktok.comment_replies

user_followers

1 documented endpointsOpen the user_followers capability page →

Relationship graphs: follower and following lists as paginated, normalized JSON.

MethodPathCapability
GET/v1/tiktok/users/{username}/followerstiktok.user_followers

user_following

1 documented endpointsOpen the user_following capability page →

Relationship graphs: follower and following lists as paginated, normalized JSON.

MethodPathCapability
GET/v1/tiktok/users/{username}/followingtiktok.user_following

search_users

1 documented endpointsOpen the search_users capability page →

Search and trends: keyword search over posts and accounts, hot lists and trending topics.

MethodPathCapability
GET/v1/tiktok/search/userstiktok.search_users

hashtag

1 documented endpointsOpen the hashtag capability page →

Hashtags and topics: tag metadata plus the content posted under a tag.

MethodPathCapability
GET/v1/tiktok/hashtags/{tag}tiktok.hashtag

hashtag_posts

1 documented endpointsOpen the hashtag_posts capability page →

Publishing and activity feeds: what an account, hashtag or music page has posted, in order.

MethodPathCapability
GET/v1/tiktok/hashtags/{tag}/poststiktok.hashtag_posts

music

1 documented endpointsOpen the music capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/musics/{id}tiktok.music

live_room

1 documented endpointsOpen the live_room capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/live/{id}tiktok.live_room

live_search

1 documented endpointsOpen the live_search capability page →

Search and trends: keyword search over posts and accounts, hot lists and trending topics.

MethodPathCapability
GET/v1/tiktok/search/livetiktok.live_search

homefeed

1 documented endpointsOpen the homefeed capability page →

Publishing and activity feeds: what an account, hashtag or music page has posted, in order.

MethodPathCapability
GET/v1/tiktok/homefeedtiktok.homefeed

download

1 documented endpointsOpen the download capability page →

Single-content lookups: one post and what is attached to it — comments, likers, media — normalized.

MethodPathCapability
GET/v1/tiktok/download/{id}tiktok.download

Frequently asked questions

Profiles, single videos, comment threads with replies, creator feeds, follower and following graphs, hashtag and hashtag-post lookups, the home feed, music pages, live rooms with live search, post and account search, and download resolution — 16 documented endpoints in all.

About the TikTok Data API

What is the TikTok Data API?

The TikTok Data API is FetchPI's read interface for TikTok: documented REST endpoints that return publicly available TikTok data as structured JSON. Instead of parsing pages or maintaining a per-platform scraper, you call an endpoint and read a normalized response with stable field names — the same schema shape every FetchPI platform uses. All 16 documented endpoints belong to capability families, each with its own reference page, parameter table and examples.

What data can the TikTok Data API retrieve?

The API covers the TikTok capability families listed in the table above: 16 families and 16 endpoints, each documented with its parameters and response schema. Typical workloads include profile enrichment, post and comment collection, follower-graph analysis, keyword monitoring and trend tracking. The exact fields a family returns are documented on its capability page — the API does not promise any data type that is not in the contract.

Capability families published for TikTok today:

  • profile
  • user_posts
  • post
  • comments
  • search_posts
  • comment_replies
  • user_followers
  • user_following
  • search_users
  • hashtag
  • hashtag_posts
  • music
  • live_room
  • live_search
  • homefeed
  • download

How to use the TikTok Data API

Three steps from zero to the first response:

Step 1 — Create a free account

Register in the console. A workspace is provisioned automatically and sign-up includes free Credits for your first calls.

Step 2 — Grab your API key

Create a key in the console and send it as a standard Authorization: Bearer header on every request.

Step 3 — Call an endpoint

Start with a documented endpoint such as GET /v1/tiktok/users/{username} and read the normalized JSON from the response. The copy-paste example below uses the contract's demo values:

curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
  "https://api.fetchpi.com/v1/tiktok/users/newdev"

How data freshness works

Every endpoint accepts the freshness parameters the whole Data API shares: cache answers from the stored snapshot without touching the upstream, live queries fresher data and may cost extra credits, and max_age caps the acceptable data age in seconds. The response meta block reports the mode, age and serving layer that produced each answer, so downstream systems can act on freshness instead of guessing it. What the API does not promise is real-time upstream state — the meta block is the honest report of what you got.

The TikTok Data API compared with building your own scraper

A self-built TikTok scraper owns the happy path and everything after it: page layouts change, anti-bot measures tighten, and every parser fix lands on your roadmap. The Data API turns that maintenance into a contract — documented request and response schemas, published error codes for the not-found and rate-limited cases, and one integration shape reused across every FetchPI platform. The scope stays honest on both sides: the API serves publicly available data only, never asks for your account credentials, and is not an official TikTok product.

Why teams use FetchPI for TikTok data

Three reasons that show up in the integration, not just the pitch:

  • One normalized schema — TikTok responses use the same field structure as every other FetchPI platform, so a multi-platform pipeline parses once.
  • Transparent freshness — every response reports its freshness mode, age and serving layer; you choose cache or live per request and pay accordingly.
  • Usage-based billing — per-request Credits with published per-capability prices, no seats and no flat plans; the meta block reports what each call consumed.

Costs and limits

Billing is per request in Credits: each capability has a published per-call price, cache answers cost less than live fetches, and top-ups are self-serve. Endpoints are rate-limited — a throttled call returns the documented RATE_LIMIT_EXCEEDED error rather than a silent failure — and every response's meta block reports the credits it consumed. Current per-capability prices live on the pricing page; the docs carry the full error-code and rate-limit reference.

View pricing →

Explore more platform data APIs