# TikTok Ads Library API on SandBase

> TikTok Ads Library data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/tiktok-ads-library

- Endpoints: 3
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [TikTok Ads Library Ad Details](https://www.sandbase.ai/apis/tiktok-ads-library/ad-details.md): $0.03 per call
  Get detailed information about a specific ad including advertiser info, targeting (location, age, gender), and creative assets.
- [TikTok Ads Library Search Ads](https://www.sandbase.ai/apis/tiktok-ads-library/search-ads.md): $0.06 per call
  Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).
- [TikTok Ads Library Supported Regions](https://www.sandbase.ai/apis/tiktok-ads-library/supported-regions.md): $0.03 per call
  Get the list of supported regions/countries available for filtering in the TikTok Ad Library. Returns European region codes and names that can be passed to search_ads as the region parameter.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
