APIs / Social media / TikTok
1 credit per call31 endpointsChecked working 6 Dec 2026
TikTok API
TikTok API for trending hashtags, challenges, music, video search, search suggestions, videos, transcripts and comments as JSON. 31 endpoints.
curl "https://api.perceptlayer.com/v1/tiktok/challenges-search?keywords=cosplay&count=10&cursor=0" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/tiktok/challenges-search?keywords=cosplay&count=10&cursor=0" \
-H "X-API-Key: $API_KEY"TikTok · 31 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/tiktok/ads-details | urlNeeds terms | msgprocessed_time | 1 credit |
GET/v1/tiktok/challenges-details | none+2 optionalNeeds terms | idcha_namedescuser_countview_countis_pgcshow+5 more | 1 credit |
GET/v1/tiktok/challenges-posts | none+5 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+26 more | 1 credit |
GET/v1/tiktok/challenges-search | keywords+2 optionalNeeds terms | idcha_namedescuser_countview_countis_pgcshow+5 more | 1 credit |
GET/v1/tiktok/collections-details | collection_idNeeds terms | idnamecreator_user_idcreator_usernamestatevideo_count | 1 credit |
GET/v1/tiktok/collections-list | none+4 optionalNeeds terms | idnamestatevideo_count | 1 credit |
GET/v1/tiktok/collections-posts | collection_id+2 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+25 more | 1 credit |
GET/v1/tiktok/comments-list | url+2 optionalNeeds terms | idvideo_idtextcreate_timedigg_countreply_total+2 more | 1 credit |
GET/v1/tiktok/comments-replies | comment_id+3 optionalNeeds terms | idvideo_idtextcreate_timedigg_countuser+1 more | 1 credit |
GET/v1/tiktok/feed-list | region+1 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+22 more | 1 credit |
GET/v1/tiktok/feed-search | keywords+5 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+26 more | 1 credit |
GET/v1/tiktok/live-details | room_idNeeds terms | coverUrlsquareCoverImgroomIDtitlestartTimeownerInfo+1 more | 1 credit |
GET/v1/tiktok/music-details | urlNeeds terms | idtitleplaycoverauthororiginal+3 more | 1 credit |
GET/v1/tiktok/music-posts | music_id+2 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+23 more | 1 credit |
GET/v1/tiktok/playlists-details | mix_idNeeds terms | idnametypecreator_unique_idvideo_count | 1 credit |
GET/v1/tiktok/playlists-list | none+4 optionalNeeds terms | idnametype | 1 credit |
GET/v1/tiktok/playlists-posts | mix_id+2 optionalNeeds terms | JSON | 1 credit |
GET/v1/tiktok/regions | noneNeeds terms | ADAEAFAGAIAL+236 more | 1 credit |
GET/v1/tiktok/search-suggestions | queryNeeds terms | typecontentgroup_idlangrecall_reason | 1 credit |
GET/v1/tiktok/transcript | none+3 optionalNeeds terms | video_idlanguagetextsegmentsavailable_languagesvideo | 1 credit |
GET/v1/tiktok/trending-hashtags | country_code+1 optionalNeeds terms | BaseRespitemspagination | 1 credit |
GET/v1/tiktok/user-favorites | none+5 optionalNeeds terms | hasMore | 1 credit |
GET/v1/tiktok/user-followers | none+4 optionalNeeds terms | followerstimehasMore | 1 credit |
GET/v1/tiktok/user-following | none+4 optionalNeeds terms | followingstimehasMore | 1 credit |
GET/v1/tiktok/user-live | unique_id+1 optionalNeeds terms | userstatsliveRoom | 1 credit |
GET/v1/tiktok/user-posts | none+4 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+26 more | 1 credit |
GET/v1/tiktok/user-profile | none+2 optionalNeeds terms | userstats | 1 credit |
GET/v1/tiktok/user-search | keywords+2 optionalNeeds terms | userstats | 1 credit |
GET/v1/tiktok/user-similar | none+3 optionalNeeds terms | JSON | 1 credit |
GET/v1/tiktok/user-story | none+2 optionalNeeds terms | aweme_idvideo_idregiontitlecoverai_dynamic_cover+24 more | 1 credit |
GET/v1/tiktok/video | url+1 optionalNeeds terms | aweme_ididregiontitlecoverai_dynamic_cover+25 more | 1 credit |
Overview
About the TikTok API
What you can get
The TikTok API returns public TikTok data as JSON through 31 endpoints. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis, profiling individuals or contacting people.
- Trends:
trending-hashtagsbycountry_code, with atime_rangeof 7 or 30;feed-listbyregion;regionslists the regions. - Search:
feed-searchforkeywords(withregion,publish_timeandsort_type),challenges-searchforkeywords, andsearch-suggestionsfor aquery. - Challenges:
challenges-detailsandchallenges-postsbychallenge_idorchallenge_name. - Music:
music-detailsbyurl, andmusic-postsbymusic_id. - Videos:
videobyurl,transcriptbyurlorvideo_id(withlanguage),comments-listby the videourl, andcomments-repliesbycomment_id. - Playlists, collections and ads: playlists by
mix_id, collections bycollection_id, andads-detailsbyurl. - Accounts: profile, posts and related endpoints by
unique_idoruser_id.
List endpoints take count and cursor.
How a call works
Most calls are one step. GET /v1/tiktok/trending-hashtags?country_code=US&time_range=7 returns trending hashtags for the US; challenges-posts takes a challenge_name to list posts for one. Every successful call costs 1 credit; failed calls cost nothing.
More social media APIs
Use cases
Track which hashtags trend by country
Use the TikTok API to track which hashtags trend by countryFollow which sounds are spreading through posts
Use the TikTok API to follow which sounds are spreading through postsMeasure how a topic or campaign shows up in video search
Use the TikTok API to measure how a topic or campaign shows up in video searchSee which search suggestions TikTok offers for a keyword
Use the TikTok API to see which search suggestions TikTok offers for a keywordFAQ
Questions
Do I need a TikTok developer account?
No. You call this TikTok API with your Perceptlayer key in the `X-API-Key` header, so there's no separate app to set up. You do need to accept the restricted-endpoint terms first.
How much does the TikTok API cost?
Each successful call costs one credit, on every endpoint. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Is this the official TikTok API?
No. Perceptlayer is an independent service and is not affiliated with TikTok. It returns TikTok data as JSON with a Perceptlayer key, so there is no TikTok developer account, app review or partner approval to get first. It only reads data: if TikTok has an official API and you need to act on your own TikTok account, such as posting, managing orders or reading private data, use that one.
Should I build a TikTok scraper instead?
You can, but a TikTok scraper is code you maintain: page changes break it, requests get blocked, and TikTok's terms govern how you collect data. The TikTok API gives you 31 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.
Try the TikTok API with 100 free credits
No credit card. Failed calls are never billed.