TikTok Ad Library API: pull a brand's TikTok ads as JSON

Pull any brand's ads from TikTok's European ad library as JSON: copy, video, first and last shown dates and an audience band. This guide shows the three calls in order with real responses from Gymshark, Lidl and Zalando, a Python script that ranks ads by how long they have run, and what the library never shows.

1 real dataset in this guide
TIKTOK AD LIBRARY API · 25 November 20261 real dataset
A robotic arm pulling short-video ad cards off a shelf and piping them into a laptop with code on screen
  1. 1
    2 daysMedian run, all 75 ads
  2. 2
    37 daysLongest run
  3. 3
    5Videos behind Lidl's 25 ads
In short
  1. 01 · Three calls in order

    Three calls, in order: adlibrary_search to find the advertiser's exact name, adlibrary_company_ads for its ads (up to 100 per call), and adlibrary_ad for one ad's countries, objective and landing page. Every delivered ad costs 2 credits.

  2. 02 · Check the resolved advertiser

    Read the advertiser_resolved notice. A plain brand name picks one advertiser: Lidl returned Lidl's Portuguese entity and Zalando returned Zalando Lounge.

  3. 03 · Countries need per-ad call

    List calls never return countries: countries was empty on all 95 list rows we pulled. Only the per-ad call fills countries and objective.

  4. 04 · Run length as signal

    In Black Friday week the median ad had run 2 days and the longest, a Zalando Lounge ad, 37 days. Run length is the main signal, because the library has no spend and no engagement.

  5. 05 · Official API limits

    TikTok's official Commercial Content API needs an application and returns 10 ads per request. It covers the same European ads and no US-only ads.

On this page 16 sections
  1. 1.Is there an official TikTok Ad Library API
  2. 2.Which calls pull TikTok ads
  3. 3.Find the advertiser behind a brand name
  4. 4.Pull one advertiser's TikTok ads
  5. 5.Why does a brand name return a different advertiser
  6. 6.Get an ad's countries and objective
  7. 7.What does it cost to pull TikTok ads
  8. 8.What does each TikTok ad record contain
  9. 9.Rank a brand's TikTok ads by run length in Python
  10. 10.How long do TikTok ads run? Gymshark
  11. 11.Combine TikTok and Meta ads in one table
  12. 12.Watch a brand's new TikTok ads every week
  13. 13.What does the TikTok ad library not show
  14. 14.Start
  15. 15.Why use Caelario for TikTok ad research
  16. 16.Questions

TikTok's ad library is public, but its official API, the Commercial Content API, needs an application and returns at most 10 ads per request. Caelario gives you the same library as JSON with one key. adlibrary_search finds the advertiser, adlibrary_company_ads pulls its ads, and adlibrary_ad adds the countries and objective for a single ad. Each delivered ad costs 2 credits.

We ran all three on 25 November 2026 for Gymshark, Lidl and Zalando and got 98 ad records for 196 credits. Below are the real requests and responses, a Python script that ranks a brand's ads by run length, and what the library leaves out: spend, engagement and any US-only ads.

01 · Comparison

Is there an official TikTok Ad Library API?

Yes. TikTok calls its library the Commercial Content Library and its API the Commercial Content API. Here is how it compares with pulling the same library through Caelario.

QuestionTikTok Commercial Content APICaelario
Who can use itThe public and researchers, located in any country, after an application. You create a TikTok for Developers account with an official email, fill in a form and hear back within 2 working days.Anyone with a Caelario workspace key. No application.
AuthenticationA client key and secret for an approved research client, exchanged for a client access tokenOne X-API-Key header
Ads per requestmax_count defaults to 10 and can't go higherUp to 100 per call; POST /v1/extract answers inline up to 50
RegionsAds shown in the 27 EU countries, Norway, Iceland, Liechtenstein, the UK and SwitzerlandThe same public library, so the same European scope. No US-only ads.
How far backWhile the ad runs and until one year after it was last shownSearch and advertiser pulls cover ads shown in the last 30 days; adlibrary_ad looks up one ad by ID
Extra detail per adGet Ad Details adds targeting, objective, call to action and reach by country, age and genderadlibrary_ad adds countries, objective and landing_page_url. No targeting or age and gender breakdown.
Spend and engagementNoneNone

