100 free credits. No credit card required.Start building
Logo
TikTok logo
100 free credits. No credit card required

TikTok Adlibrary Search API

Scrape TikTok Adlibrary Search data with one API call. 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. Send `include=ad` and every row is joined, in the same call, to the per-ad lookup that carries them: the registered brand name, the landing page, the advertiser's TikTok profile link and avatar, and where the library has them the campaign objectives, the countries the ad ran in and the ad source. Cost: 5 credits for the page plus 1 credit per ad filled from a fresh lookup (12 ads, so 17 at most); ads already in cache are filled for free, ads that could not be filled are refunded, and a repeat within the cache window is 0. Time: a plain call is 4 to 19 seconds; `include=ad` adds 5 to 20 seconds on a fresh page (the lookups run in parallel and the call waits for the slowest, never more than 20 seconds) and nothing when the ads are already cached. `limit=N` (1 to 12) takes the top N ads and, with `include`, caps the extra credits at N. The response carries a `hydration` block itemising rows, lookups, cache hits, credits and milliseconds. Like, comment and share counts are not published by the library on either call. Page with cursor.

Last updated October 2026Maintained by the SocialCrawl team

Returns TikTok Ad Library ads matching a keyword or advertiser name, each with creative, title, advertiser, impressions and date; include=ad adds the brand, landing page and advertiser link.

Use it to find ads by query or advertiser_name; pass an ad id from the results to adlibrary/ad for the full record.

Searching 68 platforms in parallel

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
TikTok API

What can you do with the Adlibrary Search API?

The Adlibrary Search endpoint gives you structured TikTok data with computed fields in a single request. No scraping infrastructure to build or maintain.

Example Request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://www.socialcrawl.dev/v1/tiktok/adlibrary/search?advertiser_name=Gymshark"
import requests

response = requests.get(
    "https://www.socialcrawl.dev/v1/tiktok/adlibrary/search",
    params={
    'advertiser_name': 'Gymshark',
    },
    headers={"x-api-key": "YOUR_API_KEY"},
)

data = response.json()
const response = await fetch(
  "https://www.socialcrawl.dev/v1/tiktok/adlibrary/search?advertiser_name=Gymshark",
  {
    headers: { "x-api-key": "YOUR_API_KEY" },
  },
);

const data = await response.json();

Parameters

ParameterRequiredDescription
queryNoKeyword or phrase to search the TikTok Ad Library.
advertiser_nameNoAdvertiser name as it appears in the TikTok Ad Library.
cursorNoCursor from the previous response to fetch the next page.
includeNoSet to `ad` (one token only) to fill the registered brand name, the landing page, the advertiser's TikTok profile link and avatar (`post.ext.ad.brand_name`, `post.ext.ad.landing_page`, `post.ext.ad.profile_web_link`, `post.author.avatar_url`), plus the objectives, countries and source where the library has them, on every ad in this one call. Holds 1 credit per ad (at most 12, or `limit`) and keeps only the ads filled from a fresh lookup; ads already in cache and ads that could not be filled are refunded, so the most a call can cost is 5 + ads. Adds 5 to 20 seconds on a fresh page (never more than 20) and nothing when the ads are already cached; read `data.hydration` for the rows, the credits held and kept, and the time. (ad)
limitNoTake the top N ads of the page (1 to 12) after the search has run. With `include=ad` it also caps the extra credits at N: `limit=3&include=ad` costs at most 8. It is not a page size: `next_cursor` still advances past the full page.
Example Response

What does the TikTok Adlibrary Search API return?

Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.

