API
TikTok API
The TrueScrape TikTok API exposes 32 public endpoints covering One TikTok ad, Search the TikTok Ads Library and Collection videos. Every call is a GET against public, logged-out pages and returns the same unified schema as every other platform here. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.
One TikTok ad
curl "https://api.truescrape.com/v1/tiktok/ad-library/ad?ad_id=1873863495056546" \
-H "x-api-key: $KEY"What TikTok exposes
- A TikTok profile returns followers, following, video count, bio, bio link and verification; counts are the exact figure where TikTok ships one, and `raw.approximateCounts` names any that fell back to the rounded display figure.
- A private TikTok account returns its public shell with `isPrivate: true` rather than an error. Total likes received (TikTok's "hearts") is `likeCount`; TikTok publishes no lifetime view count, so `viewCount` is null.
- A TikTok video returns its caption, hashtags, mentions, author, sound, duration and view, like, comment and share counts; photo posts are typed `image` or `carousel` and return every image in `mediaUrls`. When TikTok serves only the embed card, counts and media are null and the request is free.
- A creator's region is read from TikTok's own `region` field, on the profile or on the creator's recent posts, and is never guessed from language or timezone; an account with none returns an empty result, which is free.
- The trending feed is the logged-out For You feed, which TikTok personalises even for an anonymous visitor, so two calls a second apart return different videos.
Endpoints
- One TikTok ad
/v1/tiktok/ad-library/ad1 credit - Search the TikTok Ads Library
/v1/tiktok/ad-library/search1 credit - Collection videos
/v1/tiktok/collection/videos1 credit - Replies to a comment
/v1/tiktok/comment-replies1 credit - Comments on a video
/v1/tiktok/comments1 credit - Popular creators
/v1/tiktok/creators/popular1 credit - Accounts following a creator
/v1/tiktok/followers1 credit - Accounts a creator follows
/v1/tiktok/following1 credit - Hashtag details
/v1/tiktok/hashtag1 credit - Videos using a hashtag
/v1/tiktok/hashtag-videos1 credit - Live stream info
/v1/tiktok/live1 credit - Videos in a playlist
/v1/tiktok/playlist-videos1 credit - A creator's playlists
/v1/tiktok/playlists1 credit - Product details
/v1/tiktok/product1 credit - Profile details
/v1/tiktok/profile1 credit - Creator region
/v1/tiktok/profile/region1 credit - Search videos by keyword
/v1/tiktok/search/keyword1 credit - Search suggestions
/v1/tiktok/search/suggestions1 credit - Top (blended) search
/v1/tiktok/search/top1 credit - Search creators
/v1/tiktok/search/users1 credit - Product reviews
/v1/tiktok/shop/product/reviews1 credit - Seller's product catalogue
/v1/tiktok/shop/products1 credit - Search TikTok Shop
/v1/tiktok/shop/search1 credit - Sound / song details
/v1/tiktok/song1 credit - Videos using a sound
/v1/tiktok/song-videos1 credit - Popular songs
/v1/tiktok/songs/popular1 credit - Video transcript
/v1/tiktok/transcript1 credit - Trending feed
/v1/tiktok/trending1 credit - Videos posted by a creator
/v1/tiktok/user-videos1 credit - Creator's product showcase
/v1/tiktok/user/showcase1 credit - Video or photo-post details
/v1/tiktok/video1 credit - Popular videos
/v1/tiktok/videos/popular1 credit
Questions
- How much does the TikTok API cost?
- Calls cost 1 credit each. Every endpoint is cacheable, and a cache hit costs nothing. A failed request and an empty result are both free, on every endpoint.
- Does the TikTok API need a login or cookies?
- No. Every endpoint reads public, logged-out pages only — no account, no cookies, no session. An API key identifies your own TrueScrape account and nothing else.
- Can I fetch many TikTok targets in one request?
- Yes. 31 of 32 are batchable: one POST to /v1/jobs/batch takes many targets and returns a job id to poll.
- Can I watch TikTok endpoints for changes?
- Yes, 20 of 32. A subscription polls on your schedule and fires your webhook only when the content changed; the rest carry x-subscribable: false in the spec.
- Is the TikTok ad library search global?
- No. TikTok publishes its Commercial Content Library per market, so `region` is required and every result ran in that market. Political and election ads are outside the archive, and reach is published as a band, kept in `raw` because reach is not impressions.
- Which language does a TikTok transcript come back in?
- The original spoken-language track by default, not whichever track TikTok lists first. Pass `language` for a specific track; if it does not exist, the error lists the tracks that do, rather than substituting another language.
- Can I check whether a TikTok creator is live?
- Yes. The live endpoint returns the room id, title, cover, current viewers and start time while a creator is streaming. A creator who is not live returns `empty_result`, which costs nothing, so it works as a cheap poll.
- Why is a TikTok Shop product price null?
- TikTok hides the price digits from logged-out visitors on some products, and then `price.amount` is null. Where it is shown, it is the lowest-priced variant. Catalogues are per market: `region` picks one, and the default is US.