explain_tiktok_anomaly

TikTok Ads Read

Explain why a TikTok metric changed during a specific period

Endpoint

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

Headers

Description

Explain why a TikTok metric changed during a specific period. Uses statistical analysis and factor detection. Supported metrics: roas, ctr, cpc, cpm, conversions, conversion_rate, hook_rate, video_completion_rate, engagement_rate Returns: current value vs historical averages, deviation %, contributing factors (CPM change, CTR change, hook rate change, engagement change, campaign structure changes), assessment, recommendations. When to use: "Why did my TikTok CTR drop?", "Explain TikTok performance change", "What happened to my TikTok ROAS?" Parameters: - metric: REQUIRED — which metric to analyze - period_start/period_end: REQUIRED — YYYY-MM-DD dates for the anomaly period (max 30 days)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
metricstring optionalMetric: roas, ctr, cpc, cpm, conversions, hook_rate, engagement_rate default: "ctr"
period_startstring requiredAnomaly period start YYYY-MM-DD
period_endstring requiredAnomaly period end YYYY-MM-DD
advertiser_idstring optionalTikTok advertiser ID. Required for multi-account users. Get from list_connected_accounts.
raw_databoolean optionalIf true, return ONLY raw metrics as a JSON code block (no severity labels, suggested bids/budgets, industry benchmarks, or optimization recommendations). Use when you run your own attribution model or want to minimize token usage. default: false

Example request

{
  "arguments": {
    "period_start": "string",
    "period_end": "string",
    "metric": "ctr",
    "advertiser_id": "string",
    "raw_data": false
  }
}

Example responses

200 — Success

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

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": "explain_tiktok_anomaly"
}

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": "explain_tiktok_anomaly",
  "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