Design & media

Scavio Tiktok Ads

Try it

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.

What it does

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.

The skill document

TikTok Ad Library via Scavio

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):

export SCAVIO_API_KEY=sk_live_your_key

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

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:

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.

Related skills

Researches TikTok profiles, videos, hashtags, search, trending content, and Creative Center ads intelligence via the Crawlora API, returning clean JSON. Use when the user wants a TikTok creator's profile/videos, hashtag or keyword search, trending hashtags/videos, or competitor ad analysis from TikTok Top Ads — instead of scraping TikTok or the Creative Center directly.

1 installs

Look up TikTok profiles, search videos and users, explore hashtags, read comments, and traverse the social graph (followers/followings). Eleven endpoints, all at 1 credit per request.

Analyze TikTok creators, TikTok Shop commerce, content, live streams, trends, ads, products, shops, categories, videos, hashtags, music, comments, and audience signals through the KeyAPI REST API using live official docs. Use for influencer discovery, product and seller research, video intelligence,

Discovers TikTok creators and content by geographic location using apidojo's TikTok Location Scraper on Apify. Triggers when the user asks to: find TikTok creators in a specific city, discover local TikTok influencers by location, find content creators posting from a particular place, identify TikTok accounts active in a geographic area, find local micro-influencers by location tag, or build a list of TikTok creators in a target market region. Returns video data, creator username, follower count, verification status, hashtags, and engagement metrics per post. Ideal for local brand campaigns, geo-targeted influencer marketing, and regional market research.

1 installs

Analyzes TikTok hashtag performance, reach, and trending content using apidojo's TikTok scraper on Apify. Triggers when the user asks to: analyze a TikTok hashtag, find trending hashtags on TikTok in a niche, see which hashtags perform best for a content type, compare hashtag reach and total view counts on TikTok, identify viral content under a hashtag, research TikTok hashtag strategy for a campaign, find which hashtags a competitor uses most, or determine the best hashtags to use for a TikTok post. Returns hashtag name, total views, top video stats, top creators, and engagement benchmarks. Ideal for social media managers, content strategists, and TikTok growth consultants.

1 installs