beatapi

TikTok Ad Library API

BeatAPI TikTok Ad Library API turns TikTok Creative Center across 28 markets into 4 synchronous JSON endpoints — letting creative teams and AI agents filter winning Spark Ads, pull industry Top Ads, and export second-by-second retention & CTR curves at $0.003/call.

set up https://beatapi.io/SKILL.md

Give this to your agent

  • Claude Code
  • Codex
  • Hermes
  • OpenClaw
  • Manus
  • Grok Bot
  • WorkBuddy
  • 4 · /v1/ads/tiktok/*
  • REST & MCP
  • $0.003 / call

Isolate Creator Spark Ads and Quantify the First 3 Seconds

Filter by market, industry, Spark creator format, and top_20 performance, then export exact second-by-second retention and click curves.

TikTok Ad Library

Filter high-performing Spark Ads and industry Top Ads across 28 markets, and export second-by-second retention and CTR curves to decode the first 3 seconds.

Response
POST/v1/ads/tiktok/search200 OK$0.003 / call
INPUTqueryrunning shoescountryUSperiod30sortlikeslimit20

TIKTOK · US · 30D · SORT: LIKES

Nike · “running shoes”

Likes
18,420
CTR
2.4%
Shares
940
Ad IDObjectiveBudget Tier
7703107650258812946conversion3

Four Signals Behind Viral TikTok Retention Curves

Which 28 markets are covered, how to isolate creator Spark Ads, what the second-by-second curves show, and what budget_level means.

01 · 28 Markets & Spark Filter

Isolate creator Spark Ads & top 20% winners

Filter across 28 markets (US, UK, DE, FR, JP, KR, AU, CA, BR, and more) by ad_format (spark/non_spark), industry ID, objective, performance tier (top_20), and 7/30/180-day windows.

02 · Creative & Engagement

Video, likes, shares, CTR & official highlights

Get video links, likes/comments/shares, CTR, landing_url, and TikTok's official Top Ads creative callouts in structured JSON instead of copying from the browser.

03 · Decode the First 3 Seconds

Second-by-second retention, CTR & CVR curves

Pass any ad_id to tiktok/ad-analysis (retention, ctr, cvr, clicks, or conversions) to get per-second curve arrays, highlight timestamps, and a 0–1 industry percentile rank.

04 · Honest Metric Boundaries

budget_level is a relative tier, not dollars

TikTok Creative Center reports budget_level as a 0-based relative tier rather than dollar spend. BeatAPI returns the exact value and never invents a dollar estimate.

From Finding Top Creator UGC to Second-Level Edit Notes

Go from spotting a category winner to pinpointing the exact 3-second drop-off in 3 calls ($0.009 total).

TikTok Ad Search$0.003 / call
POST /v1/ads/tiktok/search · query=running shoes · country=US · period=30 · sort=likes · limit=20

Creator UGC converts very differently from brand-account ads. Filter tiktok/search by ad_format=spark and top_20 performance, then pull landing pages and target countries via tiktok/ad-detail.

TIKTOK · US · 30D · SORT: LIKES

Nike · “running shoes”

Likes
18,420
CTR
2.4%
Shares
940
Ad IDObjectiveBudget Tier
7703107650258812946conversion3

Ready-to-Run AI Agent Research Prompts

Connect Claude Code, Cursor, or Codex to https://beatapi.io/mcp, then paste any prompt below to pull live competitor ads, distill winning hooks, and output a structured brief.

Find the top 5 converting Spark Ads in a niche

Using BeatAPI MCP, call data:ads.tiktok_search for "running shoes" in the US over the last 30 days with ad_format="spark" and sort="likes". Rank the top 5 by CTR and shares, pull their landing URLs via data:ads.tiktok_ad_detail, and summarize their shared hooks.

data:ads.tiktok_searchdata:ads.tiktok_ad_detail

Why Hovering Over Web Graphs Breaks Down Past 20 Videos

The Creative Center web UI is great for peeking at one ad, but impossible for comparing retention curves across 20 winners.

Why Hovering Over Web Graphs Breaks Down Past 20 VideosBeatAPI TikTok Ad Library APICreative Center Web UISelf-Hosted Scraper
Batch automation4 sync REST & MCP endpoints across 28 marketsManual login & clicking; no JSON exportConstantly breaks on anti-bot signatures & sessions
Spark & percentile filteringFilter by industry, Spark format & top_20 in one callManual filter clicks one country at a timeParameter changes break parsers without warning
Second-by-second curvesRaw per-second arrays for retention, CTR & CVRMust hover point-by-point over tiny web graphsCurve endpoints often require separate signature reverse-engineering
Cost & reliability$0.003/call; 400 & 503 errors are freeBurns hours of strategist & editor time weeklyProxy bills + constant engineering firefighting

Two Ways to Connect: Code or AI Agent

No proxy pools, no headless browsers, and no async job polling. Send one standard HTTPS POST request and get clean JSON back in seconds.

Integrations

Send POST requests to https://api.beatapi.io/v1/ads/* with your BeatAPI Key and pipe results straight into Airtable, Sheets, or your database. Unknown fields return 400 immediately at $0.

POST /v1/ads/tiktok/search

cURL
curl --request POST https://api.beatapi.io/v1/ads/tiktok/search \
  --header "Authorization: Bearer $BEATAPI_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"query":"running shoes","country":"US","period":30,"sort":"likes","limit":20}'

Four Things to Know Before You Build

No hidden traps and no fabricated estimates. Here is how billing works, why creative URLs expire, and what platforms simply do not disclose.

Review pricing and billing
Pay only for what you pull — no $200/mo spy subscriptionsEvery call costs $0.003 deducted directly from your balance. google/ads bills once per 40 ads returned ($0.003 for 40, $0.006 for 80, $0.009 for 120), so you never pay for idle monthly seats.
Failed calls are free — broken scripts won't burn your budgetInvalid parameters (400) and upstream hiccups (503) cost $0. Only valid completed responses are billed; a valid query that returns zero ads counts as 1 call.
Media URLs expire in hours — download if you archiveImage and video URLs point to platform-signed CDNs that typically expire within hours. If you save creatives into Notion, Airtable, or a swipe file, mirror them to your own storage right away.
Undisclosed metrics stay omitted — never guessedPlatforms do not publish commercial ad spend, exact impressions, or clickable Google landing URLs. BeatAPI omits undisclosed fields instead of faking zeros or inventing estimates.
TikTok Ad SearchPOST /v1/ads/tiktok/search
$0.003 / call
TikTok Top AdsPOST /v1/ads/tiktok/top-ads
$0.003 / call
TikTok Ad DetailPOST /v1/ads/tiktok/ad-detail
$0.003 / call
TikTok Second-by-Second AnalysisPOST /v1/ads/tiktok/ad-analysis
$0.003 / call

TikTok Ad Library API FAQ

Pass the ad_id to tiktok/ad-analysis with metric=retention or metric=ctr. You get a per-second curve array, total video duration, TikTok's highlight timestamps, and a 0–1 industry percentile rank so you can quantify first-3-second performance across dozens of ads.

Stop Burning Hours Clicking Through Ad Libraries

Create a BeatAPI Key and pull your top competitor's live ads in under a minute. Pay-as-you-go at $0.003/call with zero monthly lock-in.