adlibrary.com Logoadlibrary.com
Share
Competitive Research,  Platforms & Tools

TikTok Ad Library API: Programmatic Access Options in 2026

TikTok ad library API options in 2026: what the official Commercial Content API requires and excludes, and how to query TikTok ads programmatically.

TikTok ad library API concept: laptop with JSON response linked to a phone showing TikTok ads

TikTok Ad Library API: Programmatic Access Options in 2026

The phrase "TikTok ad library API" hides three different products, and most marketers searching for it want the one that technically does not exist. TikTok runs an official transparency library and an official API on top of it. Neither was built for you. They were built for regulators and researchers, and the data stops at Europe's borders. If you need TikTok competitor ads flowing into a script, a dashboard, or an AI agent, the real TikTok ad library API options look nothing like what TikTok's developer portal suggests.

TL;DR: TikTok's Commercial Content Library is the newest major ad transparency surface and the hardest to query programmatically. The official Commercial Content API requires an approved application and only returns ads shown in the European Economic Area, with no engagement or spend signals. For competitive workflows, programmatic TikTok ad access runs through commercial intelligence layers: the AdLibrary API queries TikTok alongside ten other platforms with one adl_ key, returning creatives, impressions, heat scores, and runtime as JSON.

This guide maps every route. What the official library covers, what the research-grade API demands and excludes, and how a paid third-party layer slots into an actual workflow, with working requests you can run today.

What the TikTok Commercial Content Library Actually Covers

TikTok launched the Commercial Content Library in 2023 as its answer to the EU's Digital Services Act, which forces very large platforms to maintain a public repository of the ads they serve. It is the youngest of the major transparency surfaces. Meta's library dates to 2018, Google's Ads Transparency Center to 2023, and TikTok arrived last, with the least tooling around it.

The library is a searchable web interface covering ads and other commercial content shown to users in the European Economic Area. For each ad you get the creative itself, the advertiser's registered name, the dates the ad first and last appeared, rough targeting parameters (age ranges, gender, country), and the approximate number of users reached. Ads stay in the repository for a year after their last impression, which is the retention period the Digital Services Act prescribes.

Two things the library does not show, anywhere: spend and engagement. There is no like count, no share count, no comment count, no cost figure. The repository proves an ad ran. It says nothing about whether the ad worked.

Worth knowing before you build anything on it: TikTok ads transparency covers paid placements and commercial content broadly, including branded organic posts flagged by creators, so the dataset mixes formal ad campaigns with disclosure-tagged creator content. For compliance audits that breadth is a feature. For competitive analysis it adds noise you will filter out by hand.

If you have used the web interface and found it limiting, you are not alone. We covered the manual tooling in depth in our TikTok Ad Library guide and the adjacent Creative Center walkthrough. This article is about the programmatic layer on top.

The Official TikTok Ad Library API: The Commercial Content API

The official TikTok ad library API is called the Commercial Content API, and it exposes the same repository programmatically. You can query ads by advertiser name or keyword, filter by country and date range, and pull advertiser-level summaries. The data mirrors the web library: creative, advertiser, dates, targeting, reach band.

Getting in is the first wall. You register a TikTok for Developers account, submit an application describing who you are and what you intend to do with the data, and wait for approval. There is no self-serve key. TikTok reviews applications individually, and the process is built around accountability research: journalists, academics, and civil-society organizations examining commercial content on the platform. A performance marketer wanting competitor creative for a pitch deck is not the persona the form was written for.

TikTok also operates a separate Research API for studying public videos, accounts, and comments. It gets confused with the ad library constantly, so to be precise: the Research API is gated to qualifying researchers, mostly academics at non-profit institutions in the US and Europe, and it is about organic content, not the ad repository. If TikTok competitor ads are the goal, the Research API is the wrong queue to stand in.

This structure mirrors what Meta did first. Meta's Ad Library API is the original transparency API, free to use after identity verification and app review, and genuinely useful inside its scope. TikTok copied the model and inherited its constraints, then added a stricter front door. Both are transparency instruments, and judged as transparency instruments, both are defensible. Judged as competitive research infrastructure, both fall over in the same places.

What the Official API Leaves Out

Run the official TikTok ad library API through the requirements of a competitive workflow and the gaps stack up fast.

Geography is the big one. The repository covers ads shown in the European Economic Area. An ad targeted exclusively at US, UK-only, Australian, or Southeast Asian audiences never enters the dataset. For a US DTC brand spying on US competitors, the official API returns a partial shadow of the market at best, and frequently nothing relevant at all.

No performance signals. First-seen and last-seen dates are there, which lets you infer runtime. Everything else is missing: no engagement counts, no spend estimates, no view data, no trend indicator. You cannot sort by traction because traction is not in the schema. Every result has equal weight, whether it ran for two days and died or scaled for six months.

