# tikdataapi.com

> Read-only HTTP API for public TikTok data: profiles, videos, the videos of an account, comments, replies, hashtags, video and account search, follower and following lists, sounds (music) and their videos, reposts, playlists, related videos, the trending (explore) feed, sound, live and hashtag search, the live state of an account (live now or not), and video transcripts (subtitles).
> One credit is one profile, video, comment, reply, hashtag, sound, playlist, live room or transcript returned. Empty results and failed requests cost nothing.
> Search is the general video search, the account search, the sound search and the live search of TikTok. Hashtag search is ours: TikTok gives a logged-out visitor none, so it ranks the hashtags of about 24 videos of the general search, and its counts (result_videos, result_plays) are of those videos, not the totals of TikTok (read /v1/hashtags/{name} for those). Only what TikTok shows a logged-out visitor is read: no filters of the Videos tab (ignored logged out) and no liked videos. A live room is data with no stream URL, and there are no video files.
> Credits are bought once and never expire. Base URL: https://api.tikdataapi.com. Auth: header x-api-key.

Give an agent everything in one line: MCP server at https://api.tikdataapi.com/mcp (Streamable HTTP, OAuth or header x-api-key).
Machine-readable contract: https://api.tikdataapi.com/openapi.yaml (OpenAPI 3.1). Live health: https://api.tikdataapi.com/status (JSON) and https://tikdataapi.com/status.
SDKs: npm tikdataapi (TypeScript), PyPI tikdataapi (Python).
Batches: 100 profiles or 100 videos per call, or the newest videos of 20 accounts.
Every response has credits_charged, balance_remaining, cache and request_id. Errors are JSON with a stable code.
Every profile, video, comment and hashtag has collected_at: the time we read it from TikTok (UTC). An object from cache keeps the time of its own read.
Image addresses (avatar_url, cover_url) are signed by TikTok and stop working after some days: store the image, not the address.
Not affiliated with TikTok or ByteDance.

## Docs

- [Quickstart](https://tikdataapi.com/docs/index.md): First request in two minutes.
- [Authentication](https://tikdataapi.com/docs/authentication.md): Keys, headers and rate limits.
- [Credits and billing](https://tikdataapi.com/docs/credits.md): What costs what, and what is free.
- [Pagination](https://tikdataapi.com/docs/pagination.md): Cursors, page size and ordering.
- [What you can read](https://tikdataapi.com/docs/coverage.md): What the API reads from TikTok, what it cannot read, and how to find accounts, sounds, playlists, live rooms and hashtags.
- [Batch reads](https://tikdataapi.com/docs/batch.md): Up to 100 profiles or videos, or the newest videos of up to 20 accounts, in one request.
- [MCP server](https://tikdataapi.com/docs/mcp.md): Give an agent the whole API in one line.
- [For agents](https://tikdataapi.com/docs/agents.md): Hand the whole API to an LLM or agent in one line.
- [SDKs](https://tikdataapi.com/docs/sdks.md): Typed clients for TypeScript and Python.
- [Errors](https://tikdataapi.com/docs/errors.md): Status codes, error codes and what to do.
- [Versioning](https://tikdataapi.com/docs/versioning.md): What can change inside v1, and what happens before anything is removed.

## Optional

- [Monitor TikTok accounts, videos and hashtags](https://tikdataapi.com/monitoring): new videos of many accounts, video numbers over time, worked costs
- [The best TikTok data APIs in 2026](https://tikdataapi.com/best-tiktok-api): providers compared on price in the same unit, billing, search and followers
- [API reference (OpenAPI 3.1)](https://api.tikdataapi.com/openapi.yaml)
- [Status JSON](https://api.tikdataapi.com/status)
- [Full docs in one file](https://tikdataapi.com/llms-full.txt)
