TikTok API
tiktok.com
Public TikTok data: profiles, posts, comments and search.
- Actions
- 6
- Category
- Social Media
- Login
- Not required
- Output
- JSON
Call the TikTok API
Submit a task, then poll the job until it settles. This example runs tiktok_keyword_search.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "tiktok_keyword_search",
"params": {
"query": "cooking"
}
}'6 actions on tiktok.com
Read
Keyword Search
tiktok_keyword_searchread2 credits / callSearch TikTok videos by keyword, one full page (about 30) per call, with caption, author, post date, plays, likes, comments, shares, video download link, country and caption language. Optional country runs the search from that country. Optional date_posted limits results to a time window and sort_by orders them by relevance, most liked or most recent. Use cursor for more.
- query
- string · required
- country
- string
- date_posted
- string
- sort_by
- string
- cursor
- string
Profile
tiktok_profileread2 credits / callGet a public TikTok profile: username, display name, bio, verified badge, follower, following, like and video counts, and avatar.
- username
- string · required
User Videos
tiktok_user_videosread2 credits / callGet a TikTok user's latest videos, one full page (about 10) per call: link, caption, post date, length, plays, likes, comments, shares, saves, cover image, video download link, sound, country and caption language. Use cursor for older videos.
- username
- string · required
- cursor
- string
Video Comments
tiktok_video_commentsread2 credits / callGet the comments on a TikTok video, one full page (about 10-20) per call: text, likes, reply count, date and commenter username. Use cursor for more.
- video_url
- string · required
- cursor
- string
Video Details
tiktok_video_detailread2 credits / callGet the details of one TikTok video: caption, post date, length, plays, likes, comments, shares, saves, cover image, video download link, sound, author, country and caption language.
- video_url
- string · required
Video Transcript
tiktok_transcriptread2 credits / callGet the spoken transcript of a TikTok video as plain text and timed segments. Videos without speech return has_transcript false.
- video_url
- string · required
TikTok API questions
- Is there an API for TikTok?
- TikTok does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for tiktok.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape TikTok data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when tiktok.com changes its markup, Anakin updates the action.
- Do I need a TikTok account?
- No. Every TikTok action listed here runs anonymously — no account and no credentials required.
- What does the TikTok API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Social Media APIs
Are.na
Are.na - channels, block search, channel details, and public profiles.
Bear Blog
Bear Blog - trending posts, articles, author blogs, and discover feed.
Cara
Cara artist social and portfolio platform
Public Facebook data: profiles, posts, comments and search.
Public Instagram data: profiles, posts, comments and search.
Public LinkedIn data: profiles, posts, comments and search.