TikTok facts from developers.tiktok.com: the Commercial Content API product page, Query Ads and Get Ad Details docs, and the supported-countries page (last updated 1 September 2026), all checked 25 November 2026. Use the official API if you need targeting breakdowns or ads older than 30 days and can wait for approval.

02 · Comparison

Which calls pull TikTok ads, and in what order?

All three go to POST /v1/extract (or POST /v1/jobs for more than 50 results) with "platform": "tiktok" and your key in the X-API-Key header.

OperationWhat you send as targetWhat comes back
adlibrary_searchA keyword or brand name, e.g. GymsharkAds that mention it, from any advertiser, up to 100. Use it to find the advertiser's exact name.
adlibrary_company_adsAn advertiser or brand name, e.g. GYMSHARK LTDThat advertiser's ads, up to 100, with a notice naming the advertiser it matched
adlibrary_adOne ad ID or library URLOne ad with countries, country_code, objective and landing_page_url filled in

All three cost 2 credits per delivered ad. A call that returns nothing costs nothing.

03 · How it works

How do you find the advertiser behind a brand name?

Search first. A keyword search returns ads from the brand and from anyone else who mentions it, and each row names the advertiser in advertiser_name. This request asks for 20 ads that match Gymshark.

The response below is trimmed to one of the 20 ads, with some always-empty fields left out and the signed media links cut.

RequestPOST /v1/extract
curl -X POST https://api.caelario.com/v1/extract \
  -H "X-API-Key: $CAELARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform": "tiktok", "operation": "adlibrary_search", "target": "Gymshark", "limit": 20}'
Response 200
{
  "id": "c3e89ee6-69c2-409e-b12a-af5b2d1ab026",
  "platform": "tiktok",
  "operation": "adlibrary_search",
  "target": "Gymshark",
  "requested_limit": 20,
  "status": "completed",
  "result_count": 20,
  "billed_credits": 40,
  "result": [
    {
      "platform": "tiktok",
      "source": "ads_library",
      "ad_id": "1881896890197009",
      "ad_url": "https://library.tiktok.com/ads/detail/?ad_id=1881896890197009",
      "advertiser_name": "GYMSHARK LTD",
      "advertiser_id": null,
      "ad_text": "TOUT Gymshark jusqu’à -50%",
      "estimated_audience": "1K-10K",
      "first_shown_at": "2026-11-15T00:00:00Z",
      "last_shown_at": "2026-11-24T00:00:00Z",
      "countries": [],
      "video_url": "https://library.tiktok.com/api/v1/cdn/...",
      "image_urls": ["https://p16-common-sign.tiktokcdn.com/..."],
      "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/...",
      "objective": null,
      "landing_page_url": null,
      "like_count": null,
      "ctr": null
    }
  ]
}

Fields the library doesn't publish come back as null or an empty list.

The 20 ads came from 5 advertisers: 12 from GYMSHARK LTD and 8 from four individual creators who tagged the brand. Filter on advertiser_name before you pull anything, or creator posts end up in the brand's numbers.

advertiser_id was null on all 20 search rows, so you can't pull by ID. Copy the exact advertiser_name and send it as the target of the next call. estimated_audience is a band, here 0-1K on 13 ads and 1K-10K on 7. The search cost 40 credits: 20 ads at 2 each.

04 · How it works

How do you pull one advertiser's TikTok ads?

Send the advertiser name to adlibrary_company_ads. This is the real pull of Gymshark's 25 most recent ads.

Trimmed to one of the 25 ads, the longest-running in this pull, with the media links cut.

RequestPOST /v1/extract
curl -X POST https://api.caelario.com/v1/extract \
  -H "X-API-Key: $CAELARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform": "tiktok", "operation": "adlibrary_company_ads", "target": "GYMSHARK LTD", "limit": 25}'
