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.

GET/v1/tiktok/ad-library/ads/search
3credits
x-api-keystringheader

API key (`sfk_...`)

Parameters
8
querystringquery

Keyword to search the public TikTok Ads Library.

max 4096 chars

advertiserNamestringquery

Search the public TikTok Ads Library by advertiser name.

min 1 chars · max 4096 chars

advertiserBusinessIdstringquery

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}$

countrystringquery

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

startDatestringquery

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}$

endDatestringquery

Only ads last shown on or before this date (UTC, YYYY-MM-DD, inclusive). Use with `startDate`.

pattern: ^\d{4}-\d{2}-\d{2}$

sortBystringquery

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

cursorstringquery

Opaque pagination cursor from a previous response.

min 1 chars

Response fields
63

Endpoint-specific response payload.

dataquery
string

Keyword query that was evaluated for this response.

dataadvertiserName
stringnullable

Advertiser name filter that was evaluated, when searching by advertiser.

dataresolvedAdvertiserName
stringnullable

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.

dataadvertiserMatches[]name
string

Advertiser name as TikTok lists it.

min 1 chars

dataadvertiserMatches[]businessId
string

TikTok advertiser business ID. Pass it as `advertiserBusinessId`, with this `name` as `advertiserName`, to search only this advertiser.

min 1 chars

datasource
stringnullable

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.

dataads[]id
string

Stable identifier for the ad.

min 1 chars

dataads[]title
stringnullable

Ad title or caption when available.

dataads[]brandName
stringnullable

Brand or advertiser name when available.

dataads[]cost
numbernullable

Relative cost signal when available.

dataads[]ctr
numbernullable

Click-through rate when available.

dataads[]likeCount
integernullable

Like count when available.

≥ 0

dataads[]industryKey
stringnullable

Industry key reported for the ad when available.

dataads[]objective
stringnullable

Campaign objective key when available.

dataads[]url
stringnullable

Public TikTok Ads Library detail URL when available.

dataads[]firstShownAt
stringnullable

ISO-8601 timestamp for when the ad was first shown, when available.

dataads[]lastShownAt
stringnullable

ISO-8601 timestamp for when the ad was last shown, when available.

dataads[]estimatedAudience
stringnullable

Estimated audience band when available.

Video creative when available.

dataads[]videoid
stringnullable

Video id when available.

dataads[]videodurationSeconds
numbernullable

Video duration in seconds when available. Null for results from the public TikTok Ads Library, which does not report duration.

dataads[]videocoverUrl
stringnullable

Cover image URL when available.

dataads[]videowidth
integernullable

Video width in pixels when available.

≥ 0

dataads[]videoheight
integernullable

Video height in pixels when available.

≥ 0

Playback URLs by resolution when available.

dataads[]videourlsp360
stringnullable

360p video URL when available.

dataads[]videourlsp480
stringnullable

480p video URL when available.

dataads[]videourlsp540
stringnullable

540p video URL when available.

dataads[]videourlsp720
stringnullable

720p video URL when available.

dataads[]videourlsp1080
stringnullable

1080p video URL when available.

dataads[]advertiserBusinessId
stringnullable

TikTok business ID of the ad's advertiser when available. Pass it as `advertiserBusinessId` with `advertiserName` to search only that advertiser.

dataads[]format
stringnullable

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.

dataads[]videos[]id
stringnullable

Video id when available.

dataads[]videos[]durationSeconds
numbernullable

Video duration in seconds when available. Null for results from the public TikTok Ads Library, which does not report duration.

dataads[]videos[]coverUrl
stringnullable

Cover image URL when available.

dataads[]videos[]width
integernullable

Video width in pixels when available.

≥ 0

dataads[]videos[]height
integernullable

Video height in pixels when available.

≥ 0

Playback URLs by resolution when available.

dataads[]videos[]urlsp360
stringnullable

360p video URL when available.

dataads[]videos[]urlsp480
stringnullable

480p video URL when available.

dataads[]videos[]urlsp540
stringnullable

540p video URL when available.

dataads[]videos[]urlsp720
stringnullable

720p video URL when available.

dataads[]videos[]urlsp1080
stringnullable

1080p video URL when available.

Image URLs for photo or carousel ads, in display order. Empty for video ads.

dataads[]imageUrls[]
stringoptional

min 1 chars

dataads[]category
stringnullable

Ad category as TikTok labels it, such as `News & Entertainment`, when available.

TikTok's review information for the ad.

dataads[]moderationauditStatus
stringnullable

Review status code exactly as TikTok reports it, such as `1`. TikTok does not document these codes. Null when not reported.

dataads[]moderationrejectionReason
stringnullable

Rejection details as TikTok reports them, when the ad was rejected. Null otherwise.

Pagination information for the current response.

datapagenextCursor
stringnullable

Cursor to pass as `cursor` in the next request when `hasMore` is true; otherwise null.

datapagehasMore
boolean

Whether another page of ads can be requested.

datapagetotalResultsEstimate
integernullable

Estimated total number of matching ads when available.

≥ 0

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

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

metafetchedAt
stringoptional

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.