TikTok Ad Library Ad Scraper API
Returns one ad from the TikTok Ad Library: creative video, title, advertiser TikTok account, landing page, brand name, and first-shown date. Pass ad_id or a library.tiktok.com URL.
GET /api/v1/data/tiktok/adlibrary-ad · 5 credits per call · The same call repeated within 30 minutes may get the same answer, so data can be up to 30 minutes old.
Inputs
ad_id: TikTok Ad Library ad id, or a library.tiktok.com ads/detail URL.url: TikTok Ad Library ads/detail URL.
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.source_data.computed.content_category(string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.source_data.computed.engagement_rate(number): Computed engagement rate (0..1).source_data.computed.estimated_reach(number): Estimated reach based on views or follower count. Null when uncomputable.source_data.computed.language(string): ISO 639-1 language code detected from the post text. Null when undetectable.source_data.computed.save_rate(number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.source_data.post.author.avatar_url(string): URL to author profile picturesource_data.post.author.display_name(string): Author display namesource_data.post.author.username(string): Author usernamesource_data.post.author.verified(boolean): Whether the account carries TikTok's verification badge.source_data.post.content.duration_seconds(number): Video/clip duration in seconds (null for non-video posts)source_data.post.content.media_urls(any): URL(s) of the primary media. Single string for video/photo posts; array of strings for carousels.source_data.post.content.text(string): Post caption, description, or text contentsource_data.post.content.thumbnail_url(string): URL to thumbnail imagesource_data.post.engagement.comments(number): Comment count. Both land on this same field.source_data.post.engagement.likes(number): Like / reaction countsource_data.post.engagement.shares(number): Share / repost / retweet count.source_data.post.ext.ad.advertiser_account_type(any)source_data.post.ext.ad.advertiser_follower_count_text(any)source_data.post.ext.ad.advertiser_id(any)source_data.post.ext.ad.advertiser_registered_location(any)source_data.post.ext.ad.advertiser_sponsor(any)source_data.post.ext.ad.audit_status(any): The library's review status code for the ad.source_data.post.ext.ad.brand_name(any): The advertiser's name.source_data.post.ext.ad.call_to_action(any)source_data.post.ext.ad.country_code(any): The country or countries the ad ran in.source_data.post.ext.ad.estimated_audience(any): Audience size band, such as `10K-100K`.source_data.post.ext.ad.image_urls(any): Links to the ad's images.source_data.post.ext.ad.is_active(any): True when the ad is still running.source_data.post.ext.ad.landing_page(any): Landing page the ad opens.source_data.post.ext.ad.last_shown_date(any): When the ad was last shown, Unix milliseconds.source_data.post.ext.ad.media_type(any)source_data.post.ext.ad.objectives(any): The campaign objectives the advertiser chose.source_data.post.ext.ad.profile_web_link(any): Link to the advertiser's profile.source_data.post.ext.ad.source(any): The library the ad came from.source_data.post.ext.ad.targeting(any)source_data.post.ext.hashtags(array): Hashtags parsed from the caption, lower cased without the #, each listed once in order.source_data.post.ext.mentions(array): Handles mentioned in the caption, lower cased with the @, each listed once in order.source_data.post.ext.published_at_epoch(number): Kept for one deprecation cycle for integrations pinned to the numeric form.source_data.post.flags.deleted(boolean): Whether the post is tombstoned (always present)source_data.post.id(string)source_data.post.published_at(any): Post creation timestamp as an ISO 8601 UTC string.source_data.post.url(string)source_data(object): Everything the platform sent for this call, as it came.
Good to know
- Each call costs 5 credits. A call that finds nothing, or fails, is free.
- The same call repeated within 30 minutes may get the same answer, so data can be up to 30 minutes old.
- Send one of: ad_id, url.
Example call
GET /api/v1/data/tiktok/adlibrary-ad?ad_id=1869335220395266
Questions
How much does the TikTok Ad Library Ad API cost?
Each call costs 5 credits. A call that finds nothing, or fails, costs nothing.
What do I send?
Give one of ad_id and url. 2 more inputs are optional: ad_id and url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How fresh is the data?
The same call repeated within 30 minutes may get the same answer, so data can be up to 30 minutes old.
Do I need a TikTok account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
Related TikTok endpoints
- Ad Library Search: Search the TikTok Ad Library. 5 credits a page
More TikTok scraper APIs
- TikTok Ad Library Search Scraper API
- TikTok Ads Top Scraper API
- TikTok Collection Videos Scraper API
- TikTok Comment Scraper API
- TikTok Effect Videos Scraper API
- TikTok Effects Scraper API
- TikTok Hashtag Scraper API
- TikTok Hashtags Popular Scraper API
- TikTok Location Posts Scraper API
- TikTok Playlist Videos Scraper API
- TikTok Post Scraper API
- TikTok Post Transcript Scraper API
- TikTok Profile Scraper API
- TikTok Profile Full Scraper API
- TikTok Profile Playlists Scraper API
- TikTok Profile Region Scraper API
- TikTok Profile Videos Scraper API
- TikTok Search Mentions Scraper API
- TikTok Search Music Scraper API
- TikTok Search Suggestions Scraper API
- TikTok Search Top Scraper API
- TikTok Search Users Scraper API
- TikTok Similar Scraper API
- TikTok Song Scraper API
- TikTok Song Videos Scraper API
- TikTok Trending Scraper API
- TikTok User Audience Scraper API
- TikTok User Followers Scraper API
- TikTok User Following Scraper API
- TikTok User Liked Scraper API
- TikTok User Live Scraper API
- TikTok Video Comment Replies Scraper API
- TikTok Video Screen Text Scraper API
- TikTok Videos Popular Scraper API