TikTok Ads Library Search Ads

API docs
https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads

Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).

Price
$0.06USD / call
Method
POST
Response
JSON
Parameters
1 required · 7 optional

Playground

Input
Search query (advertiser name or keyword)
Number of results per page (max 50)
Pagination offset (0-based). Requires search_id from a previous response for values > 0.
Region/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes.
Sort order: 'last_shown_date,desc' or 'last_shown_date,asc'
End of date range as Unix timestamp (seconds). Defaults to now.
Search ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
Start of date range as Unix timestamp (seconds). Defaults to 1 year ago.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

TikTok Ads Library Search Ads API

Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "tiktok-ads-library/search-ads", "limit": 12, "query": "nike", "offset": 0, "region": "all", "sort_by": "last_shown_date,desc", "search_id": ""}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesSearch query (advertiser name or keyword)
end_timeintegerNoEnd of date range as Unix timestamp (seconds). Defaults to now.
limitintegerNoNumber of results per page (max 50)
offsetintegerNoPagination offset (0-based). Requires search_id from a previous response for values > 0.
regionstringNoRegion/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes. One of: all, FR, DE, GB.
search_idstringNoSearch ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
sort_bystringNoSort order: 'last_shown_date,desc' or 'last_shown_date,asc' One of: last_shown_date,desc, last_shown_date,asc.
start_timeintegerNoStart of date range as Unix timestamp (seconds). Defaults to 1 year ago.

Pricing

Flat $0.06 per call. Failed calls are not charged.

Explore more

Related APIs

All APIs
APIPriceResponse
TikTok Ads Library$0.06 per callJSON
TikTok Ads Library$0.03 per callJSON
TikTok Ads Library$0.03 per callJSON

Questions

FAQ

How do I use the TikTok Ads Library Search Ads API?

Send a POST request to https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the TikTok Ads Library Search Ads API cost?

$0.06 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

What parameters does the TikTok Ads Library Search Ads API accept?

Required: query (string). Optional: limit (integer), offset (integer), region (one of all, FR, DE, GB), sort_by (one of last_shown_date,desc, last_shown_date,asc), end_time (integer) and search_id (string) and 1 more. The Parameters table and the Playground on this page list every field.

What does the TikTok Ads Library Search Ads API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a TikTok Ads Library developer account or API key?

No. TikTok Ads Library Search Ads runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for TikTok Ads Library API access separately.