Approval friction and quotas. The application gate means days to weeks before your first call, with no guarantee of acceptance. Approved access comes with usage quotas designed for research sampling, not for polling forty competitors nightly.

No creative intelligence. The API hands you raw ads. Categorizing hooks, comparing formats, or spotting which concept a brand keeps re-cutting is entirely on you. That analysis layer is where most of the actual hours go, as anyone who has built ad intelligence tooling internally will confirm.

None of this is a scandal. It is the same pattern we documented for Meta's Ad Library API limitations: transparency APIs answer "did this ad run, and who paid for it?" Competitive research asks "what is working, and why?" Different questions, different infrastructure.

Why Programmatic TikTok Access Runs Through Intelligence Layers

Because the official surface is region-locked and signal-poor, virtually every team doing serious TikTok competitor research programmatically goes through a commercial ad intelligence layer instead. These vendors index TikTok creatives at scale, across markets the official repository never touches, and attach the performance metadata transparency tools omit by design.

The category spans a wide quality range. We compared fourteen vendors in our ad spy tools roundup and benchmarked the API-capable subset in the ad spy API comparison; the short version is that most ad spy products are browser tools first, and programmatic access is an afterthought or absent. The economics of the build-vs-buy decision get a full treatment in free vs paid ad library APIs.

What you are actually buying from an intelligence layer is threefold. Coverage: TikTok ads from major commercial markets rather than EEA-shown inventory alone. Signals: engagement, impressions, estimated spend, runtime, so you can rank instead of scroll. And uptime of integration: a documented REST endpoint with stable JSON instead of a scraping pipeline that breaks when TikTok ships a new frontend. If the concept of an ad library API is new territory, our primer on how ad library APIs work covers the foundations.

One honest caveat: third-party TikTok coverage is built from large-scale indexing of commercial inventory, so no vendor can promise literally every ad. The official repository is authoritative for EEA compliance questions. The intelligence layer is the practical choice for every competitive question after that.

Querying TikTok Ads Through the AdLibrary API

AdLibrary's approach to the problem: one paid REST API that searches TikTok and ten other platforms (Facebook, Instagram, YouTube, Google, LinkedIn, Twitter, Pinterest, Yahoo, Unity Ads, AdMob) from a single endpoint with a single key. Where Meta's free API pioneered the category for transparency, this is the paid power-user version aimed squarely at research and automation. Full positioning against the official routes lives in our TikTok ad library alternative breakdown, and the no-app-review angle in ad library alternative with API access.

Auth is one bearer token. No application essay, no identity verification, no 60-day token expiry. You create a key on the Business plan, it starts with adl_, and you send it on every request:

bash
curl "https://adlibrary.com/api/search" \
  -H "Authorization: Bearer adl_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "collagen gummies",
    "appType": "3",
    "platform": "tiktok",
    "adsType": "2",
    "sortField": "-impression",
    "daysBack": 30
  }'

That request asks for video ads (adsType: "2") mentioning "collagen gummies" that ran on TikTok in the last 30 days, sorted by impressions. The platform parameter takes any of the eleven networks, so swapping "tiktok" for "facebook,instagram,tiktok" turns the same query into a multi-platform sweep. Every search costs one credit, and a failed search refunds it automatically.

Each result returns as flat JSON: advertiser_name, ad copy fields (title, body, button_text), the creative URLs, impression, a 0-to-1000 heat momentum score, like_count and share_count, first_seen, days_count for runtime, geo, and the landing page URL. Those are exactly the fields the official API does not have, attached to inventory it does not index.

Automated TikTok ad library API monitoring workflow: scheduler, API, database, alerts, dashboard

Workflow Example: A Nightly TikTok Competitor Monitor

Here is the workflow that justifies TikTok ad library API access in the first place, in runnable form. The job: every night, pull fresh TikTok ads for the keywords your competitors live on, keep only what you have not seen before, and flag anything gaining heat. This is the pattern behind our end-to-end monitoring guide, trimmed to its TikTok core.

python
import requests, json, sqlite3

API = "https://adlibrary.com/api/search"
HEADERS = {"Authorization": "Bearer adl_your_api_key"}
KEYWORDS = ["collagen gummies", "greens powder", "sleep gummies"]

db = sqlite3.connect("tiktok_ads.db")
db.execute("CREATE TABLE IF NOT EXISTS seen (ad_key TEXT PRIMARY KEY)")

