List Snapchat ad accounts in your organization
snapchat-ads.accountsList the Snapchat ad accounts in a business organization
- 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.accountsBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
returns each ad account's id, name, currency, timezone and funding sources. This is treg's connection resource picker. All ids across this API are UUIDs, not numbers
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
organization_id | string | Required | UUID from /me/organizations | 8adc3db7-8148-4fbf-999c-8d2266369d74 |
| Query parameters | ||||
limit | integer | Optional | 50 | |
cursor | string | Optional | paging.next_link carries the cursor for the next page | |
- Path parameters
organization_idstringRequiredUUID from /me/organizations
Example:
8adc3db7-8148-4fbf-999c-8d2266369d74- Query parameters
limitintegerOptionalExample:
50cursorstringOptionalpaging.next_link carries the cursor for the next page
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X GET 'https://toolswitch.dev/v1/tools/snapchat-ads.accounts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/snapchat-ads.accounts",
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.accounts", {
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.