Tiktok Ad Library Api logo

Tiktok Ad Library Api

Community
scavio-ai
tiktok-ad-library-api

Search ads running on TikTok by keyword and/or industry, pull the top-performing ads with a performance highlight, and open one ad in full with its objective, engagement, the countries it ran in, its landing page and a playable video. 3 endpoints, 1 credit each, structured JSON.

Overview

Publisherscavio-ai
Repositoryskills
Skill nametiktok-ad-library-api
Stars
67
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by scavio-ai on GitHub. Read the source before you install it.

Installation

Install the Tiktok Ad Library Api AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/scavio-ai/skills/tree/main/skills/tiktok-ad-library-api
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/tiktok-ad-library-api .claude/skills/tiktok-ad-library-api
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tiktok Ad Library Api in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tiktok Ad Library Api on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tiktok Ad Library Api is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

TikTok Ad Library API - Search Ads, Top Ads, Ad Detail

Search the ads running on TikTok by keyword and/or industry, pull the top-performing ads with a written performance highlight, and open one ad in full with its objective, engagement, the countries it ran in, its landing page and a playable video. All endpoints return structured JSON.

When to trigger

Use this skill when the user asks to:

  • Find TikTok ads for a brand, keyword, product or industry
  • See what ads a competitor is running on TikTok and how they perform
  • Pull the top-performing TikTok ads in a niche for creative research or swipe files
  • Get one ad in full: objective, click-through rate, likes, the countries it ran in, its landing page and the video
  • Do paid-social / creative research or ad-intelligence work on TikTok

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. The smallest purchase is 2,500 credits for $25, and monthly plans work out cheaper per credit if the usage is steady rather than one-off.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

Base URL: https://api.scavio.dev. Every TikTok Ads endpoint costs 1 credit.

EndpointCreditsWhat it returns
POST /api/v1/tiktok/ads/search1Ads matching a keyword and/or industry: ad_id, title, brand, objective, click-through rate, likes, and a video cover, with pagination
POST /api/v1/tiktok/ads/top1The top-performing ads, optionally by industry and country: click-through rate, likes, a written performance highlight, and a video cover
POST /api/v1/tiktok/ads/detail1One ad in full: title, brand, objective, click-through rate, likes, comments, shares, the countries it ran in, its landing page, and a playable video URL

Parameters

ads/search

Provide a keyword or an industry (or both).

ParameterTypeDefaultDescription
keywordstring--Keyword to match ad copy and creative by
industrystring--Restrict to a single industry key (e.g. label_22108000000)
countrystringUSTwo-letter country the ad ran in
objectivestring--Restrict to a campaign objective
ad_formatstring--Restrict to a given ad format
periodnumber180Lookback window in days: 7, 30 or 180
order_bystring--Result ordering (e.g. for_you)
pagenumber1Page number (1-100)
limitnumber20Results per page (1-50)

ads/top

ParameterTypeDefaultDescription
industrystring--Restrict to a single industry key
countrystring--Two-letter country the ad ran in
pagenumber1Page number (1-100)
limitnumber20Results per page (1-50)

ads/detail

ParameterTypeDefaultDescription
ad_idstringrequiredThe ad's numeric id, as carried by every search and top result

Scope notes

  • ads/search requires a keyword or an industry - a bare call with neither is rejected.
  • search and top rows carry a video.cover image but not a playable file. To get a downloadable MP4, call ads/detail with the ad_id, which returns video.url.
  • video.url and video.cover links are directly usable but signed with a short expiry - fetch them promptly rather than storing the URL.
  • top returns TikTok's curated top performers, so it does not deep-paginate the way search does.
  • Results are scoped to a country (search defaults to US) and, for search, a lookback period.

Examples

python
import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1. Search ads for a brand in the last 180 days
search = requests.post(f"{BASE}/api/v1/tiktok/ads/search", headers=HEADERS,
    json={"keyword": "nike", "country": "US", "period": 180, "limit": 20}).json()
for ad in search["data"]["ads"]:
    print(ad["ad_id"], ad["ctr"], ad["title"])

# 2. Top-performing ads in an industry
top = requests.post(f"{BASE}/api/v1/tiktok/ads/top", headers=HEADERS,
    json={"industry": "label_22108000000", "country": "US"}).json()

# 3. One ad in full, including a playable video URL, by an id from search
ad_id = search["data"]["ads"][0]["ad_id"]
detail = requests.post(f"{BASE}/api/v1/tiktok/ads/detail", headers=HEADERS,
    json={"ad_id": ad_id}).json()
d = detail["data"]
print(d["brand"], d["objective"], d["countries"], d["video"]["url"])

curl:

bash
curl -s https://api.scavio.dev/api/v1/tiktok/ads/search \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"nike","country":"US","period":180}'

Response shape

Every response uses the envelope { data, response_time, credits_used, credits_remaining }. On search and top, data carries ads[] plus a pagination block; on detail, data is the ad object with a nested video (id, duration, cover, and a playable url).

Guardrails

  • Every TikTok Ads call is 1 credit.
  • Never fabricate ad copy, brands, click-through rates, likes or landing pages. Only return what the API returned.
  • search and top do not include a playable video - only detail returns video.url. Do not claim a downloadable video from a search row.
  • Video and cover URLs expire quickly - fetch promptly rather than storing the link.

Failure handling

  • 400 means an invalid request - most often search called with neither keyword nor industry. Fix and retry.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 404 means the ad id was not found.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 / 503 mean the source is temporarily unavailable - wait a few seconds and retry.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

Frequently asked questions

What does the Tiktok Ad Library Api AI skill do?

Search ads running on TikTok by keyword and/or industry, pull the top-performing ads with a performance highlight, and open one ad in full with its objective, engagement, the countries it ran in, its landing page and a playable video. 3 endpoints, 1 credit each, structured JSON.

Why use Tiktok Ad Library Api on TypingMind?

Because you install it once and use it with any model. Tiktok Ad Library Api is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tiktok Ad Library Api in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/scavio-ai/skills/tree/main/skills/tiktok-ad-library-api. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Tiktok Ad Library Api?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tiktok Ad Library Api?

As many as you like. As long as a model supports skills, you can use Tiktok Ad Library Api with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tiktok Ad Library Api AI skill free?

Yes. It is published on GitHub by scavio-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