Platforms · TikTok

TikTok Ad Library Search Scraper API

Returns ads from the TikTok Ad Library (the EU Commercial Content Library) matching a keyword or advertiser name, 12 per page. Each ad carries the creative video, the title, the advertiser name, the impression estimate at engagement.views, the spend band, the first-shown date and the audit status. The search row publishes no brand, landing page, advertiser account or avatar, so on a plain call post.ext.ad.brand_name, post.ext.ad.landing_page, post.ext.ad.profile_web_link and post.author.avatar_url are null on every row. Like, comment and share counts are not published by the library on either call.

GET /api/v1/data/tiktok/adlibrary-search · 5 credits per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • query: Keyword or phrase to search the TikTok Ad Library.
  • advertiser_name: Advertiser name as it appears in the TikTok Ad Library.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
  • ages: Comma list. Only ads targeted at these age brackets: 13-17, 18-24, 25-34, 35-44, 45-54, 55+.
  • reach: Comma list. Only ads whose reach landed in these bands: under_10k, 10k_to_100k, over_100k.
  • gender: Only ads targeted at female or male audiences.
  • since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
  • until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • count (integer): How many posts this answer holds.
  • posts[].id (string): The item's ID on the platform.
  • posts[].url (string): Link to it on the platform.
  • posts[].text (string): Its text.
  • posts[].published_at (string): When it was published (ISO 8601).
  • posts[].language (string): Its language code.
  • posts[].deleted (boolean): Whether it was deleted.
  • posts[].author_username (string): The author's username.
  • posts[].author_name (string): The author's display name.
  • posts[].author_verified (boolean): Whether the author is verified.
  • posts[].author_avatar_url (string): The author's picture.
  • posts[].view_count (number): Views.
  • posts[].media[].url (string): Its media.
  • posts[].media[].thumbnail_url (string): Its media's thumbnail.
  • posts[].content_type (string): What it is: post.
  • posts[].platform (string): The platform's name.
  • posts[].source_data (object): Everything the platform sent for this row, as it came.
  • posts[].source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • posts[].source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • posts[].source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • posts[].source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • posts[].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.
  • posts[].source_data.post.author.avatar_url (string): URL to author profile picture
  • posts[].source_data.post.author.display_name (string): Author display name
  • posts[].source_data.post.author.username (string): Author username
  • posts[].source_data.post.author.verified (boolean): Whether the account carries TikTok's verification badge.
  • 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.
  • posts[].source_data.post.content.text (string): Post caption, description, or text content
  • posts[].source_data.post.content.thumbnail_url (string): URL to thumbnail image
  • posts[].source_data.post.engagement.views (number): View count (if available). For Instagram video/reels this is the play count: the headline 'Views' the IG app shows. Note: since mid-July 2026 Instagram's play count is Instagram-only. It no longer includes Facebook crosspost views (Meta-side change; the app UI changed identically).
  • posts[].source_data.post.ext.ad.audit_status (any): The library's review status code for the ad.
  • posts[].source_data.post.ext.ad.brand_name (any): The advertiser's name.
  • posts[].source_data.post.ext.ad.country_code (any): The country or countries the ad ran in.
  • posts[].source_data.post.ext.ad.estimated_audience (any): Audience size band, such as `10K-100K`.
  • posts[].source_data.post.ext.ad.image_urls (any): Links to the ad's images.
  • posts[].source_data.post.ext.ad.landing_page (any): Landing page the ad opens.
  • posts[].source_data.post.ext.ad.last_shown_date (any): When the ad was last shown, Unix milliseconds.
  • posts[].source_data.post.ext.ad.objectives (any): The campaign objectives the advertiser chose.
  • posts[].source_data.post.ext.ad.profile_web_link (any): Link to the advertiser's profile.
  • posts[].source_data.post.ext.ad.source (any): The library the ad came from.
  • posts[].source_data.post.ext.ad.spent (any): Spend as the library words it. Empty when not disclosed.
  • posts[].source_data.post.ext.ad.type (any): The library's ad type code.
  • posts[].source_data.post.ext.published_at_epoch (number): Kept for one deprecation cycle for integrations pinned to the numeric form.
  • posts[].source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • posts[].source_data.post.id (string)
  • posts[].source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • posts[].source_data.post.url (string)
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.

Good to know

  • The price depends on what the call returns: from 5 credits to 17 credits.
  • Each call returns one page. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
  • Send one of: query, advertiser_name.

Example call

GET /api/v1/data/tiktok/adlibrary-search?advertiser_name=Gymshark

Questions

How much does the TikTok Ad Library Search API cost?

Each page costs 5 to 17 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

Give one of query and advertiser_name. 7 more inputs are optional: query, advertiser_name, ages, reach, gender, since and until. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 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

More TikTok scraper APIs