Marketing
TikTok Ad Library logo

TikTok Ad Library API

library.tiktok.com

TikTok EU Ad Library - ad search by country, keyword, and date, with suggestions.

Actions
2
Category
Marketing
Login
Not required
Output
JSON

Call the TikTok Ad Library API

Submit a task, then poll the job until it settles. This example runs act_library_tiktok_com_ad_search_listing.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_library_tiktok_com_ad_search_listing",
    "params": {
      "region": "AT",
      "start_time": "1777686882",
      "end_time": "1780365282",
      "search_query": "sports",
      "query_type": "1",
      "sort_order": "impression,desc"
    }
  }'

2 actions on library.tiktok.com

Write

Write actions change state on library.tiktok.com and run as the account you connect.

  • Ad Search

    act_library_tiktok_com_ad_search_listingwrite2 credits / call

    Returns ads matching country, date range, keyword, and sort with advertiser and impression data.

    region
    string · required
    start_time
    string · required
    end_time
    string · required
    search_query
    string · required
    query_type
    string · required
    sort_order
    string · required
    offset
    integer
    search_id
    string
  • Autocomplete Suggestions

    act_library_tiktok_com_search_autocomplete_suggestionswrite2 credits / call

    Returns typeahead advertiser-name and keyword suggestions for a partial search query.

    search_query
    string · required

TikTok Ad Library API questions

Is there an API for TikTok Ad Library?
TikTok Ad Library does not offer a public data API for this, but Anakin Wire provides 2 maintained endpoints for library.tiktok.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape TikTok Ad Library data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when library.tiktok.com changes its markup, Anakin updates the action.
Do I need a TikTok Ad Library account?
No. Every TikTok Ad Library action listed here runs anonymously — no account and no credentials required.
What does the TikTok Ad Library API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Marketing APIs

All Marketing sites