- Home
- TikTok API
TikTok API
The FetchTranscript TikTok API returns public TikTok data as clean JSON: a video’s description, hashtags, author, sound, views, likes, comments, shares and saves; its comments page by page; a creator’s profile and their videos, newest first. No TikTok login and no TikTok developer account, the same API key as the YouTube endpoints, one credit per call.
No credit card needed. One API key works on every endpoint.
Quick example
/v1/tiktok/videos/{video_id}Put the video ID in the path and your API key in the X-API-Key header.
# Metadata and stats of a video
curl "https://api.fetchtranscript.com/v1/tiktok/videos/7707741942771191054" \
-H "X-API-Key: yt_your_api_key"
# Its comments, 50 per page (pass next_cursor as cursor for the next page)
curl "https://api.fetchtranscript.com/v1/tiktok/videos/7707741942771191054/comments?limit=50" \
-H "X-API-Key: yt_your_api_key"
# A profile and its latest videos
curl "https://api.fetchtranscript.com/v1/tiktok/users/mrbeast/videos?limit=30" \
-H "X-API-Key: yt_your_api_key"Sample response
{
"video_id": "7707741942771191054",
"url": "https://www.tiktok.com/@mrbeast/video/7707741942771191054",
"description": "Will the odds be in my favor?",
"hashtags": [],
"created_at": "2026-11-13T19:35:41Z",
"duration": 34,
"language": "en",
"location": "US",
"is_ad": false,
"author": {
"username": "mrbeast",
"nickname": "MrBeast",
"user_id": "6614519312189947909",
"sec_uid": "MS4wLjABAAAA...",
"verified": true
},
"music": { "id": "7707742031128333070", "title": "original sound", "author": "MrBeast", "is_original": true },
"view_count": 12200000,
"like_count": 831800,
"comment_count": 26700,
"share_count": 89100,
"save_count": 55231,
"thumbnail_url": "https://p16-common-sign.tiktokcdn-us.com/...",
"has_captions": true,
"caption_languages": ["en-US"]
}Illustrative values: a real response carries the live data of the video or channel you ask for.
Fields
| Field | Type | Description |
|---|---|---|
| video_id, url | string | The video ID and its canonical URL. |
| description, hashtags | string, string[] | The caption the creator wrote and the hashtags in it. |
| created_at | string | When it was posted, ISO 8601 in UTC. |
| duration | integer | null | Length in seconds. |
| author | object | username, nickname, user_id, sec_uid and verified of the creator. |
| music | object | null | The sound: id, title, author and whether it is the creator’s original. |
| view_count, like_count, comment_count, share_count, save_count | integer | null | The counters TikTok shows. |
| language, location | string | null | Language of the description and the country it was posted from. |
| has_captions, caption_languages | boolean, string[] | Whether the video has captions, and in which languages: read them with the TikTok Transcript API. |
Endpoints and parameters
GET /v1/tiktok/videos/{video_id}: metadata and stats of a video.GET /v1/tiktok/resolve?url=: any TikTok URL to its video ID or username.GET /v1/tiktok/videos/{video_id}/comments: top-level comments with author, likes, replies count and date, page by page.GET /v1/tiktok/users/{username}and/videos: a profile (bio, followers, likes, video count) and its public videos.GET /v1/tiktok/videos/{video_id}/transcript: the video’s captions, see the TikTok Transcript API.
| Parameter | In | Type | Default | Description |
|---|---|---|---|---|
| video_id | path | string | required | The digits after /video/ in a TikTok URL. Have a short link? Pass it to GET /v1/tiktok/resolve?url= first. |
| username | path | string | required | For the user endpoints: the @name, with or without the @. |
| limit | query | integer | 20 / 15 | Comments per page (1-50) or videos per page (1-30). |
| cursor | query | string | none | The next_cursor of the previous page of comments or videos. |
A malformed ID is refused with 400 invalid_parameter, an unknown video with 404 video_not_found and an unknown user with 404 user_not_found. None of these is billed.
Use cases
Influencer research
Read a creator’s followers, likes and latest videos with their views and shares before you contact them, and compare creators on the same numbers.
Trend and hashtag tracking
Collect the description, hashtags and sound of videos and follow how their views and shares grow day by day.
Audience feedback
Read what viewers say under a product video or a campaign, sorted by likes, page by page.
Content datasets for AI
Combine metadata, comments and transcripts of public videos into structured JSON for analysis or model training.
Pricing
Every call costs one credit: a video, a page of up to 50 comments or a page of up to 30 videos.
- 100 free calls every month, no credit card
- Then $1 per 1,000 calls, pay as you go
- Only successful calls are billed: errors cost nothing
- Credits valid for 12 months; bulk packs from 10,000 calls for $9
Also in the MCP server for AI assistants
The FetchTranscript MCP server gives Claude, Cursor and other MCP clients the same data as tools: get_tiktok_video, get_tiktok_comments, get_tiktok_user and list_tiktok_user_videos. Ask “what do people say under this TikTok?” and the assistant reads the comments with get_tiktok_comments.
Run it with uvx fetchtranscript-mcp and your API key in FETCHTRANSCRIPT_API_KEY; the MCP server guide has the configuration for each client. Tool calls are billed like API calls.
TikTok API: frequently asked questions
- Do I need a TikTok account or the official TikTok API?
- No. The API reads public TikTok pages without logging in. You only need your FetchTranscript API key, the same one that works for the YouTube endpoints.
- How much does the TikTok API cost?
- One credit per successful call, like every endpoint: a video’s metadata, a page of up to 50 comments or a page of up to 30 videos. Errors are free. Every account gets 100 free calls per month, then it is $1 per 1,000 calls.
- Can I get private videos or private accounts?
- No, only public data. A private video answers 404 video_private and the videos of a private account answer 404 user_private; neither is billed.
- What happens when TikTok refuses requests?
- Now and then TikTok asks visitors to wait. The API retries on its own; if TikTok keeps refusing, the call answers 503 source_blocked with a Retry-After header and costs nothing.
- Can I pass a TikTok link instead of an ID?
- Yes: the SDKs accept full video and profile URLs, and GET /v1/tiktok/resolve turns any TikTok URL, vm.tiktok.com short links included, into the ID or username.
Related APIs
- YouTube Transcript APIThe full transcript of a video as timed JSON, plain text or SRT.
- YouTube Comments APIUp to 500 comments of a video as JSON, with author, likes, date and pinned flag.
- YouTube Search APISearch YouTube by keyword and get up to 50 videos with channel, duration and views.
- YouTube Channel APIA channel’s details by @handle or ID, and the list of its videos page by page.
- YouTube Playlist APIEvery video of a playlist with position, duration and views, page by page with a cursor.
- YouTube Video Metadata APITitle, description, views, likes, tags, categories and chapters of any video.
- YouTube Subtitles APICaptions as SRT, plain text or timed JSON, in every language a video has.
- TikTok Transcript APIThe transcript of a TikTok video from its captions, as timed JSON, text, SRT or WebVTT.
Every parameter and error code is in the TikTok section of the API reference.
Get TikTok data as JSON
Create an account and get 100 free calls every month, for TikTok and YouTube alike.