TikTok AD API
Get TikTok AD data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 14 implementations (anyapi, ScrapeCreators and TikHub), pass parameters such as adId, and retrieve structured data including returned ad id field, returned ad title field, returned brand name field, returned comments field, and returned cost field for content research and account lookup, and integration reference.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 3 / 14
- Requests · 30d
- 2Selected implementation · last 30 days
- Success rate · 30d
- 50.00%Selected implementation · last 30 days
TikTok AD API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
TikTok Ad Library — Ad Library Search API
Search for TikTok's public Ads Library using either query for a general search or advertiser_name for advertiser-specific results. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: query, advertiser_name, adv_biz_ids, cursor, start_time, end_time, region |
| Selected implementation | scrapecreators · TikTok Ad Library — Ad Library Search |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
cursor |
Pagination cursor |
has_more |
Continuation flag |
ads[].id |
Identifier |
ads[].name |
Name |
ads[].adv_biz_ids |
Returned adv biz ids field |
ads[].audit_status |
Returned audit status field |
ads[].estimated_audience |
Returned estimated audience field |
ads[].first_shown_date |
Returned first shown date field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark®ion=GB' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published TikTok Ad Library — Ad Library Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| TikTok Ad Library Ad · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Library Search · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok Top Ads Search · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Transparency Search · POST · View API reference | $0.0008 / call | —Select to load statistics | —successP50— | |
| TikTok Ad Library — Ad Library Ad · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
Current TikTok Ad Library — Ad Library Search · GET · View API reference | $0.00188 / call | 2 | 50.00%successP502.56s | |
| Get recommended ads · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad keyframe analysis · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get top ads spotlight · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Top Ads filters · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Search ads · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad interactive analysis · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get ad percentile data · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get single ad detail · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00188
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 7. Price update time: not supplied.
Total $0.188
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | URL query parametersquery | string | No | General ad search. Provide either query or advertiser_name, not both. |
advertiser_name | URL query parametersquery | string | No | Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both. |
adv_biz_ids | URL query parametersquery | string | No | TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name. |
cursor | URL query parametersquery | string | No | Opaque cursor returned from the previous response. |
start_time | URL query parametersquery | integer | No | Inclusive lower bound for the ad's last shown date; end_time is the inclusive upper bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request. |
end_time | URL query parametersquery | integer | No | Inclusive upper bound for the ad's last shown date; start_time is the inclusive lower bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request. |
region | URL query parametersquery | string | No | Filter by the ad's targeting/delivery country, not the advertiser's registration country. Omitted region defaults to all supported countries, not every country worldwide. Values are case-insensitive; choose all or one of the listed country codes. US is not supported. Empty values, unsupported countries and multiple countries return 400 bad_request. enum: "all", "AT", "BE", "BG", "BR", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "NL", "NO", "PL", "PT", "RO", "SE", "SI", "SK", "TR" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
adsobject[]adv_biz_idsstringaudit_statusstringestimated_audiencestringfirst_shown_dateintegeridstringimage_urlsunknown[]impressionintegerlast_shown_dateintegernamestringrejection_infonullshow_modeintegersor_audit_statusstringspentstringtypestringurlstringvideosobject[]cover_imgstringvideo_urlstring
advertiser_matchesobject[]idsstringnamestring
advertiser_namestringcredits_chargedintegercredits_remainingintegercursorstringhas_morebooleanresolved_advertiser_namestringsourcestringsuccessbooleantotalinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 7
Review these request fields before running. Keep the published provider and request method unchanged.
query- General ad search. Provide either query or advertiser_name, not both.
advertiser_name- Advertiser name to resolve through TikTok's typeahead and search by advertiser entity. Falls back to TikTok's name search when no entity matches. Provide either advertiser_name or query, not both.
adv_biz_ids- TikTok advertiser business ID from a See all ads link. Use it with advertiser_name to pin the exact advertiser. Required companion: advertiser_name; ID-only searches return 400 because TikTok ignores the ID without the name.
cursor- Opaque cursor returned from the previous response.
start_time- Inclusive lower bound for the ad's last shown date; end_time is the inclusive upper bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.
end_time- Inclusive upper bound for the ad's last shown date; start_time is the inclusive lower bound. Supply start_time and end_time together as positive base-10 safe integers, no greater than 9007199254740991, in Unix seconds (preferred) or milliseconds. Values greater than 9999999999 are interpreted as milliseconds, divided by 1000 and rounded down to seconds. start_time must be less than or equal to end_time after normalization; equal bounds are accepted. If both are omitted, the last-shown date window defaults to the rolling 30 days ending at the time of each request. A missing companion, empty value, sign, fraction, scientific notation, whitespace, date string, unsafe integer or reversed interval returns 400 bad_request.
region- Filter by the ad's targeting/delivery country, not the advertiser's registration country. Omitted region defaults to all supported countries, not every country worldwide. Values are case-insensitive; choose all or one of the listed country codes. US is not supported. Empty values, unsupported countries and multiple countries return 400 bad_request.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark®ion=GB' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "ads": [ { "adv_biz_ids": "7078923208527618049", "audit_status": "1", "estimated_audience": "1K-10K", "first_shown_date": 1784937600000, "id": "1871655924410641", "image_urls": [], "impression": 0, "last_shown_date": 1785024000000, "name": "GYMSHARK LTD", "rejection_info": null, "show_mode": 1, "sor_audit_status": "1", "spent": "", "type": "2", "url": "https://library.tiktok.com/ads/detail/?ad_id=1871655924410641", "videos": [ { "cover_img": "https://p16-common-sign.tiktokcdn.com/...", "video_url": "https://library.tiktok.com/api/v1/cdn/..." } ] } ], "advertiser_matches": [ { "ids": "7078923208527618049", "name": "GYMSHARK LTD" } ], "advertiser_name": "Gymshark", "credits_charged": 1, "credits_remaining": 100, "cursor": "opaque cursor for the next page", "has_more": true, "resolved_advertiser_name": "GYMSHARK LTD", "source": "tiktok_public_ads_library", "success": true, "total": 62344 }