Sources › Social media › TikTok › Get Top Ads Filters

TikTok Top Ads Filters API

The country, industry, objective, language, pattern and period ids the top-ads filters accept.

TikTokGET /top-ads-filtersAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads-filters

Send 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 day.

Parameters

No parameters. Call it as is.

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads-filters" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads-filters", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads-filters",
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "social-media:tiktok-scraper",
  "data": {
    "periods": [
      {
        "id": "7",
        "key": "seven_day",
        "name": "Last 7 days"
      },
      {
        "id": "30",
        "key": "thirty_day",
        "name": "Last 30 days"
      },
      {
        "id": "180",
        "key": "half_year",
        "name": "Last 180 days"
      }
    ],
    "patterns": [
      {
        "id": "10100100000",
        "key": "pattern_label_10100100000",
        "name": "pattern_label_10100100000"
      },
      {
        "id": "10100101000",
        "key": "pattern_label_10100101000",
        "name": "pattern_label_10100101000"
      },
      {
        "id": "10102100000",
        "key": "pattern_label_10102100000",
        "name": "pattern_label_10102100000"
      },
      {
        "id": "10102101000",
        "key": "pattern_label_10102101000",
        "name": "pattern_label_10102101000"
      },
      {
        "id": "10102102000",
        "key": "pattern_label_10102102000",
        "name": "pattern_label_10102102000"
      },
      {
        "id": "10102103000",
        "key": "pattern_label_10102103000",
        "name": "pattern_label_10102103000"
      },
      {
        "id": "10102104000",
        "key": "pattern_label_10102104000",
        "name": "pattern_label_10102104000"
      },
      {
        "id": "10101102000",
        "key": "pattern_label_10101102000",
        "name": "pattern_label_10101102000"
      }
    ],
    "countries": [
      {
        "id": "AR",
        "key": "AR",
        "name": "Argentina"
      },
      {
        "id": "AU",
        "key": "AU",
        "name": "Australia"
      },
      {
        "id": "BR",
        "key": "BR",
        "name": "Brazil"
      },
      {
        "id": "CA",
        "key": "CA",
        "name": "Canada"
      },
      {
        "id": "CO",
        "key": "CO",
        "name": "Colombia"
      },
      {
        "id": "FR",
        "key": "FR",
        "name": "France"
      },
      {
        "id": "DE",
        "key": "DE",
        "name": "Germany"
      },
      {
        "id": "ID",
        "key": "ID",
        "name": "Indonesia"
      }
    ],
    "industries": [
      {
        "id": "12105000000",
        "key": "label_12105000000",
        "name": "Baby Shoes",
        "parentId": "12000000000"
      },
      {
        "id": "15106000000",
        "key": "label_15106000000",
        "name": "Network Products",
        "parentId": "15000000000"
      },
      {
        "id": "25302000000",
        "key": "label_25302000000",
        "name": "Casino",
        "parentId": "25000000000"
      },
      {
        "id": "17103000000",
        "key": "label_17103000000",
        "name": "Hotels & Accommodation",
        "parentId": "17000000000"
      },
      {
        "id": "11999000000",
        "key": "label_11999000000",
        "name": "Other Vehicle & Transportation",
        "parentId": "11000000000"
      },
      {
        "id": "24104000000",
        "key": "label_24104000000",
        "name": "Electronics & Electrical",
        "parentId": "24000000000"
      },
      {
        "id": "15102000000",
        "key": "label_15102000000",
        "name": "Computers Components",
        "parentId": "15000000000"
      },
      {
        "id": "25000000000",
        "key": "label_25000000000",
        "name": "Games"
      }
    ],
    "objectives": [
      {
        "id": "1",
        "key": "campaign_objective_traffic",
        "name": "Traffic",
        "hasConversion": false
      },
      {
        "id": "2",
        "key": "campaign_objective_app_install",
        "name": "App Installs",
        "hasConversion": true
      },
      {
        "id": "3",
        "key": "campaign_objective_conversion",
        "name": "Conversions",
        "hasConversion": true
      },
      {
        "id": "4",
        "key": "campaign_objective_video_view",
        "name": "Video Views",
        "hasConversion": false
      },
      {
        "id": "5",
        "key": "campaign_objective_reach",
        "name": "Reach",
        "hasConversion": false
      },
      {
        "id": "8",
        "key": "campaign_objective_lead_generation",
        "name": "Lead Generation",
        "hasConversion": true
      },
      {
        "id": "15",
        "key": "campaign_objective_product_sales",
        "name": "Product sales",
        "hasConversion": false
      }
    ],
    "adLanguages": [
      {
        "id": "en",
        "key": "language_en",
        "name": "language_en"
      },
      {
        "id": "es",
        "key": "language_es",
        "name": "language_es"
      },
      {
        "id": "ar",
        "key": "language_ar",
        "name": "language_ar"
      },
      {
        "id": "vi",
        "key": "language_vi",
        "name": "language_vi"
      },
      {
        "id": "th",
        "key": "language_th",
        "name": "language_th"
      },
      {
        "id": "de",
        "key": "language_de",
        "name": "language_de"
      },
      {
        "id": "id",
        "key": "language_id",
        "name": "language_id"
      },
      {
        "id": "pt",
        "key": "language_pt",
        "name": "language_pt"
      }
    ]
  },
  "timestamp": "2026-06-13T03:11:01Z"
}

Frequently asked questions

How do I call the TikTok Top Ads Filters API?

Send a GET request to https://api.zapi.ink/v1/social-media:tiktok-scraper/top-ads-filters with your Zapi key in the x-api-key header. It takes no parameters. The response is JSON in the { project, data, timestamp } envelope.

What does the TikTok Top Ads Filters API return?

The country, industry, objective, language, pattern and period ids the top-ads filters accept. The example response has the fields periods, patterns, countries, industries, objectives, adLanguages. Each item in periods has fields such as id, key, name.

Is the TikTok Top Ads Filters 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 Filters 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-filters".

What other TikTok API endpoints are there?

It has 21 endpoints. Besides Get Top Ads Filters: Get User Profile, Get User Posts, Get Detail Post, Get Post Comments, Get Hashtag Info, Get Hashtag Posts, and 14 more.