Example response
{
  "success": true,
  "platform": "tiktok",
  "endpoint": "/v1/tiktok/adlibrary/search",
  "data": {
    "items": [
      {
        "post": {
          "id": "1875950426759393",
          "url": "https://library.tiktok.com/ads/detail/?id=1875950426759393",
          "content": {
            "text": "Sample comment text (redacted).",
            "media_urls": "https://library.tiktok.com/api/v1/cdn/1790955602/video/aHR0cHM6Ly92MTZtLnRpa3Rva2Nkbi5jb20vMWNkMTQyZGE4NjdiOTY3MTg5ZDdhMmI3NjA2NzdlZWUvNmFjMDI0YzUvdmlkZW8vdG9zL3VzZWFzdDJhL3Rvcy11c2Vhc3QyYS12ZS0wMDUxYzc5OS1ldXR0cC9va2VHQWU5M3RBMGJHZm1ROFlpSUFiQ2dvREdMZ083UFRLSEFiSS8=/333cccf1-d443-43a9-a1d4-1425ef2e0065?a=475769&bt=407&btag=e000b8000&bti=PDU2NmYwMy86&ft=.NpOcInz7ThBcg4GXq8Zmo&l=20261002234001F7F79306A9DDC59CA559&mime_type=video_mp4&rc=ZDo5ODNmZTk5PGZmOzM3Z0BpajQ0cWw5cmlvZDMzODYzNEBeNi0uL140XjExLjQuMC01YSNyXjMxMmRzamRhLS1kMDFzcw%3D%3D&signature=pySkbA6%2BOo%2B3IlSi9BfHkSY3G4z6mkdE84P1DKhY1HI%3D&vvpl=1",
            "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/o4QGNFTAeCVlDsDEQfPtfgJAEj6HAGxtW2jAbP~tplv-tiktokx-origin.jpeg?dr=14582&refresh_token=99818dc9&x-expires=1790974800&x-signature=2VA8dpjOqeVdK0Oww0jlZzx5X50%3D&t=4d5b0474&ps=13740610&shp=0c75dd76&shcp=9b759fb9&idc=sg1",
            "duration_seconds": null
          },
          "author": {
            "username": "user_4c69b3",
            "display_name": "user_4c69b3",
            "avatar_url": null,
            "verified": false
          },
          "engagement": {
            "views": 0,
            "likes": null,
            "comments": null,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": null,
            "deleted": false
          },
          "published_at": "2026-09-10T00:00:00.000Z",
          "ext": {
            "published_at_epoch": 1788998400000,
            "ad": {
              "estimated_audience": "10K-100K",
              "spent": "",
              "audit_status": "1",
              "last_shown_date": 1790812800000,
              "type": "2",
              "image_urls": [
                "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/o4QGNFTAeCVlDsDEQfPtfgJAEj6HAGxtW2jAbP~tplv-tiktokx-origin.jpeg?dr=14582&refresh_token=99818dc9&x-expires=1790974800&x-signature=2VA8dpjOqeVdK0Oww0jlZzx5X50%3D&t=4d5b0474&ps=13740610&shp=0c75dd76&shcp=9b759fb9&idc=sg1"
              ]
            }
          }
        },
        "computed": {
          "engagement_rate": null,
          "language": "en",
          "content_category": "other",
          "estimated_reach": null
        }
      },
      {
        "post": {
          "id": "1876714855831730",
          "url": "https://library.tiktok.com/ads/detail/?id=1876714855831730",
          "content": {
            "text": "Sample comment text (redacted).",
            "media_urls": "https://library.tiktok.com/api/v1/cdn/1790955602/video/aHR0cHM6Ly92MTZtLnRpa3Rva2Nkbi5jb20vYmMyMmQ0ZTgwNDI5YzFhMDZkOTg0OWFmYWNlMTZjZjIvNmFjMDI0YmEvdmlkZW8vdG9zL3VzZWFzdDJhL3Rvcy11c2Vhc3QyYS12ZS0wMDUxYzc5OS1ldXR0cC9vb3REUERHYUw1ZXZRQkFmeWJCOEFDb0dSVzVRSWdOZUFWQWpuSS8=/4c3fe79c-7078-4303-83b3-0726d3849a56?a=475769&bt=404&btag=e000b0000&bti=PDU2NmYwMy86&ft=.NpOcInz7ThBcg4GXq8Zmo&l=20261002234001F7F79306A9DDC59CA559&mime_type=video_mp4&rc=NGlpZTlmaDozN2dmOzRmaEBpM2lwPHg5cjxtZDMzODYzNEBfLV9gNTMtXjAxMDU2LTAvYSM1XnAxMmRzYWphLS1kMDFzcw%3D%3D&signature=edmEXPofilLjTAKwYN%2F4ntcJopyPfqPub6ml2xVjZxg%3D&vvpl=1",
            "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/o8AGjQASRLoeACgq5VWvbKAyPIEoeDeGIgAg8X~tplv-tiktokx-origin.jpeg?dr=14582&refresh_token=7a1dd5b2&x-expires=1790974800&x-signature=2n8ko9XNFXPS8JzuncGtZaKeyig%3D&t=4d5b0474&ps=13740610&shp=0c75dd76&shcp=9b759fb9&idc=sg1",
            "duration_seconds": null
          },
          "author": {
            "username": "user_4c69b3",
            "display_name": "user_4c69b3",
            "avatar_url": null,
            "verified": false
          },
          "engagement": {
            "views": 0,
            "likes": null,
            "comments": null,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": null,
            "deleted": false
          },
          "published_at": "2026-09-19T00:00:00.000Z",
          "ext": {
            "published_at_epoch": 1789776000000,
            "ad": {
              "estimated_audience": "0-1K",
              "spent": "",
              "audit_status": "1",
              "last_shown_date": 1790812800000,
              "type": "2",
              "image_urls": [
                "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/o8AGjQASRLoeACgq5VWvbKAyPIEoeDeGIgAg8X~tplv-tiktokx-origin.jpeg?dr=14582&refresh_token=7a1dd5b2&x-expires=1790974800&x-signature=2n8ko9XNFXPS8JzuncGtZaKeyig%3D&t=4d5b0474&ps=13740610&shp=0c75dd76&shcp=9b759fb9&idc=sg1"
              ]
            }
          }
        },
        "computed": {
          "engagement_rate": null,
          "language": "en",
          "content_category": "other",
          "estimated_reach": null
        }
      }
    ],
    "next_cursor": "eyJvZmZzZXQiOjEyLCJzZWFyY2hfaWQiOiJleUpzWVhOMFgzTnZjblFpT2xzeE56a3dPREV5T0RBd01EQXdYU3dpYm1WNGRGOWpkWEp6YjNJaU9qRXlmUT09In0",
    "total": 41533,
    "dropped": 0
  },
  "credits_used": 5,
  "request_id": "req_example000000",
  "cached": false,
  "pagination": {
    "next_cursor": "sc.eyJ2IjoyLCJjIjoiZXlKdlptWnpaWFFpT2pFeUxDSnpaV0Z5WTJoZmFXUWlPaUpsZVVweldWaE9NRmd6VG5aamJsRnBUMnh6ZUU1NmEzZFBSRVY1VDBSQmQwMUVRWGRZVTNkcFltMVdOR1JHT1dwa1dFcDZZak5KYVU5cVJYbG1VVDA5SW4wIiwiZSI6InRpa3Rvay9hZGxpYnJhcnkvc2VhcmNoIiwicCI6ImN1cnNvciJ9",
    "has_more": true,
    "page_size": 2
  },
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-10-02T15:40:00.806Z",
  "redacted": true
}

