Search TikTok Ad Library ads
Search the public TikTok Ads Library by keyword or advertiser name. Pass `sortBy=last-shown` for the most recently shown ads first.
Headers
Get your API keyAPI key (`sfk_...`)
Keyword to search the public TikTok Ads Library.
max 4096 chars
Search the public TikTok Ads Library by advertiser name.
min 1 chars · max 4096 chars
TikTok advertiser business ID, from `advertiserMatches[].businessId` or an ad's `advertiserBusinessId`. Pins an advertiser search to that exact advertiser. Requires `advertiserName`.
pattern: ^\d{1,32}$
Country the ad was shown in (its targeting or delivery country, not the advertiser's). Case-insensitive. Omit it, or use `ALL`, for every supported country. The US isn't supported.
one of: ALL, AT, BE, BG, BR, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK, TR
Only ads last shown on or after this date (UTC, YYYY-MM-DD). Use with `endDate`. Without both, the search covers the last 30 days. A narrower window means fewer pages to read.
pattern: ^\d{4}-\d{2}-\d{2}$
Only ads last shown on or before this date (UTC, YYYY-MM-DD, inclusive). Use with `startDate`.
pattern: ^\d{4}-\d{2}-\d{2}$
Order of the ads. `last-shown` lists the most recently shown ads first, by the day each ad was last shown: ads of an earlier day keep TikTok's order within that day, and today's ads are sorted by time within each page. When the full order isn't available, each page is still sorted by last-shown time, newest first, but not across pages; ads without a last-shown time come last. Results are TikTok's live data, so an ad shown again while you page can move. A page can be empty while `hasMore` is true; a page with no ads costs no credits. `relevance` (the default) is TikTok's own order for a keyword search. An advertiser search comes newest first either way; pass `last-shown` to have each page sorted when the full order isn't available.
one of: relevance, last-shown
Opaque pagination cursor from a previous response.
min 1 chars
Endpoint-specific response payload.
Keyword query that was evaluated for this response.
Advertiser name filter that was evaluated, when searching by advertiser.
Advertiser TikTok resolved `advertiserName` to, when searching by advertiser and a match was found.
Advertisers TikTok matched to `advertiserName`. Empty for keyword searches or when none are reported.
Advertiser name as TikTok lists it.
min 1 chars
TikTok advertiser business ID. Pass it as `advertiserBusinessId`, with this `name` as `advertiserName`, to search only this advertiser.
min 1 chars
Listing source when reported. `tiktok_ads_library` is the public Ads Library.
one of: tiktok_ads_library, top_ads, null
Ads returned for the requested search. This array may be empty when no ads match.
Stable identifier for the ad.
min 1 chars
Ad title or caption when available.
Brand or advertiser name when available.
Relative cost signal when available.
Click-through rate when available.
Like count when available.
≥ 0
Industry key reported for the ad when available.
Campaign objective key when available.
Public TikTok Ads Library detail URL when available.
ISO-8601 timestamp for when the ad was first shown, when available.
ISO-8601 timestamp for when the ad was last shown, when available.
Estimated audience band when available.
Video creative when available.
Video id when available.
Video duration in seconds when available. Null for results from the public TikTok Ads Library, which does not report duration.
Cover image URL when available.
Video width in pixels when available.
≥ 0
Video height in pixels when available.
≥ 0
Playback URLs by resolution when available.
360p video URL when available.
480p video URL when available.
540p video URL when available.
720p video URL when available.
1080p video URL when available.
TikTok business ID of the ad's advertiser when available. Pass it as `advertiserBusinessId` with `advertiserName` to search only that advertiser.
Creative format: `video` for video ads, `images` for photo or carousel ads. Null when no creative is reported.
one of: video, images, null
Every video creative reported for the ad. `video` is the first entry. Empty for image ads.
Video id when available.
Video duration in seconds when available. Null for results from the public TikTok Ads Library, which does not report duration.
Cover image URL when available.
Video width in pixels when available.
≥ 0
Video height in pixels when available.
≥ 0
Playback URLs by resolution when available.
360p video URL when available.
480p video URL when available.
540p video URL when available.
720p video URL when available.
1080p video URL when available.
Image URLs for photo or carousel ads, in display order. Empty for video ads.
min 1 chars
Ad category as TikTok labels it, such as `News & Entertainment`, when available.
TikTok's review information for the ad.
Review status code exactly as TikTok reports it, such as `1`. TikTok does not document these codes. Null when not reported.
Rejection details as TikTok reports them, when the ad was rejected. Null otherwise.
Pagination information for the current response.
Cursor to pass as `cursor` in the next request when `hasMore` is true; otherwise null.
Whether another page of ads can be requested.
Estimated total number of matching ads when available.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
one of: true
When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.
Code example
curl "https://api.socialfetch.dev/v1/tiktok/ad-library/ads/search?advertiserName=Nike" \
-H "x-api-key: $SOCIALFETCH_API_KEY"Responses
TikTok Ad Library search results.
Ad detail
Get a single TikTok Ad Library or Top Ads creative by ad id or public ad URL, with its delivery by country and the advertiser's targeting (age groups,…
Instagram API reference
Public Instagram profiles, media, followers, following, likers, stories, highlights, comments, transcripts, hashtags, locations, audio, trending Reels and search over REST with one consistent shape — one API key, no Graph app review.