new_ads = []
for kw in KEYWORDS:
    r = requests.post(API, headers=HEADERS, json={
        "keyword": kw,
        "appType": "3",          # e-commerce vertical
        "platform": "tiktok",
        "adsType": "2",          # video
        "sortField": "-first_seen",
        "daysBack": 1,
        "pageSize": 100,
    })
    r.raise_for_status()
    data = r.json()
    for ad in data["results"]:
        if db.execute("SELECT 1 FROM seen WHERE ad_key=?",
                      (ad["ad_key"],)).fetchone():
            continue
        db.execute("INSERT INTO seen VALUES (?)", (ad["ad_key"],))
        new_ads.append(ad)
    print(f"{kw}: {data['total']} total, "
          f"{data['_credits']['remaining']} credits left")

db.commit()
hot = [a for a in new_ads if a.get("heat", 0) > 600]
print(f"{len(new_ads)} new TikTok ads, {len(hot)} trending")

Three searches, three credits, and the ad_key is the stable identifier you dedupe on across runs. The total field in each response also doubles as free market sizing: it tells you how many ads match the query before you ever paginate deeper. Schedule the script with cron, n8n, Zapier, or whatever already runs your jobs; narrow nightly pulls catch new creatives the day they launch and cost far less than one giant weekly sweep that re-fetches everything.

The natural next step is piping hot into the enrichment endpoint, which runs a full creative teardown (timestamped transcript, hook analysis, persuasion structure, and a 1:1 AI replication brief) for one credit per ad. Enrich only the ads that clear your heat or runtime threshold, never the whole haul. More script patterns, including pagination and retry handling, live in our Python ad library API cookbook, and the no-code version of this exact monitor is in the n8n workflow collection. The full operational playbook is documented as a use case.

Multi-Platform Queries: TikTok Next to Meta, Google, and LinkedIn

TikTok creative rarely exists in isolation. The brands worth watching run the same offer on Meta, YouTube, and TikTok simultaneously, with format tweaks per platform, and the differences between versions are often the most useful intelligence in the dataset. Our Meta vs TikTok comparison goes deep on why the same concept performs differently across the two.

A single multi-platform query handles this:

bash
curl "https://adlibrary.com/api/search" \
  -H "Authorization: Bearer adl_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "AG1",
    "appType": "3",
    "platform": "facebook,instagram,tiktok,youtube",
    "daysBack": 90,
    "sortField": "-days"
  }'

Sorting by -days surfaces the longest-running creatives across all four networks at once, which is the cleanest proxy for "what this brand has decided works." One credit, one response, every platform tagged per ad so you can split the analysis afterward.

For brand-level tracking there is a second pattern: the free /api/advertisers/search endpoint resolves a brand name into its Meta, Google, and LinkedIn advertiser IDs in one call, and a saved advertiser plus the curate endpoint then pulls that brand's recent ads across those platforms for one credit per 30-minute session. TikTok inventory rides the keyword search path rather than the ID-resolution path, so a complete brand watch combines both: curate for the ID-resolved platforms, keyword queries for TikTok. The Google Transparency Center and LinkedIn ad library API guides cover those per-platform angles, and Google's own Ads Transparency Center remains the official reference surface on that side.

This is also the configuration AI agents want. An agent answering "what is this brand doing on social right now" needs one tool definition, not eleven. Feeding ad data to AI agents through a single schema is the difference between an afternoon of setup and a quarter of integration work.

Reading TikTok Ad Data: Signals Worth Sorting On

Getting JSON back from a TikTok ad library API is the easy part. Knowing which fields predict anything is where TikTok-specific judgment comes in.

Runtime beats engagement for winner detection. TikTok advertisers kill underperformers fast, usually inside the first week. An ad with days_count above 30 has survived dozens of culling decisions. Sort by -days first when you want proven concepts, and treat raw hook-level engagement as secondary evidence.

Heat catches what runtime misses. The 0-to-1000 heat score measures momentum right now, so it surfaces ads that launched recently and are scaling, precisely the ones runtime sorting buries. A nightly monitor should track both: long runners for the swipe file, heat spikes for the alert channel.

Impressions and spend are estimates, always. Impression figures on TikTok inventory are reach signals, not audited counts, and spend is a modeled estimate rather than a number the advertiser reported. Treat both as ranking inputs, never as billing-grade facts. If you need to translate reach into budget hypotheses, run the figures through the ad spend estimator and sanity-check engagement ratios with the CTR calculator.

Format context matters on TikTok specifically. Most scaled TikTok ads are UGC-style vertical video, so a 9:16 image ad with high heat is an anomaly worth a second look. The ads_type and aspect-ratio filters exist precisely so your queries can encode this kind of creative intelligence instead of relying on eyeballs.

Costs, Limits, and the Practical Math

The official Commercial Content API is free once approved, and that price is correct for what it provides. The AdLibrary API is paid, and the math is worth laying out plainly.

