List your Snapchat ads — creatives and ad types
snapchat-ads.adsList the ads in your Snapchat ad account with their creatives and types
- 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.adsBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
each ad carries a creative_id and a `type` (SNAP_AD | STORY | COLLECTION | DYNAMIC_SNAP_AD). The media itself is two hops away: GET /creatives/{id} gives the media id, GET /media/{id} the asset — the ad object holds no playable URL
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
ad_account_id | string | Required | 8adc3db7-8148-4fbf-999c-8d2266369d74 | |
| Query parameters | ||||
limit | integer | Optional | 50 | |
cursor | string | Optional | ||
read_deleted_entities | boolean | Optional | ||
- Path parameters
ad_account_idstringRequiredExample:
8adc3db7-8148-4fbf-999c-8d2266369d74- Query parameters
limitintegerOptionalExample:
50cursorstringOptionalread_deleted_entitiesbooleanOptional
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.ads' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.ads",
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.ads", {
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.