Sources › Social media › TikTok › Get Top Ads
TikTok Top Ads API
Top-performing ads from TikTok Creative Center, filterable by country, period, industry, objective and language.
Request
https://api.zapi.ink/v1/social-media:tiktok-scraper/top-adsSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 hour.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| countryCode | string | query | No | ISO country code. Omit for all countries. 28 are supported — see the filters endpoint Example: ID |
| period | enum: 7 | 30 | 180 | query | No | Trailing window in days. One of 7, 30, 180. Default 7 Example: 7 |
| orderBy | enum: for_you | like | ctr | play_2s_rate | play_6s_rate | impression | query | No | Sort field. Default like Example: like |
| industry | string | query | No | Industry ID from the filters endpoint Example: 27102000000 |
| objective | string | query | No | Campaign objective ID from the filters endpoint Example: 1 |
| adLanguage | string | query | No | Ad language code from the filters endpoint Example: id |
| patternLabel | string | query | No | Creative pattern ID from the filters endpoint Example: 10100100000 |
| page | number | query | No | Page number. Default 1 Example: 1 |
| limit | number | query | No | Ads per page. Default 20, max 20 — the upstream rejects more Example: 20 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads?countryCode=ID&period=7&orderBy=like&industry=27102000000&objective=1&adLanguage=id&patternLabel=10100100000&page=1&limit=20" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads?countryCode=ID&period=7&orderBy=like&industry=27102000000&objective=1&adLanguage=id&patternLabel=10100100000&page=1&limit=20", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads", params={"countryCode":"ID","period":"7","orderBy":"like","industry":"27102000000","objective":"1","adLanguage":"id","patternLabel":"10100100000","page":"1","limit":"20"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:tiktok-scraper", "data": { "ads": [ { "ctr": 0.39, "adId": "7662986225209704455", "cost": 2, "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/ospphM3E3WRTXQlQmBFqAH6DgMcmnBeSfIVE37~tplv-noop.image?dr=18692&refresh_token=44df1c99&x-expires=1788016064&x-signature=4KkPWXKVi5scBIxHd7IibchFgkc%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v1c044g50000d9a8rofog65tj2p7nkj0", "title": "Sekarang bener2 hati-hati bgt nyari produk untuk bayiku, apalagi yang bersentuhan langsung sm kulitnya kaya tissue basah.. kandungan hidden gem di tissue basah ini bikin tenang dan nyaman untuk kulit sensitif bayiku 🥰💖 #tissuebasah #reviewprodukbayi #babynewborn #skincarebaby #momandbaby ", "width": 576, "height": 1024, "videoId": "v1c044g50000d9a8rofog65tj2p7nkj0", "duration": 58.534, "favorited": false, "likeCount": 93293, "video720p": "https://v16m-default.tiktokcdn.com/3470eda2df024203260c7ddf0f664d49/6a92f5c0/video/tos/alisg/tos-alisg-pve-0037c001/oEASsDYejUIKi4DUCnGpvvLReSfqAA2gYEHRRI/?a=0&bti=NTU4QDM1NGA%3D&&bt=628&ft=cApXJCz7ThWHb9GsLGZmo0P&mime_type=video_mp4&rc=Z2k2aGdpPGQ7NWc7NzY8OkBpM246NXc5cnI7PDMzODczNEAzYTMxNGIvNjIxYWA1NmEzYSNna21nMmRjb15hLS1kMWBzcw%3D%3D&vvpl=1&l=20260829170646C9E9A6FD89B8C262F45C&btag=e00048000", "industryId": "12999000000", "industryKey": "label_12999000000", "objectiveKey": "campaign_objective_video_view" }, { "ctr": 0.3, "adId": "7661966199731093522", "cost": 2, "cover": "https://p19-common-sign.tiktokcdn.com/tos-alisg-p-0037/o8RRQFAofAIh2cNVGDjUl2CA9ED4FI0CGfnI6e~tplv-noop.image?dr=18692&refresh_token=ff99ce48&x-expires=1788016086&x-signature=AvQLKKfMfA%2FJHkQ7e%2BrDjAsQ4Sg%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v1c044g50000d98ve47og65u39a44500", "title": "Kalau urusan edit udah deh ngikut ayang aja, especially kalau dia udah pegang Oppo Reno16 Series😏🙏🏻", "width": 576, "height": 1024, "videoId": "v1c044g50000d98ve47og65u39a44500", "duration": 80.5, "favorited": false, "likeCount": 28480, "video720p": "https://v16m-default.tiktokcdn.com/ef51eda4bcd442ea2def12f2ccd2eb2b/6a92f5d6/video/tos/alisg/tos-alisg-pve-0037c001/oUC3A9FozFdJGIfQIUEDe3fAEFklAcRlD4RQCj/?a=0&bti=NTU4QDM1NGA%3D&&bt=924&ft=cApXJCz7ThWHb9GsLGZmo0P&mime_type=video_mp4&rc=OThlaGc6ZDU1Zmc6OjszO0BpMzg3PHg5cjd5PDMzODczNEAuMTUxMi4wNTAxYjU0YS1iYSMtMV4wMmQ0YjVhLS1kMWBzcw%3D%3D&vvpl=1&l=20260829170646C9E9A6FD89B8C262F45C&btag=e00048000", "industryId": "15100000000", "industryKey": "label_15100000000", "objectiveKey": "campaign_objective_reach" }, { "ctr": 0.44, "adId": "7662682799025176593", "cost": 2, "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/okY5QeCUDAMQzZj4LEEhfMFA3eaDdF2C9o109I~tplv-noop.image?dr=18692&refresh_token=316599a2&x-expires=1788016092&x-signature=8TvJKYpIdQzBTFF73fiyXF35m%2Bk%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v14044g50000d8tugnnog65r677rl2u0", "title": "lika liku di bintan 🤭🫠 #HolidaySkincareKit #TravelSkincareRoutine #FamilySkincareKit #TravelKitLABORE ", "width": 576, "height": 1024, "videoId": "v14044g50000d8tugnnog65r677rl2u0", "duration": 86.749, "brandName": "labore", "favorited": false, "likeCount": 28082, "video720p": "https://v16m-default.tiktokcdn.com/0f677ea64f0d7102fae0339fb1c4646e/6a92f5dc/video/tos/alisg/tos-alisg-pve-0037c001/o8oe69iYDEgV872CA6FQoyjeiCfSUFDIEIA5Id/?a=0&bti=NTU4QDM1NGA%3D&&bt=531&ft=cApXJCz7ThWHb9GsLGZmo0P&mime_type=video_mp4&rc=OTo7NmRkaWg1MzNmO2YzaEBpMzV1OnU5cnF4OzMzODczNEAvYzBiYF8xXzQxNl4yNTVfYSNyaTQzMmRrZHFhLS1kMTFzcw%3D%3D&vvpl=1&l=20260829170646C9E9A6FD89B8C262F45C&btag=e00048000", "industryId": "14109000000", "industryKey": "label_14109000000", "objectiveKey": "campaign_objective_reach" }, { "ctr": 0.37, "adId": "7662230477805502472", "cost": 2, "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/oMTpnYiDyADN0oBAiXglbaaEoB5FNIEv0IE8a~tplv-noop.image?dr=18692&refresh_token=759e36d0&x-expires=1788016055&x-signature=%2F2a97zfK3TKHcPqcNykyt6b8Tck%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v1c044g50000d99mg4nog65kda0jodkg", "title": "beneran tercandu-candu boba creamy si lollipop milkita bubble milk tea series baru, karena dibuat dari susu asli New Zealand! yang udah coba kalian tim matcha taro atau thai tea? #Milkita #milkitaboba #milkitabobaseries #milkitabobamilktea ", "width": 576, "height": 1024, "videoId": "v1c044g50000d99mg4nog65kda0jodkg", "duration": 49.867, "favorited": false, "likeCount": 25081, "video720p": "https://v16m-default.tiktokcdn.com/70982560501d269bb1c8bbccac4873a9/6a92f5b7/video/tos/alisg/tos-alisg-pve-0037c001/oIBpIx8GA0TomNQNoBaaN9AXi8avuEYEoilEE/?a=0&bti=NTU4QDM1NGA%3D&&bt=2263&ft=cApXJCz7ThWHb9GsLGZmo0P&mime_type=video_mp4&rc=O2U4OWhpNGU5NGYzNGY8ZkBpamdtZG45cjdwPDMzODczNEAuMi0xYS1gNmMxLWJjM2JgYSNobC1hMmRrZDZhLS1kMWBzcw%3D%3D&vvpl=1&l=20260829170646C9E9A6FD89B8C262F45C&btag=e00048000", "industryId": "27102000000", "industryKey": "label_27102000000", "objectiveKey": "campaign_objective_reach" }, { "ctr": 0.29, "adId": "7667795549778657288", "cost": 2, "cover": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/osw0qiB8ICAu6IONpGiIUPAABDOw9zSWI1f4sl~tplv-noop.image?dr=18692&refresh_token=05c541cc&x-expires=1788016123&x-signature=TV7%2FAEzZfKXvOxutBYd23VIjuwM%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=317596d8&idc=my&VideoID=v14044g50000d930f6vog65jq52otcs0", "title": "Playground dulu, isi energi kemudian! 🤍🥛 Setelah puas eksplor dan bermain, Jasmine selalu ditemani Susu UHT Frisian Flag Nutribrain Omega yang mengandung Omega 3 & 6 untuk anak cermat. Jasmine suka varian Plain yang tidak mengandung gula tambahan (sukrosa). Manisnya berasal dari laktosa, gula alami dari susu. Yuk, temani langkah cermat si kecil dengan Frisian Flag Nutribrain Omega! 💙 #FrisianFlagNutribrainOmega #SobatCermat #NutrisiNikmatTemaniLangkahCermatnya ", "width": 576, "height": 1024, "videoId": "v14044g50000d930f6vog65jq52otcs0", "duration": 117.8, "favorited": false, "likeCount": 21715, "video720p": "https://v16m-default.tiktokcdn.com/f4b39be00384f214067aac909e10dbb5/6a92f5fb/video/tos/alisg/tos-alisg-pve-0037c001/ogQMIgDkjDsjAADUoFSffZnowenIbEYAodA9CD/?a=0&bti=NTU4QDM1NGA%3D&&bt=854&ft=cApXJCz7ThWHb9GsLGZmo0P&mime_type=video_mp4&rc=NTYzOzs0ZWg8ZjZnaWg1NkBpM2ZyOG05cjkzPDMzODczNEAyNTMtLmA2XzUxMzViL19jYSNwcS9uMmRzYzBhLS1kMTFzcw%3D%3D&vvpl=1&l=20260829170646C9E9A6FD89B8C262F45C&btag=e00048000", "industryId": "12102000000", "industryKey": "label_12102000000", "objectiveKey": "campaign_objective_reach" } ], "page": 1, "count": 5, "total": 360, "period": 30, "hasMore": true, "orderBy": "like", "nextPage": 2, "countryCode": "ID" }, "timestamp": "2026-06-13T03:11:01Z" }
Frequently asked questions
How do I call the TikTok Top Ads API?
Send a GET request to https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads with your Zapi key in the x-api-key header. Parameters — optional: countryCode, period, orderBy, industry, objective, adLanguage, patternLabel, page, limit. The response is JSON in the { project, data, timestamp } envelope.
What does the TikTok Top Ads API return?
Top-performing ads from TikTok Creative Center, filterable by country, period, industry, objective and language. The example response has the fields ads, page, count, total, period, hasMore, orderBy, nextPage. Each item in ads has fields such as ctr, adId, cost, cover, title, width, height, videoId.
Is the TikTok Top Ads API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the TikTok Top Ads API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "tiktok-scraper" and endpoint "top-ads".
What other TikTok API endpoints are there?
It has 21 endpoints. Besides Get Top Ads: Get User Profile, Get User Posts, Get Detail Post, Get Post Comments, Get Hashtag Info, Get Hashtag Posts, and 14 more.