Pricing is credit-based. One credit per search (any platform mix, any filter set, up to 100 results per page), one credit per AI creative teardown, and brand resolution plus the credit-balance check are free. Failed searches refund automatically. API access itself sits on the Business plan at €329/month with 1,000+ credits included, which in monitor terms funds roughly thirty keyword-days of nightly TikTok polling plus a healthy enrichment budget. If you want to inspect the data quality before committing, the Starter plan at €29/month gives you the same search engine in the browser, no API key, 50 credits.

Rate limits are 10 requests per minute and 10,000 per day per key, and a 429 response carries a Retry-After header your client should honor. You can hold up to 10 keys per account, which maps neatly onto one key per client or per environment. Business plans also include free integration help, so auth, pagination, and shaping the data for your pipeline are problems you can hand to the team rather than solve alone. Full details on the pricing page.

Budget one warning into the comparison: building this yourself on scrapers is the expensive option dressed up as the free one. Scraping TikTok violates its terms, breaks on every frontend change, and produces a maintenance tax that quietly exceeds a Business subscription by the second month. We have watched teams learn this in both directions.

Choosing Your Access Path

Strip away the noise and the decision tree for TikTok ads data has three branches. The side-by-side first:

Official Commercial Content APIAdLibrary API
PriceFreePaid (Business plan, €329/mo)
AccessApplication + individual reviewSelf-serve adl_ key
CoverageAds shown in the EEATikTok ads across major markets, plus 10 other platforms
Performance signalsFirst/last shown dates onlyImpressions, heat score, engagement, runtime, estimated spend
Creative analysisNoneAI teardown + replication brief per ad
Built forTransparency and researchCompetitive research and automation

Take the official Commercial Content API if your work is accountability research, journalism, or compliance, your questions concern ads shown in the EEA, and approval latency is acceptable. It is authoritative, free, and exactly fit for that purpose.

Take a commercial intelligence API if your questions are competitive: what competitors run in the US and beyond, which creatives are scaling, what the winning hooks look like, and how to feed all of it into scripts, dashboards, or agents. This is the path for performance marketers, and the only one with engagement, heat, and spend signals attached.

Take the web tools if your TikTok research is occasional and manual. The Commercial Content Library and Creative Center cost nothing and answer one-off questions fine. The moment research becomes recurring, the screenshot workflow stops scaling, which tends to be the moment this article becomes relevant again.

Frequently Asked Questions

Does TikTok have an official ad library API?

Yes. TikTok's Commercial Content API provides programmatic access to its Commercial Content Library, the ad repository TikTok maintains under the EU's Digital Services Act. Access requires an application through TikTok for Developers, approval is reviewed individually, and the data covers ads shown in the European Economic Area with creative, advertiser, date, targeting, and reach fields, but no engagement or spend metrics.

Is the TikTok Commercial Content API free?

Yes, the official API is free once your application is approved. The costs are indirect: an approval process that can take days to weeks, usage quotas designed for research sampling, EEA-only coverage, and no performance signals. Paid third-party APIs exist because those constraints exclude most competitive research work, not because the official tool is priced wrong.

Can I get US TikTok ads through the official API?

No. The Commercial Content Library only contains ads shown to users in the European Economic Area, so a TikTok ad targeted exclusively at US audiences never appears in the official repository or its API. US TikTok ad coverage requires a commercial ad intelligence layer such as the AdLibrary API, which indexes TikTok inventory across major markets.

How do I query TikTok ads programmatically without TikTok approval?

Use a third-party ad library API. The AdLibrary API, for example, searches TikTok alongside ten other platforms through one REST endpoint: you create an adl_ API key on the Business plan, send it as a bearer token, and query by keyword, platform, country, format, and date window. No app review, no OAuth flow, and results return as JSON with engagement, impressions, heat, and runtime per ad.

What data does a third-party TikTok ad library API return?

Per ad: the creative URLs (video or image), advertiser name, ad copy fields including title, body, and call-to-action, impressions, like and share counts, a 0-to-1000 heat score, first-seen date and runtime in days, the countries where the ad ran, and the landing page URL. Spend figures are estimates. An optional enrichment call adds a full AI creative teardown with a transcript and a replication brief.

The Bottom Line on TikTok Ad Library API Access

TikTok built its transparency stack last and gated it hardest, so the honest 2026 answer to the TikTok ad library API question splits cleanly in two. For EEA accountability questions, apply for the official Commercial Content API and accept its scope. For everything a performance marketer actually does with competitor ads, the programmatic path runs through a commercial intelligence layer, and the deciding factors are coverage beyond Europe, performance signals, and how fast the integration ships.

That last criterion is where a single-key, eleven-platform API earns its fee: one schema for TikTok, Meta, Google, and the rest, live in an afternoon. If that is the workflow you are building, start with API access on the Business plan, point the first query at your noisiest competitor's keyword, and let the nightly monitor run. The ads change daily. Your collection process should not.

Related Articles