Response 200
{
  "id": "b9dfcdf2-6c6b-4b35-991b-b3268a57647d",
  "platform": "tiktok",
  "operation": "adlibrary_company_ads",
  "target": "GYMSHARK LTD",
  "requested_limit": 25,
  "status": "completed",
  "result_count": 25,
  "billed_credits": 50,
  "source_exhausted": false,
  "notices": [
    {
      "code": "advertiser_resolved",
      "message": "Ads from \"GYMSHARK LTD\", the TikTok advertiser matched to \"GYMSHARK LTD\"."
    }
  ],
  "result": [
    {
      "platform": "tiktok",
      "source": "ads_library",
      "ad_id": "1882015906755682",
      "ad_url": "https://library.tiktok.com/ads/detail/?ad_id=1882015906755682",
      "advertiser_name": "GYMSHARK LTD",
      "advertiser_id": "6876453732930814722",
      "brand_name": null,
      "ad_text": "The bestselling, best gym stuff ever is now up to 50% off. Treat yourself",
      "estimated_audience": "10K-100K",
      "first_shown_at": "2026-11-16T00:00:00Z",
      "last_shown_at": "2026-11-24T00:00:00Z",
      "countries": [],
      "country_code": null,
      "objective": null,
      "video_url": "https://library.tiktok.com/api/v1/cdn/1795616411/video/...",
      "image_urls": ["https://p16-common-sign.tiktokcdn.com/..."],
      "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/...",
      "landing_page_url": null,
      "like_count": null,
      "comment_count": null,
      "share_count": null,
      "ctr": null,
      "industry": null,
      "language": null,
      "video_duration_seconds": null
    }
  ]
}

result is the list of ads and billed_credits is 50: 25 ads at 2 credits each. The ads come back most recently shown first. result_count equals the limit we sent, so the advertiser had at least 25 ads and there may be more: 25 is your sample, not the brand's total. Raise limit (up to 100) to see more. Ignore source_exhausted here: it is only set for follower lists.

notices holds an advertiser_resolved message naming the advertiser the library matched. advertiser_id is filled here, but countries, country_code and objective stay empty on every list row. image_urls held one link on 24 of 25 Gymshark video ads: it is the cover image, so a non-empty image_urls doesn't make it an image ad.

05 · Why it matters

Why does a brand name return a different advertiser?

Big brands advertise through several legal entities, and the library lists each as its own advertiser. When you send a plain brand name, Caelario matches it to one of them and tells you which in the advertiser_resolved notice. If the first match has no ads, it tries the next best matches before giving up with an advertiser_has_no_ads notice.

Two of our three brands resolved to a sub-entity. Lidl returned LIDL & COMPANHIA, Lidl's Portuguese company, and Zalando returned Zalando Lounge c/o Zalando SE, the off-price members' store rather than the main Zalando shop.

The job fields from the Lidl pull, trimmed to the envelope:

Response 200
{
  "id": "15715526-27b9-46cf-a281-e179d4822bc3",
  "operation": "adlibrary_company_ads",
  "target": "Lidl",
  "status": "completed",
  "result_count": 25,
  "billed_credits": 50,
  "source_exhausted": false,
  "notices": [
    {
      "code": "advertiser_resolved",
      "message": "Ads from \"LIDL & COMPANHIA\", the TikTok advertiser matched to \"Lidl\"."
    }
  ]
}

Always log notices[].message. Per-brand numbers describe the matched advertiser, not the whole group.

To cover a whole group, run adlibrary_search for the brand, list every distinct advertiser_name that belongs to it, and pull each one by its exact name.

06 · How it works

How do you get an ad's countries and objective?

List calls leave countries empty: it was [] on all 95 list rows we pulled, 20 from search and 75 from advertiser pulls. To see where an ad ran, call adlibrary_ad with its ad_id. This is the Lidl ad with the largest audience band in our pull.

The response is complete apart from the cut media links.

RequestPOST /v1/extract
curl -X POST https://api.caelario.com/v1/extract \
  -H "X-API-Key: $CAELARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform": "tiktok", "operation": "adlibrary_ad", "target": "1881496516395441"}'
Response 200
{
  "id": "d7a69051-b697-42c7-a71c-0e9f7d05ae79",
  "platform": "tiktok",
  "operation": "adlibrary_ad",
  "target": "1881496516395441",
  "requested_limit": 1,
  "status": "completed",
  "result_count": 1,
  "billed_credits": 2,
  "result": {
    "platform": "tiktok",
    "source": "ads_library",
    "ad_id": "1881496516395441",
    "ad_url": "https://library.tiktok.com/ads/detail/?ad_id=1881496516395441",
    "advertiser_name": "LIDL & COMPANHIA",
    "advertiser_id": "7262331857793220610",
    "brand_name": "LIDL & COMPANHIA",
    "countries": ["PT"],
    "country_code": "PT",
    "objective": "Reach",
    "estimated_audience": "700K-800K",
    "first_shown_at": "2026-11-12T00:00:00Z",
    "last_shown_at": "2026-11-24T00:00:00Z",
    "ad_text": null,
    "video_url": "https://library.tiktok.com/api/v1/cdn/1795617125/video/...",
    "image_urls": [],
    "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/...",
    "landing_page_url": "https://www.lidl.pt/c/mundo-de-natal-lidl/s10103895?utm_source=tiktok&utm_medium=paid_social&utm_campaign=__CAMPAIGN_NAME__&utm_content=__AID_NAME__.__CID_NAME__&utm_term=ac-69516793_ad-__CID__&utm_id=__CAMPAIGN_ID__",
    "like_count": null,
    "comment_count": null,
    "share_count": null,
    "ctr": null,
    "industry": null,
    "language": null,
    "video_duration_seconds": null
  }
}

