Meta Ads Read
User wants to see their Meta ad creatives, ad copy, media URLs, or creative performance
POST https://api.adspirer.ai/api/v1/tools/get_meta_ad_creatives/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 |
|---|---|---|
start_date | string optional | Start date (YYYY-MM-DD). If provided with end_date, overrides lookback_days for custom date range queries. |
end_date | string optional | End date (YYYY-MM-DD). If provided with start_date, overrides lookback_days for custom date range queries. |
date_range | string optional | Date range preset: 'last_7_days', 'last_14_days', 'last_30_days', 'last_60_days', 'last_90_days'. Overrides lookback_days. Ignored if start_date/end_date are provided. |
raw_data | boolean optional | If true, return ONLY raw metrics as a JSON code block (spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, ROAS by campaign/ad/date). Strips severity labels, suggested bids/budgets, industry benchmarks, and optimization recommendations. Use when you run your own attribution model or want to minimize token usage. default: false |
campaign_id | string optional | Filter to specific campaign ID (optional) |
ad_set_id | string optional | Filter to specific ad set ID (optional) |
ad_account_id | string optional | Meta Ad Account ID. Required for multi-account users. Get from get_connections_status. |
lookback_days | integer optional | Number of days to analyze (7, 14, 30, 60, or 90 days). Default is 30 days. default: 30 |
limit | integer optional | Maximum number of ads to return per page (default 20, max 50). Use with offset for pagination. default: 20 |
offset | integer optional | Number of ads to skip for pagination (default 0). Use with limit to page through results. default: 0 |
ad_ids | array optional | Return only these ad IDs (numeric Meta ad IDs, up to 50). An ad with no cached performance rows for the window is read live from Meta and returned with its creative and status, without performance numbers. IDs that are not ads of this ad account are listed as not found. Leave it out to list all ads: an empty list is refused. |
ad_id | string optional | One ad ID (numeric). Same as ad_ids with one entry. |
{
"arguments": {
"start_date": "string",
"end_date": "string",
"date_range": "string",
"raw_data": false,
"campaign_id": "string",
"ad_set_id": "string"
}
}
{
"success": true,
"data": {
"text": "(tool-specific textual output for get_meta_ad_creatives)",
"quota": {
"used": 42,
"limit": 150,
"tier": "plus",
"period_end": "2026-05-01"
}
},
"tool": "get_meta_ad_creatives"
}
{
"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_meta_ad_creatives"
}
{
"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_meta_ad_creatives",
"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
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai