TikTok Top ads API

Read the Top Ads list from TikTok's Creative Center for one country: each row is one ad with rank, title, brand_name, industry, objective, ctr_top_percent, like_count and the video link video_url, for $0.79 per 1,000 calls.

  • No parameter is required: country defaults to US and time_window to 30d
  • One call returns one page, about 20 ads, and next_page_token leads to the next page
  • Failed calls and empty results are not charged.

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

  1. 1Request

    POST /api/v1/social
    {
      "platform": "tiktok",
      "action": "top_ads",
      "params": {}
    }
  2. 2JSON response

    {
      "results": [
        {
          "next_page_token": string,
          "rank": number,
          "title": string,
          "brand_name": …
        },
        …
      ]
    }
  3. 3Rows

    next_page_tokenranktitlebrand_name
    stringnumberstring…
  4. 4CSV

    tiktok-top_ads-sample.csv next_page_token,rank,id,title,url,brand_name,industry,industry_key,objective,objective_key,budget_level,ctr_top_percent,like_count,video_id,duration_sec,duration_seconds,width,height,cover_url,video_url,video_urls,platform

A request with no required parameter (optionally country and time_window) goes in, and the first page of the list comes back. Each ad is one row with rank, title, brand_name, industry, objective, ctr_top_percent, like_count and the video links, listed as a field table and a CSV file.

What data you get

Each row is one top ad. This endpoint has no public real sample yet. The table lists the fields, types and meanings that each row returns, with no values.

FieldTypeMeaning
next_page_tokenstringPage token (hashtag_search / music_search / user_search / sound_videos / comment_replies / shop_category_products / following / shop_products / shop_product_reviews / user_playlists / playlist_videos / user_reposts): pass it back unchanged as page_token on the next request to get the next page; every row of a page carries the same value; valid for 24 hours. Only a page without this field is the last page.
ranknumberRank, starting from 1 (music_chart / shop_hot_products); in search_suggest, the order of the term among the page's related searches. In top_ads, the ad's position on its page, starting from 1 on every page, which is the order TikTok gives.
idstringThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
titlestringTitle. null when the platform has no titles (for example text-only posts).
urlstringLink to the record on the platform.
brand_name—Brand name of the product (shop_search, shop_category_products, shop_products); absent when no brand is listed for the product. In top_ads, the advertiser's brand name; absent when TikTok shows no brand for the ad.
industry—Industry of the ad, as written on the Creative Center page, for example Sports & Outdoor (top_ads).
industry_key—ID of the industry, for example label_28000000000 (top_ads).
objective—Campaign objective of the ad, as written on the page, for example Conversions, Reach, Traffic, Lead Generation or Video Views (top_ads).
objective_key—ID of the campaign objective, for example campaign_objective_conversion (top_ads).
budget_level—Spend level: low, medium or high (top_ads); TikTok gives the level only, not an amount.
ctr_top_percent—CTR rank band (top_ads): the n in "Top n% CTR" on the Creative Center page; the smaller the number, the higher the ad ranks on click-through rate. It is not the click-through rate itself.
like_countnumberLikes. null means the platform or this capability does not disclose it; it is not 0.
video_idstringID of the video the comment belongs to (comment_replies). In top_ads, the ID of the ad's video file; it is not the ID of a TikTok post and cannot be used to call video.
duration_secnumberDuration in seconds, the same value as duration_seconds (both names are returned): the video's length on video rows, the sound's length on music_search, music_chart and music_detail. In top_ads, the length of the ad video, with decimals.
duration_secondsnumberDuration in seconds. null for content that is not video or audio.
widthnumberWidth of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the width of the video frame. In top_ads, the width of the ad video's frame.
heightnumberHeight of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the height of the video frame. In top_ads, the height of the ad video's frame.
cover_url—Link to the post's cover image (photos). In top_ads, the link to the ad video's cover image; it is signed and expires, so download soon if you want to keep it.
video_urlstringWatermark-free video file URL (video_download, mp4). No cookie needed and no IP restriction; expires at expires_at; absent for photo posts. In top_ads, the URL of the ad's video file at 720p; it is signed and expires, so download soon if you want to keep it.
video_urls—File URLs of the ad video at each quality (top_ads): [{quality, url}], with quality such as 720p or 540p. The links are signed and expire, so download soon if you want to keep them.
platformstringSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Use cases

  • See a country's top ad creatives

    Call top_ads with a country, then watch each ad from video_url, with its cover_url and title alongside, to study the creatives on the list.

  • Compare countries

    Call once per country with the same time_window and see which ads and brands lead in each country.

  • Group ads by industry and objective

    Group the rows by industry and objective on your side. The endpoint itself does not filter by either.

  • Find ads with a top CTR rank

    Read ctr_top_percent, where a smaller number means a higher CTR rank, and look at budget_level and like_count next to it.

Limits and gotchas

  • All parameters are optional. country defaults to US and time_window to 30d; 7d and 180d are also valid, and any other value is rejected before any charge.
  • Only 28 countries have a list. A country that is not in the supported list is rejected before any charge.
  • There is no keyword or filter parameter. One call returns one page, about 20 ads; pass next_page_token back as page_token for the next page. A different country or time_window gives a different list.
  • ctr_top_percent is a rank band, not a click-through rate. budget_level is low, medium or high, with no spend amount.
  • cover_url, video_url and video_urls are signed links that expire, so download the files soon. video_id is the ID of the ad's video file, not of a TikTok post, and cannot be used to call video.

Pricing

You pay $0.000792 per call, not per row. One call returns one page, about 20 ads, and each page is one call. Failed calls and empty results are not charged.

CallsCost
10,000$7.92
100,000$79.17
1,000,000$791.67

Totals use the list price per call.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "top_ads",
  "params": {}
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

API reference

See the parameters, response fields, errors and billing for top_ads, and copy the page or open it as Markdown for an AI assistant.

POST

AI prompt

#
Please help me write a data collection script with the EveryInfra TikTok Top ads endpoint (tiktok/top_ads).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to tiktok and action to top_ads, and put the parameters inside params.
- No required parameters.
- Optional parameters:
  - country: The country whose Top Ads you want, default US: AE, AR, AU, BR, CA, CO, DE, ES, FR, GB, ID, IT, JP, KR, MX, MY, NL, PH, PK, RO, SA, SE, SG, TH, TR, US, VN or ZA.
  - page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with country and time_window unchanged.
  - time_window: The period top_ads ranks over: 7d, 30d (default) or 180d. Other values are declined before you are charged (422, no charge). (allowed: 180d / 30d / 7d)
- Returns a list of records. Main fields of each record: next_page_token (Page token (hashtag_search / music_sear…), rank (Rank, starting from 1 (music_chart / sh…), id, title, url, brand_name (Brand name of the product (shop_search,…), industry (Industry of the ad, as written on the C…), industry_key (ID of the industry, for example label_2…), objective (Campaign objective of the ad, as writte…), objective_key (ID of the campaign objective, for examp…), budget_level (Spend level: low, medium or high (top_a…), ctr_top_percent (CTR rank band (top_ads): the n in "Top…); 21 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok.
- Example request body:
{
  "platform": "tiktok",
  "action": "top_ads",
  "params": {}
}
- Price: $0.79 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYestiktokPlatform identifier, fixed value.
actionbodystringYestop_adsCapability identifier, fixed value.
countrybody.paramsstringNo-The country whose Top Ads you want, default US: AE, AR, AU, BR, CA, CO, DE, ES, FR, GB, ID, IT, JP, KR, MX, MY, NL, PH, PK, RO, SA, SE, SG, TH, TR, US, VN or ZA. Other countries have no list and are declined before you are charged (422, no charge).
page_tokenbody.paramsstringNo-Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with country and time_window unchanged. Start at page 1 and fetch the pages one after another, without long gaps. Each page holds about 20 ads and is one call; limit has no effect. TikTok sometimes does not provide later pages; that call returns 503 and is not charged, so retry later with the same page_token. Tokens last 24 hours; the last page has no next_page_token.
time_windowbody.paramsstring (enum)No-The period top_ads ranks over: 7d, 30d (default) or 180d. Other values are declined before you are charged (422, no charge).Allowed values180d30d7d

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "id": "req_…",  "platform": "tiktok",  "action": "top_ads",  "results": [    {      "next_page_token": …,      "rank": …,      "id": …,      "title": …,      "url": …,      "brand_name": …,      "industry": …,      "industry_key": …,      "objective": …,      "objective_key": …,      "budget_level": …,      "ctr_top_percent": …,      "like_count": …,      "video_id": …,      "duration_sec": …,      "duration_seconds": …,      "width": …,      "height": …,      "cover_url": …,      "video_url": …,      "video_urls": …,      "platform": …    }  ],  "next_page_token": …,  "pagination": { … },  "count": …,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
next_page_tokenPage token (hashtag_search / music_search / user_search / sound_videos / comment_replies / shop_category_products / following / shop_products / shop_product_reviews / user_playlists / playlist_videos / user_reposts): pass it back unchanged as page_token on the next request to get the next page; every row of a page carries the same value; valid for 24 hours. Only a page without this field is the last page.
rankRank, starting from 1 (music_chart / shop_hot_products); in search_suggest, the order of the term among the page's related searches. In top_ads, the ad's position on its page, starting from 1 on every page, which is the order TikTok gives.
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
titleTitle. null when the platform has no titles (for example text-only posts).
urlLink to the record on the platform.
brand_nameBrand name of the product (shop_search, shop_category_products, shop_products); absent when no brand is listed for the product. In top_ads, the advertiser's brand name; absent when TikTok shows no brand for the ad.
industryIndustry of the ad, as written on the Creative Center page, for example Sports & Outdoor (top_ads).
industry_keyID of the industry, for example label_28000000000 (top_ads).
objectiveCampaign objective of the ad, as written on the page, for example Conversions, Reach, Traffic, Lead Generation or Video Views (top_ads).
objective_keyID of the campaign objective, for example campaign_objective_conversion (top_ads).
budget_levelSpend level: low, medium or high (top_ads); TikTok gives the level only, not an amount.
ctr_top_percentCTR rank band (top_ads): the n in "Top n% CTR" on the Creative Center page; the smaller the number, the higher the ad ranks on click-through rate. It is not the click-through rate itself.
like_countLikes. null means the platform or this capability does not disclose it; it is not 0.
video_idID of the video the comment belongs to (comment_replies). In top_ads, the ID of the ad's video file; it is not the ID of a TikTok post and cannot be used to call video.
duration_secDuration in seconds, the same value as duration_seconds (both names are returned): the video's length on video rows, the sound's length on music_search, music_chart and music_detail. In top_ads, the length of the ad video, with decimals.
duration_secondsDuration in seconds. null for content that is not video or audio.
widthWidth of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the width of the video frame. In top_ads, the width of the ad video's frame.
heightHeight of the watermark-free video file in pixels (video_download); absent for photo posts. In playlist_videos, user_reposts and user_stories, the height of the video frame. In top_ads, the height of the ad video's frame.
cover_urlLink to the post's cover image (photos). In top_ads, the link to the ad video's cover image; it is signed and expires, so download soon if you want to keep it.
video_urlWatermark-free video file URL (video_download, mp4). No cookie needed and no IP restriction; expires at expires_at; absent for photo posts. In top_ads, the URL of the ad's video file at 720p; it is signed and expires, so download soon if you want to keep it.
video_urlsFile URLs of the ad video at each quality (top_ads): [{quality, url}], with quality such as 720p or 540p. The links are signed and expire, so download soon if you want to keep them.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

FAQ

What does rank mean in the top ads list?

It is the position of the ad on its page, starting from 1 on every page, in the order TikTok gives.

Can I get a second page or more than about 20 ads?

Yes. One call returns one page, about 20 ads. When another page exists, the response includes next_page_token; pass it unchanged as page_token, with the same country and time_window, to get that page. Each page counts as one call. TikTok sometimes does not provide later pages; that call returns 503 and is not charged, and you can retry later with the same page_token or start again from page 1 without page_token. A different country or time_window gives a different list, not more rows of the same one.

How do I read ctr_top_percent?

It is the n in "Top n% CTR" on the Creative Center page. The smaller the number, the higher the ad ranks on click-through rate. It is not the click-through rate itself.

How much does it cost to read the top ads?

It costs $0.000792 per call, or $0.79 per 1,000 calls, billed per call and not per row. Failed calls and empty results are not charged.

You can call the other TikTok endpoints with the same key, such as trending_hashtags to read the trending hashtag list or music_chart to read the music chart, both by country.

Google Analytics needs consent. Privacy