For a single ad, result is one object, not a list. countries is ["PT"] and country_code is PT. Each of our three detail records listed exactly one country: GB for the Gymshark ad, PT for Lidl and DE for Zalando Lounge.

objective came back on 2 of 3 ads: Reach for Lidl and Community interaction for Zalando Lounge, and null for Gymshark. landing_page_url was filled on 2 of 3, and its UTM values are TikTok's unfilled macros such as __CAMPAIGN_NAME__, so they don't name the campaign.

ad_text was null on all three detail records, even for the Gymshark ad whose list row carried its copy. Keep the copy from the list call and add the detail fields to it. Each lookup costs 2 credits, so countries for 25 ads cost another 50.

07 · Comparison

What does it cost to pull TikTok ads?

Every delivered ad costs 2 credits, on all three operations. These are the calls behind this guide and what each one charged.

CallWhat came backCredits
adlibrary_search, target Gymshark, limit 2020 ads from 5 advertisers40
adlibrary_company_ads, target GYMSHARK LTD, limit 2525 ads50
adlibrary_company_ads, target Zalando, limit 2525 ads from Zalando Lounge50
adlibrary_company_ads, target Lidl, limit 2525 ads from LIDL & COMPANHIA50
adlibrary_ad, 3 ad IDs3 ads with countries and objective6
Total98 ad records196

A call that returns nothing costs nothing. Several of our calls were first rejected with 429 concurrent_job_limit_exceeded because other jobs were running in the workspace; those created no job and charged nothing.

08 · What to measure

What does each TikTok ad record contain?

Search, advertiser pulls and single-ad lookups return the same record shape. Which fields are filled depends on the call.

MetricWhat it meansHow to read it
ad_id, ad_urlTikTok's ID for the ad and its library page.Key your table on ad_id and keep ad_url as the reference.
advertiser_name, advertiser_idThe legal entity that ran the ad.advertiser_id was null on all 20 search rows; pull by advertiser_name.
first_shown_at, last_shown_atThe first and last day the ad was shown.Run length counts both ends. A last_shown_at of yesterday or today means the ad is probably still running.
estimated_audienceA reach band: 0-1K, 1K-10K, 10K-100K, 100K-200K, 700K-800K in our data.The bands get wider at the top. Compare bands; don't average them as numbers.
ad_textThe ad copy.Usually filled in list rows, but 16 of Lidl's 25 held a category label such as Household Products and 9 were null. It was null on every detail record.
video_url, image_urls, thumbnail_urlThe creative files.Signed links that expire (x-expires), so download what you want to keep.
countries, country_code, objective, brand_name, landing_page_urlWhere it ran, what it was for, and where it sends people.Empty on list rows. Filled only by adlibrary_ad.
like_count, comment_count, share_count, ctr, industry, language, video_duration_secondsEngagement and descriptive fields.null on all 98 records we pulled. The library doesn't publish them.
09 · How it works

How do you rank a brand's TikTok ads by run length in Python?

Without spend or engagement, how long an advertiser keeps paying for an ad is the best public signal of what works. This script pulls one advertiser's ads as a job, prints the advertiser_resolved notice, computes run length for each ad and writes tiktok_ads.csv, longest first.

PythonPOST /v1/jobs
import csv, os, statistics, time
from datetime import date

import requests

API = "https://api.caelario.com"
HEADERS = {"X-API-Key": os.environ["CAELARIO_API_KEY"]}
ADVERTISER = "GYMSHARK LTD"  # the advertiser_name you picked from adlibrary_search
LIMIT = 50                   # up to 100; each delivered ad costs 2 credits


