TikTok Ad Library Search API
Run a Ad Library tiktok search and get structured, ranked results as clean JSON.
GET request to /v1/ad-library/tiktok/search that responds with clean JSON and costs ~70 credits (3.5/result). Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.What is the TikTok Ad Library Search API?
The TikTok Ad Library Search API lets you search and return matching results for Ad Library tiktok search with a single REST call. No OAuth, no infrastructure to maintain, and no platform SDKs — send the request, get clean structured JSON back. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh.
What you get
- Ranked, structured result list
- Title, URL, author, and thumbnail per result when available
- Engagement metrics where the platform exposes them
- Configurable result limit
Try it
Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).
Parameters
curl "https://api.captapi.com/v1/ad-library/tiktok/search?q=fashion" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."Edit the parameters and the code updates instantly. Switch languages and hit copy.
Example response
{
"success": true,
"data": {
"query": "fashion",
"country": "DE",
"totalReturned": 3,
"ads": [
{
"platform": "tiktok_ad_library",
"id": "1872034324356433",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1872034324356433",
"text": "#gandurilemele #foryoupage❤️❤️ Buna dimineața tuturor!Zi binecuvântata tuturor!🙏🙏🙏",
"adFormat": "video",
"firstShown": "07/29/2026",
"lastShown": "07/29/2026",
"impressions": "0-1K",
"advertiser": {
"name": "alyalina535"
},
"media": [
"https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/og7D4rDZFh1nZXOfLR2MABlEJzgIQmBfQqyx8E~tplv-noop.image?dr=18692&refresh_token=07160d6b&x-expires=1785378043&x-signature=chp8LV05WtZMgn%2Foj9DEUlAt0HE%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&am"
]
},
{
"platform": "tiktok_ad_library",
"id": "1872081596639249",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1872081596639249",
"adFormat": "video",
"firstShown": "07/29/2026",
"lastShown": "07/29/2026",
"impressions": "0-1K",
"advertiser": {
"name": "ariana_s.loan"
},
"media": [
"https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/ocIpICBQICsNApB1EipZfAoCuW0CXiSozUI7At~tplv-noop.image?dr=18692&refresh_token=b141ba74&x-expires=1785378012&x-signature=%2BPg2gSRW9p1DJIiOmvO9Wnb5riU%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&"
]
},
{
"platform": "tiktok_ad_library",
"id": "1872034324355105",
"url": "https://library.tiktok.com/ads/detail/?ad_id=1872034324355105",
"text": "#foryoupage❤️❤️ Zi minunată tuturor!🙏🙏🙏",
"adFormat": "video",
"firstShown": "07/29/2026",
"lastShown": "07/29/2026",
"impressions": "0-1K",
"advertiser": {
"name": "alyalina535"
},
"media": [
"https://p16-common-sign.tiktokcdn.com/tos-useast2a-p-0037-euttp/ocICop3RUGnfxAGf3FQABXQNYnMQ4oCBf8afhY~tplv-noop.image?dr=18692&refresh_token=5f676cca&x-expires=1785378035&x-signature=Jc1zp2g8pv1QCck5g5SjsSf%2Fp1g%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&am"
]
}
]
}
}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
queryThe search query you sent.countryCountry name (e.g. Mexico, United States).totalReturnedNumber of items returned in this response.
Ads
Each item in ads contains:
platformPlatform identifier (e.g. youtube, instagram).idStable platform ID for the item.urlCanonical URL of the item.textText content.adFormatFormat of the ad creative.firstShownWhen the ad was first shown.lastShownWhen the ad was last shown.impressionsEstimated ad impressions.advertiserObject with name.mediaMedia attached to the item.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Keyword or advertiser to search TikTok Ad Library (min 2 characters). |
| country | string | No | Two-letter ISO country code. Default DE. |
| limit | integer | No | Max items to return (default 20, max 200). Billed per result. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs ~70 credits (3.5/result) — billed per result, so the exact amount scales with how many items you request. Pass cache=true for a free 24h cache hit; default is always fresh (metrics refresh within ~1 hour).
tiktok_ad_library_search 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/searchand parse the JSON response.
Use cases
Trend Discovery
Find trending content by keyword or hashtag.
Content Sourcing
Build feeds and playlists programmatically.
Monitoring
Track topics, brands, and competitors.
Research
Sample large sets of content for analysis.
Frequently asked questions
What does the TikTok Ad Library Search API do?+
The TikTok Ad Library Search API lets you search and return matching results from a public Ad Library query using one GET request to /v1/ad-library/tiktok/search. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the TikTok Ad Library Search API cost?+
At the default limit this endpoint costs 70 credits (3.5 per result). Billing scales with how many results you request. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. 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, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the TikTok Ad Library Search API suitable for production use?+
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
More Ad Library APIs
Ready to use the TikTok Ad Library Search API?
Sign up, grab your key, and make your first call in 60 seconds.