One Snapchat campaign's performance — spend, swipes
snapchat-ads.campaign.statsGet spend, impressions and swipes for one Snapchat campaign
- Price
- freeAt list price
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/snapchat-ads.campaign.statsBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
identical shape to the account-level report, scoped to one campaign; /adsquads/{id}/stats and /ads/{id}/stats are the same again further down. LIFETIME granularity ignores start_time/end_time and returns the campaign's all-time totals
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
campaign_id | string | Required | UUID from the campaigns list | 92e1c28a-a331-45b4-8c26-fd3e0eea8c39 |
| Query parameters | ||||
fields | string | Optional | impressions,swipes,spend,conversion_purchases,attachment_total_view_time_millis | |
end_time | string | Optional | 2026-07-28T00:00:00-07:00 | |
breakdown | string | Optional | adsquad | ad — one row per child of this campaign | adsquad |
start_time | string | Optional | ISO 8601 aligned to ad-account-timezone midnight | 2026-06-28T00:00:00-07:00 |
granularity | string | Required | TOTAL | DAY | HOUR | LIFETIME | TOTAL |
swipe_up_attribution_window | string | Optional | 7_DAY | |
- Path parameters
campaign_idstringRequiredUUID from the campaigns list
Example:
92e1c28a-a331-45b4-8c26-fd3e0eea8c39- Query parameters
fieldsstringOptionalExample:
impressions,swipes,spend,conversion_purchases,attachment_total_view_time_millisend_timestringOptionalExample:
2026-07-28T00:00:00-07:00breakdownstringOptionaladsquad | ad — one row per child of this campaign
Example:
adsquadstart_timestringOptionalISO 8601 aligned to ad-account-timezone midnight
Example:
2026-06-28T00:00:00-07:00granularitystringRequiredTOTAL | DAY | HOUR | LIFETIME
Example:
TOTALswipe_up_attribution_windowstringOptionalExample:
7_DAY
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/snapchat-ads.campaign.stats", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.