def create_job(body, key):
    for attempt in range(6):
        r = requests.post(f"{API}/v1/jobs", json=body, timeout=30,
                          headers={**HEADERS, "Idempotency-Key": key})
        if r.status_code != 429:
            r.raise_for_status()
            return r.json()
        # Too many jobs running: wait, then resend with the same key
        time.sleep(float(r.headers.get("Retry-After", 2 ** attempt)))
    raise SystemExit("Still rate limited, try again later")


def day(ts):
    return date.fromisoformat(ts[:10])


job = create_job(
    {"platform": "tiktok", "operation": "adlibrary_company_ads",
     "target": ADVERTISER, "limit": LIMIT},
    key=f"tiktok-ads-{ADVERTISER}-{date.today()}",
)
while job["status"] not in {"completed", "failed", "cancelled"}:
    time.sleep(3)
    job = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS, timeout=30).json()

if job["status"] != "completed":
    raise SystemExit(job["error"])

# advertiser_resolved names the advertiser the library actually matched
for notice in job.get("notices") or []:
    print(notice["code"], "-", notice["message"])

rows = []
for ad in job["result"] or []:
    if not (ad.get("first_shown_at") and ad.get("last_shown_at")):
        continue
    rows.append({
        "ad_id": ad["ad_id"],
        "advertiser_name": ad["advertiser_name"],
        "first_shown": ad["first_shown_at"][:10],
        "last_shown": ad["last_shown_at"][:10],
        # Count both ends: an ad first and last shown on the same day ran 1 day
        "run_days": (day(ad["last_shown_at"]) - day(ad["first_shown_at"])).days + 1,
        "estimated_audience": ad["estimated_audience"],
        "has_video": ad["video_url"] is not None,
        "ad_text": ad["ad_text"],
        "ad_url": ad["ad_url"],
    })

if not rows:
    raise SystemExit("No ads in the last 30 days")

rows.sort(key=lambda r: r["run_days"], reverse=True)
with open("tiktok_ads.csv", "w", newline="", encoding="utf-8") as f:
    out = csv.DictWriter(f, fieldnames=list(rows[0]))
    out.writeheader()
    out.writerows(rows)

days = [r["run_days"] for r in rows]
print(f"{len(rows)} ads, median {statistics.median(days)} days, longest {days[0]} days")
print(f"{sum(d == 1 for d in days)} ads shown on a single day")
if job["result_count"] >= LIMIT:
    print("Got as many ads as LIMIT; there may be more, so raise it to check")
print(f"{job['billed_credits']} credits")

At LIMIT = 50 the most it can cost is 100 credits. Reusing the Idempotency-Key on a retry returns the original job instead of charging twice.

10 · Real example · collected 25 November 2026

How long do TikTok ads run? Gymshark, Lidl and Zalando in Black Friday week

We pulled the 25 most recent ads for each advertiser on 25 November 2026 and computed run length the way the script does, counting both the first and last day shown.

2 daysMedian run, all 75 adsBlack Friday week, most still running
37 daysLongest runZalando Lounge, 19 Oct to 24 Nov
5Videos behind Lidl's 25 adsOne video behind 10 ads
196Credits for the whole study98 ad records at 2 each
Share of ads shown on a single day
Zalando Lounge
64%
Gymshark
48%
Lidl Portugal
20%

25 most recent ads per advertiser, pulled 25 November 2026.

See the full table
Advertiser (target sent)AdsMedian runLongest runShown on 1 day onlyShown on 24 or 25 NovVideo ads
GYMSHARK LTD (GYMSHARK LTD)252 days9 days12 (48%)2525
LIDL & COMPANHIA (Lidl)253 days13 days5 (20%)1925
Zalando Lounge c/o Zalando SE (Zalando)251 day37 days16 (64%)2513 (12 had no media)
All three752 days37 days33 (44%)6963

What it tells you

  • This is Black Friday week. 73 of the 75 ads started between 16 and 25 November, most of the copy is sale copy, and 69 of 75 were still being shown on 24 or 25 November. The short medians reflect a burst of new sale variants that are still running, not how long these brands' ads usually last.
  • The longest runners stand out against that burst. Zalando Lounge's 37-day ad started on 19 October and ran in Germany with the objective Community interaction. Lidl's 13-day ad ran in Portugal with the objective Reach and the largest band in the sample, 700K-800K.
  • Count creatives, not ad IDs. Lidl's 25 ads use only 5 distinct videos (by the VideoID inside thumbnail_url), and one video sits behind 10 of them.
  • Gymshark's 25 ads use 8 distinct ad_text values in English, French and Dutch, and one ad has none. The most common one appears 7 times, so most "new" ads are the same message tested again.
  • Lidl's ads sit higher in the bands: 14 of 25 are 10K-100K. Gymshark has 14 of 25 in 0-1K and Zalando Lounge 10. The bands are uneven, so compare counts per band, not averages.

