TikTok Ad Details API
Get full Ad Library video metadata — title, views, likes, duration, and more.
GET request to /v1/ad-library/tiktok/ad-details that responds with clean JSON, costs 17 credits, and is cached for 24 hours (repeat calls are free). Start with 100 free credits — no credit card.What is the TikTok Ad Details API?
The TikTok Ad Details API lets you fetch full metadata and engagement stats from Ad Library with a single REST call. No OAuth, no scraping infrastructure, and no platform SDKs — send the URL, get clean structured JSON back. Results are cached for 24 hours, so repeat lookups are instant and free.
What you get
- Title, description, and thumbnail URLs
- View, like, comment, and share counts
- Duration, publish date, and author handle
- Stable IDs for joining with other endpoints
Try it
Fill in the parameters below and copy a ready-to-run request in your language of choice.
Parameters
curl "https://api.captapi.com/v1/ad-library/tiktok/ad-details?url=https%3A%2F%2Fadstransparency.google.com%2F" \
-H "Authorization: Bearer capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"platform": "tiktok_ad_library",
"id": "7649211666845483028",
"url": "https://library.tiktok.com/ads/detail/?ad_id=7649211666845483028",
"text": "Stays put all night, no messy fallout #MakeupHack #FestivalMakeup",
"headline": null,
"cta": null,
"landingUrl": null,
"adFormat": "video",
"firstShown": null,
"lastShown": null,
"impressions": null,
"spend": null,
"country": null,
"advertiser": {
"id": null,
"name": "Not Mention",
"url": null,
"logo": null
},
"media": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-p-0068c799-us/oIgezERlqD2EFM1xADBnkHzKFBcISQfV0C9tpy~tplv-noop.image?dr=18692&refresh_token=a0fce6b6&x-expires=1783126706&x-signature=pzwpLOAqbyJ7zIEz5GHPVSDvOZQ%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v12025gd0000d8khedfog65orfmbj6cg",
"https://v16m-default.tiktokcdn.com/ff617510a4b19dc54968edd3eaadd35d/6a485ab2/video/tos/maliva/tos-maliva-ve-0068c799-us/o4FCVEZDgmCByc5FfjqVDQAxItpe4KEPR1aU0S/?a=0&bti=NTU4QDM1NGA%3D&&bt=527&ft=cApXJCz7ThWHv80ZLGZmo0P&mime_type=video_mp4&rc=aDw4Omk2ZTdoNTloODloOkBpajllaXI5cmdrOzMzZzgzNEBhYGNjLmA1Ni4xMS80YjFeYSNgZ2pvMmRjYmhhLS1kLy9zcw%3D%3D&vvpl=1&l=20260704025747149C8D5E4B857CAD669F&btag=e00088000"
]
}
}Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.
Response structure
A successful call returns success, cached, creditsUsed, and a data object with the following fields:
Top-level fields
platformPlatform identifier (e.g. youtube, instagram).idStable platform ID for the item.urlCanonical URL of the item.textText content.headlineProfile headline.ctaCall-to-action text.landingUrlLanding page the ad links to.adFormatFormat of the ad creative.firstShownWhen the ad was first shown.lastShownWhen the ad was last shown.impressionsEstimated ad impressions.spendEstimated ad spend.countryCountry.mediaMedia attached to the item.
Advertiser
The advertiser object contains:
idStable platform ID for the item.nameName of the item or account.urlCanonical URL of the item.logoLogo image URL.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | TikTok Ad Library URL or ad ID. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble. |
| country | string | No | Two-letter ISO country code. Default DE. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 17 credits. Repeat calls for the same request are served from cache for free.
tiktok_ad_library_ad_details via @captapi/mcp. Set it up →How it works
- 1. Sign up — get 100 free credits, no card required.
- 2. Create a key from your dashboard.
- 3. Send one request to
/v1/ad-library/tiktok/ad-detailsand parse the JSON response.
Use cases
Analytics
Track views, likes, and engagement over time.
Competitor Monitoring
Benchmark the performance of other creators.
Dashboards
Power reporting and BI with real metadata.
Content Curation
Filter and rank videos by performance.
Frequently asked questions
What does the TikTok Ad Details API do?+
The TikTok Ad Details API lets you fetch full metadata and engagement stats from a public Ad Library video using one GET request to /v1/ad-library/tiktok/ad-details. It returns clean JSON — no OAuth or scraping setup required.
How many credits does the TikTok Ad Details API cost?+
Each successful call costs 17 credits. Responses are cached for 24 hours, and cached results cost 0 credits. Failed or empty results are never charged.
Do I need a Ad Library API key or OAuth?+
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, and Rumble. We handle proxies, rate limits, retries, and authentication for you.
Is the TikTok Ad Details API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON, automatic retries, and a shared 24-hour cache. Use it for RAG pipelines, analytics, monitoring, and content automation.
More Ad Library APIs
Ready to use the TikTok Ad Details API?
Sign up, grab your key, and make your first call in 60 seconds.