toolzerhub API Docs

Search TikTok Ads Library ads

Returns public Ads Library ads for region, start_time, end_time, and query. search_type and advertiser_id narrow the match; sort orders results. Pages hold up to 12 ads: send search_id with offset to page.

1 credit / requestBilled only on success
GET
/v1/tiktok-ads/search

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

region*string

Two-letter region code returned by /regions. Must be a country the Ads Library covers — the EEA, Switzerland, the UK, or Turkey. A country served only by Creative Center's Top Ads, such as the US or Brazil, is rejected; use the Top Ads endpoints for those.

Match^[A-Za-z]{2}$
start_time*string

Inclusive start of the requested date range as a Unix timestamp in seconds.

Length1 <= length
end_time*string

End of the requested date range as a Unix timestamp in seconds. Must be greater than or equal to start_time.

Length1 <= length
query*string

Search text, selected advertiser name, selected keyword, or exact phrase, according to search_type.

Length1 <= length <= 200
search_type?string

How query is matched: free_text for typed text, advertiser for a selected advertiser (needs advertiser_id), keyword for a selected keyword, exact_phrase for the whole phrase.

Default"free_text"

Value in

  • "free_text"
  • "advertiser"
  • "keyword"
  • "exact_phrase"
advertiser_id?string

Advertiser id from the /suggestions response. Required when search_type is advertiser.

Lengthlength <= 100
sort?string

Sort by last-shown date, publication date, or impressions in ascending or descending order.

Default"last_shown_desc"

Value in

  • "last_shown_desc"
  • "last_shown_asc"
  • "published_desc"
  • "published_asc"
  • "impressions_asc"
  • "impressions_desc"
offset?|

Where the page starts. Page one is 0; for later pages send search_id from the previous response alongside it.

Range0 <= value
Default0
search_id?string

Cursor from the previous search response. Send it to get the next page, and use the newest one each time.

Lengthlength <= 500
limit?integer

Ads per page, 1 to 12. TikTok caps public search pages at 12.

Range1 <= value <= 12
Default12
curl -X GET "https://example.com/v1/tiktok-ads/search?region=GB&start_time=1784246400&end_time=1784879999&query=Nike" \  -H "x-api-key: YOUR_API_KEY"
{  "data": {    "property1": null,    "property2": null  }}