Credits: search 40 (20 ads × 2), three advertiser pulls 150 (75 ads × 2), three single-ad lookups 6. Total 196. Each pull returned the full 25 we asked for, so each advertiser had at least 25 ads in the window.

Sources: Zalando Lounge ad, 37 days · Lidl Portugal ad, 13 days · Gymshark ad, 9 days

11 · Comparison

How do you combine TikTok and Meta ads in one table?

The request body is the same for both libraries: change platform to facebook and use the Meta operations. The records differ, so map them to one row shape before you compare.

What you wantMeta Ad Library recordTikTok ad library record
Ad ID and linkad_id, snapshot_urlad_id, ad_url
Advertiserpage_id, page_name, page_urladvertiser_id, advertiser_name
Datesstarted_at, ended_at, activefirst_shown_at, last_shown_at
Copybody, title, captionad_text
Creativeimage_urls, video_urlsvideo_url, image_urls, thumbnail_url
Landing pagedestination_urllanding_page_url (single-ad call only)
Reachreach_lower, reach_upper for some adsestimated_audience band

Meta's advertiser search returns a page_id you pull by; TikTok's search leaves advertiser_id empty, so you pull by name. The full Meta walkthrough is at /blog/facebook-ad-library-api.

A small mapping function puts both into one CSV-ready row:

Python
def common_row(platform, ad):
    """One row shape for Meta and TikTok ad records."""
    if platform == "facebook":
        return {"platform": "facebook", "ad_id": ad["ad_id"],
                "advertiser": ad["page_name"], "first_seen": ad["started_at"],
                "last_seen": ad["ended_at"], "text": ad["body"],
                "link": ad["snapshot_url"]}
    return {"platform": "tiktok", "ad_id": ad["ad_id"],
            "advertiser": ad["advertiser_name"], "first_seen": ad["first_shown_at"],
            "last_seen": ad["last_shown_at"], "text": ad["ad_text"],
            "link": ad["ad_url"]}

On an active Meta ad, ended_at is the collection date, so last_seen means "still running" on both platforms.

12 · Step by step

How do you watch a brand's new TikTok ads every week?

A weekly pull catches new launches, and because advertiser pulls cover the last 30 days, consecutive runs overlap.

  1. 01

    Fix the advertiser names

    Run adlibrary_search once per brand, note each exact advertiser_name, and check the advertiser_resolved notice on the first pull. Searching again every week costs credits for no new information.

  2. 02

    Create the schedule

    Send POST /v1/schedules with platform tiktok, operation adlibrary_company_ads, the names as targets, a limit, frequency weekly, an IANA timezone and a starts_at time with a UTC offset.

  3. 03

    Budget it

    One advertiser at 50 ads is at most 100 credits a week. Credits are reserved when each run starts and released for ads that don't come back.

  4. 04

    Diff the ad_id lists

    New ad_ids are launches. Ads whose last_shown_at stopped moving have stopped. Compare the runs in your code or spreadsheet.

  5. 05

    Look up only the new ads

    Call adlibrary_ad on new IDs for their countries and objective, at 2 credits each, instead of looking up the whole list again.

The schedule for Gymshark, every Monday at 9am London time:

RequestPOST /v1/schedules
curl -X POST https://api.caelario.com/v1/schedules \
  -H "X-API-Key: $CAELARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Gymshark TikTok ads, weekly",
    "platform": "tiktok",
    "operation": "adlibrary_company_ads",
    "targets": ["GYMSHARK LTD"],
    "limit": 50,
    "frequency": "weekly",
    "timezone": "Europe/London",
    "starts_at": "2026-11-30T09:00:00+00:00"
  }'

targets takes up to 100 advertisers. Each run creates normal jobs you read with GET /v1/jobs/{job_id}.

13 · Common traps

What does the TikTok ad library not show?

Know these before you promise a client anything. Each one held across the 98 records we pulled.

✕ Mistake 01

No spend, budget or impressions

