OpenAny
Get API keyAPI Key
APIAdvertisingData

tiktok logo
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
USE THIS API

TikTok AD API

Prepare your request, then continue with your agent.

Selected price

$0.00188 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
TikTok AD API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark&region=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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (7)
General ad search. Provide either query or advertiser_name, not both.
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.
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.
Opaque cursor returned from the previous response.
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.
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.
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.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
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 / call2
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—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · scrapecreatorsUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryURL query parametersquerystringNo

General ad search. Provide either query or advertiser_name, not both.

advertiser_nameURL query parametersquerystringNo

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_idsURL query parametersquerystringNo

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.

cursorURL query parametersquerystringNo

Opaque cursor returned from the previous response.

start_timeURL query parametersqueryintegerNo

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_timeURL query parametersqueryintegerNo

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.

regionURL query parametersquerystringNo

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

Inferred from examples
  • adsobject[]
    • adv_biz_idsstring
    • audit_statusstring
    • estimated_audiencestring
    • first_shown_dateinteger
    • idstring
    • image_urlsunknown[]
    • impressioninteger
    • last_shown_dateinteger
    • namestring
    • rejection_infonull
    • show_modeinteger
    • sor_audit_statusstring
    • spentstring
    • typestring
    • urlstring
    • videosobject[]
      • cover_imgstring
      • video_urlstring
  • advertiser_matchesobject[]
    • idsstring
    • namestring
  • advertiser_namestring
  • credits_chargedinteger
  • credits_remaininginteger
  • cursorstring
  • has_moreboolean
  • resolved_advertiser_namestring
  • sourcestring
  • successboolean
  • totalinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/scrapecreators/v1/tiktok/ad-library/search?query=Gymshark&region=GB' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. 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
    }

Common questions

Does this implementation require business input parameters?

No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

Which pagination or result-size inputs are exposed?

cursor is string; start_time is integer. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

Which values can I use for region?

The selected schema accepts 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. Keep the documented string type and exact spelling for this input.

Where do URL parameters belong?

Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use TikTok AD API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.