Live sample illustrating the unified response shape. Field values reflect the record you query.

API Details

How does the TikTok Adlibrary Search API work?

Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.

Method

GET

Response

JSON

Why SocialCrawl

Why use SocialCrawl for TikTok Adlibrary Search data?

We handle the complexity of TikTok data extraction so you can focus on building. Unified schema, AI enrichment, and zero platform logic in your code.

Developer First

How do you scrape social media data in seconds?

The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 68 platforms covering 10B+ monthly active users.

One schema, every platform

Query 68 platforms with identical response structures. Write your integration once.

Computed fields, not just scraped

When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.

See your data before you code

Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.

import requests

response = requests.get(
    'https://www.socialcrawl.dev/v1/tiktok/profile',
    params={'handle': 'charlidamelio'},
    headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 68 platforms
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
How do I search the TikTok Ad Library with an API?
Send a GET request to /v1/tiktok/adlibrary/search with query set to a keyword, or advertiser_name set to the advertiser as it appears in the library. Each page returns the ads that matched with the creative video, the title, the advertiser name, the impression estimate, the spend band, the first-shown date and the audit status. Page with cursor.
How do I get the brand and landing page for each ad?
Add include=ad and every ad on the page is filled from the per-ad record in the same call: the registered brand name, the landing page, the advertiser's TikTok profile link and avatar, and the objectives, countries and source where the library has them. Ads already in cache are filled for free, ads that could not be filled are refunded and named in _warnings, and the response carries a hydration block with the rows looked up, filled and served from cache and the credits held and kept.
How much does the TikTok Ad Library search cost?
A plain page costs 5 credits on the advanced tier. With include=ad the call holds one more credit per ad and keeps it only for ads filled from a fresh lookup, so a full page of 12 ads is at most 17 credits; limit caps the ads and the extra credits together. New accounts get 100 free credits with no credit card required.
Does the TikTok Ad Library return like, comment or share counts?
No. The library publishes an impression estimate and a spend band, not engagement counts, so likes, comments and shares are null on both the search page and the per-ad record. For the performance side of TikTok advertising use /v1/tiktok/ads/top, which reads the Creative Center board.
How do I page through TikTok Ad Library results?
Read pagination.next_cursor on the response and pass it back as the cursor parameter on the next request; has_more turns false on the last page. include=ad and limit work on every page of the walk. limit takes the top N ads of a page and caps the extra credits with it, and it is not a page size: the cursor still advances past the full page.

Ask AI about SocialCrawl

Ready to scrape TikTok Adlibrary Search data?

Get your API key and start pulling TikTok data in under 60 seconds.

Start for free

🤖 AI agent or LLM? Read this page as markdown