No record had a spend field, and TikTok's own field lists for the Commercial Content API have none either. The closest thing is the estimated_audience band.

✕ Mistake 02

No engagement

like_count, comment_count, share_count and ctr were null on all 98 records.

✕ Mistake 03

No US-only ads

The library covers ads shown in the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland. Every country in our detail records was GB, PT or DE.

✕ Mistake 04

No countries or objective in list calls

countries was empty on all 95 list rows. You pay 2 credits per ad with adlibrary_ad to fill it.

✕ Mistake 05

No targeting breakdown

Caelario's records carry one audience band and the countries. TikTok's official Get Ad Details returns targeting and reach by country, age and gender; apply for it if you need those.

✕ Mistake 06

Only the last 30 days in list calls

Search and advertiser pulls cover ads shown in the last 30 days. TikTok keeps ads in its library for a year after they were last shown.

✕ Mistake 07

A brand name is one advertiser

Lidl meant Lidl Portugal and Zalando meant Zalando Lounge. Pull each entity by name to cover a group.

✕ Mistake 08

A limit is a sample

When result_count equals your limit, there may be more ads; source_exhausted doesn't tell you on ad calls. Our 25 per brand were the most recently shown, not the full history.

14 · Step by step

How do you start?

  1. 01

    Create a key

    Sign up at app.caelario.com/connect, create an API key and store it as CAELARIO_API_KEY. New accounts get 300 free credits, valid for 30 days: enough for 150 TikTok ads.

  2. 02

    Find your advertiser

    Run the adlibrary_search request above with a brand you follow and note the exact advertiser_name of the brand's own ads.

  3. 03

    Pull and rank

    Put that name in the Python script, run it, and open tiktok_ads.csv. Check the printed notice before you trust the totals.

WHY CAELARIO

Why use Caelario for TikTok ad research

TikTok's own API needs an application and returns 10 ads a request. With Caelario you send one key and get up to 100 ads per call, in the same workspace as your Meta ads.

  • No application

    Create a workspace key and call adlibrary_company_ads today. TikTok's route needs a developer account, a form and a review.

  • Pay per ad, nothing for empty results

    2 credits per delivered ad. Our three-brand study, 98 records, cost 196 credits, and calls rejected with 429 charged nothing.

  • TikTok and Meta from one key

    The same request body pulls the Meta Ad Library with platform set to facebook, so one script covers both libraries.

  • Brand ad watch template

    Enter a brand name and get up to 100 Meta ads and up to 50 TikTok ads (EU and UK) for a flat 200 credits, with a basic AI insight on what has run longest.

  • Weekly pulls

    POST /v1/schedules reruns an advertiser pull every week, so you can diff ad_id lists and catch new launches.

  • Exports at no extra cost

    Download any stored job as JSON, CSV or XLSX from GET /v1/jobs/{job_id}/export without running it again.

QUESTIONS

Common questions

Is there an official TikTok Ad Library API?

Yes, the Commercial Content API. The public and researchers in any country can apply through a TikTok for Developers account, and TikTok says it replies within 2 working days. It returns at most 10 ads per request. Caelario returns records from the same public library with one workspace key and no application.

Does the TikTok ad library include US ads?

No. TikTok's library covers ads shown in the EU, Norway, Iceland, Liechtenstein, the UK and Switzerland. Every country in our data was GB, PT or DE.

Can I see how much a brand spends on TikTok ads?

No. Neither TikTok's official field lists nor any of our 98 records has a spend, budget or impressions field. You get an estimated_audience band such as 10K-100K, and likes, comments, shares and CTR are null.

Why is countries empty in my results?

adlibrary_search and adlibrary_company_ads leave it empty: it was [] on all 95 list rows we pulled. Call adlibrary_ad with the ad_id to get countries, country_code and objective, at 2 credits per ad.

How much does it cost to pull a brand's TikTok ads?

2 credits per delivered ad on every operation, so 25 ads cost 50 credits and empty results cost nothing. New accounts get 300 free credits, and credit packs start at $19 for 5,000 credits.

How long do ads stay in the TikTok ad library?

TikTok keeps an ad available while it runs and for one year after it was last shown. Caelario's search and advertiser pulls cover ads shown in the last 30 days, and adlibrary_ad looks up a single ad by ID.

BUILD IT WITH CAELARIO

Ad research

The same data through the API and the Claude connector, with 300 free credits to start, valid for 30 days. No card needed.

KEEP READING