list_tiktok_pixels

TikTok Ads Read

List the TikTok Pixels on the advertiser and, for each one, the exact conversion events it can optimize toward

Endpoint

POST https://api.adspirer.ai/api/v1/tools/list_tiktok_pixels/execute

Headers

Description

List the TikTok Pixels on the advertiser and, for each one, the exact conversion events it can optimize toward. Call this BEFORE creating any conversion campaign (WEB_CONVERSIONS): it returns the NUMERIC `pixel_id` that TikTok requires (not the alphanumeric Pixel Code, which TikTok rejects) and the valid `optimization_event` values for that pixel, so you never have to guess either. Also flags pixels that have no events configured yet and therefore cannot be used for conversion optimization. Use when a customer asks 'which pixel should I use', hits a pixel or optimization_event rejection, or wants to run conversion ads.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
advertiser_idstring optionalTikTok advertiser ID. Required for multi-account users. Get from list_connected_accounts.
pageinteger optionalPage number (default 1). default: 1
page_sizeinteger optionalResults per page. TikTok caps this endpoint at 20. default: 20

Example request

{
  "arguments": {
    "advertiser_id": "string",
    "page": 1,
    "page_size": 20
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for list_tiktok_pixels)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "list_tiktok_pixels"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "list_tiktok_pixels"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "list_tiktok_pixels",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai