Your Snapchat ad account performance — spend, swipes
snapchat-ads.queryGet spend, impressions and swipes for your whole Snapchat ad account
- 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.queryBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
spend is in MICRO-CURRENCY: 1000000 = 1 unit of the account currency. `swipes` is Snapchat's click. Hourly granularity is capped at a short window (about 7 days) and TOTAL/DAY at roughly 31 days per request — a longer range is an error, not a truncated result
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
ad_account_id | string | Required | UUID | 8adc3db7-8148-4fbf-999c-8d2266369d74 |
| Query parameters | ||||
fields | string | Optional | comma-separated metrics; omitting it returns only impressions and spend | impressions,swipes,spend,video_views,conversion_purchases,screen_time_millis |
end_time | string | Optional | ISO 8601, same alignment rule; exclusive | 2026-07-28T00:00:00-07:00 |
breakdown | string | Optional | campaign | adsquad | ad — returns one stats row per child entity instead of one account total | campaign |
start_time | string | Optional | ISO 8601 WITH offset and aligned to midnight in the AD ACCOUNT's timezone — 2026-06-28T00:00:00-07:00. A non-midnight or wrong-offset value is rejected outright; required for DAY/HOUR | 2026-06-28T00:00:00-07:00 |
granularity | string | Required | TOTAL | DAY | HOUR | LIFETIME | DAY |
view_attribution_window | string | Optional | 1_HOUR | 3_HOUR | 6_HOUR | 1_DAY (default) | 7_DAY | 28_DAY | |
swipe_up_attribution_window | string | Optional | 1_DAY | 7_DAY (default) | 28_DAY | 28_DAY |
- Path parameters
ad_account_idstringRequiredUUID
Example:
8adc3db7-8148-4fbf-999c-8d2266369d74- Query parameters
fieldsstringOptionalcomma-separated metrics; omitting it returns only impressions and spend
Example:
impressions,swipes,spend,video_views,conversion_purchases,screen_time_millisend_timestringOptionalISO 8601, same alignment rule; exclusive
Example:
2026-07-28T00:00:00-07:00breakdownstringOptionalcampaign | adsquad | ad — returns one stats row per child entity instead of one account total
Example:
campaignstart_timestringOptionalISO 8601 WITH offset and aligned to midnight in the AD ACCOUNT's timezone — 2026-06-28T00:00:00-07:00. A non-midnight or wrong-offset value is rejected outright; required for DAY/HOUR
Example:
2026-06-28T00:00:00-07:00granularitystringRequiredTOTAL | DAY | HOUR | LIFETIME
Example:
DAYview_attribution_windowstringOptional1_HOUR | 3_HOUR | 6_HOUR | 1_DAY (default) | 7_DAY | 28_DAY
swipe_up_attribution_windowstringOptional1_DAY | 7_DAY (default) | 28_DAY
Example:
28_DAY
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.query' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.query",
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.query", {
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.