TikTok Ads Read
Get TikTok campaign performance metrics including TikTok-specific video and engagement data
POST https://api.adspirer.ai/api/v1/tools/get_tiktok_campaign_performance/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
lookback_days | integer optional | Days to analyze: 7, 14, 30, 60, or 90 default: 30 |
include_recommendations | boolean optional | Include optimization recommendations default: true |
advertiser_id | string optional | TikTok advertiser ID. Required for multi-account users. Get from get_connections_status. |
start_date | string optional | Start date YYYY-MM-DD (overrides lookback_days) |
end_date | string optional | End date YYYY-MM-DD (overrides lookback_days) |
raw_data | boolean optional | If 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 |
query | string optional | Free-text search over campaign name/id/objective/status. |
min_spend | number optional | Only campaigns that spent at least this amount. |
max_spend | number optional | Only campaigns that spent at most this amount. |
min_roas | number optional | Only campaigns with ROAS at or above this. |
max_roas | number optional | Only campaigns with ROAS at or below this. |
min_clicks | integer optional | Only campaigns with at least this many clicks. |
min_impressions | integer optional | Only campaigns with at least this many impressions. |
min_conversions | number optional | Only campaigns with at least this many conversions. |
zero_conversions | boolean optional | true → only campaigns with 0 conversions (find wasted spend). |
sort_by | string optional | Sort by: spend (default), clicks, impressions, conversions, roas, cpc, cpm, ctr, reach, frequency, leads. |
sort_order | string optional | 'desc' (default) or 'asc'. |
offset | integer optional | Pagination offset (snapped to a page boundary). Paging is capped to protect quota — narrow with filters. The response reports the true total. |
limit | integer optional | Campaigns per page (default 25, max 100). The response reports total and has_more. |
{
"arguments": {
"lookback_days": 30,
"include_recommendations": true,
"advertiser_id": "string",
"start_date": "string",
"end_date": "string",
"raw_data": false
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for get_tiktok_campaign_performance)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "get_tiktok_campaign_performance"
}
{
"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": "get_tiktok_campaign_performance"
}
{
"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": "get_tiktok_campaign_performance",
"quota": {
"used": 150,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01",
"upgrade_url": "https://adspirer.ai"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: TikTok Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai