{"uid":"cap_zgel_u4eomF8q-UTwTlMT","slug":"tiktok-ad-library-search-774dd19d","name":"TikTok Ad Library Search","description":"Search TikTok Top Ads by keyword and filters, or search the public Ads Library by advertiser name.","url":"https://api.socialfetch.dev/v1/tiktok/ad-library/ads/search","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"likes":{"enum":["top-1-20","top-21-40","top-41-60","top-61-80","top-81-100"],"type":"string","description":"Likes percentile filter for Top Ads."},"query":{"type":"string","maxLength":4096,"description":"Optional keyword to search ad titles and content."},"cursor":{"type":"string","minLength":1,"description":"Opaque pagination cursor from a previous response."},"period":{"enum":["7","30","180"],"type":"string","description":"Time window in days for Top Ads."},"region":{"enum":["DZ","AR","AU","AT","AZ","BH","BD","BY","BE","BO","BR","BG","KH","CA","CL","CO","CR","HR","CY","CZ","DK","DO","EC","EG","EE","FI","FR","DE","GR","GT","JO","HU","ID","IQ","IE","IL","IT","JP","KZ","KE","KW","LV","LB","MY","MX","MA","NL","NZ","NG","NO","OM","PK","PA","PY","PE","PH","PL","PT","PR","QA","LT","RO","SA","RS","SG","SK","SI","ZA","KR","ES","LK","SE","CH","TW","TH","TR","AE","GB","US","UY","VN"],"type":"string","description":"Country code for Top Ads results. Defaults to US when omitted."},"orderBy":{"enum":["for-you","impression","play-2s-rate","play-6s-rate","cvr","ctr","like"],"type":"string","description":"Sort metric for Top Ads. Defaults to for-you when omitted."},"adFormat":{"enum":["spark-ads","non-spark-ads"],"type":"string","description":"Ad format filter for Top Ads."},"duration":{"enum":["under-10s","10-20s","20-30s","30-40s","40-50s","over-50s"],"type":"string","description":"Video duration filter for Top Ads."},"industry":{"enum":["apparel-accessories","appliances","apps","baby-kids-maternity","beauty-personal-care","business-services","ecommerce-non-app","education","financial-services","food-beverage","games","health","home-improvement","household-products","life-services","news-entertainment","pets","sports-outdoor","tech-electronics","travel","vehicle-transportation"],"type":"string","description":"Industry filter for Top Ads."},"objective":{"enum":["app-installs","conversions","lead-generation","product-sales","reach","traffic","video-views"],"type":"string","description":"Campaign objective filter for Top Ads."},"adLanguage":{"enum":["en","es","ar","vi","th","de","id","pt","fr","ms","nl","ja","it","ro","zh-Hant","ko"],"type":"string","description":"Ad language filter for Top Ads."},"advertiserName":{"type":"string","maxLength":4096,"minLength":1,"description":"Search the public TikTok Ads Library by advertiser name. When set, results come from the public Ads Library instead of Top Ads."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q0VvRvaIZrYwvNnf_Bmyu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search TikTok Top Ads by keyword, filters, and metrics, or search the public Ads Library by advertiser name.","exampleAgentPrompt":"Search TikTok's Top Ads for beauty and personal care brands in the US over the last 30 days, sorted by impressions, and show me ads matching 'skincare routine'.","exampleUseCases":null,"resultDescription":"Returns a list of TikTok ads matching the search criteria, including ad titles, content, performance metrics (impressions, CTR, CVR, likes), advertiser info, ad format, and a pagination cursor for fetching subsequent pages.","failureModes":["Invalid or unsupported region code returns an error","Invalid enum value for orderBy, period, or adFormat returns a validation error","Empty result set when no ads match the keyword or filters","Expired or invalid pagination cursor causes a bad request error","Rate limiting or quota exceeded returns a 429 error"],"whenToPreferThis":"Use this endpoint when you need to discover and analyze TikTok ads — either top-performing ads filtered by industry, region, duration, format, and engagement metrics, or ads from a specific advertiser via the public Ads Library. Prefer this over general web search when you need structured, filterable TikTok ad data with performance signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:58:20.317Z","isFirstParty":false}