TikTok ad accounts this connection manages
tiktok-ads.accountsList the TikTok ad accounts this connection can manage
- Price
- freeAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tiktok-ads.accountsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
the connection resource picker: returns data.list[] of {advertiser_id, advertiser_name}. Every other endpoint needs one of these advertiser_ids. Ids are strings — long enough to lose precision if parsed as a JSON number
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
app_id | cadena | Obligatorio | the developer app id — this endpoint authenticates with app_id + secret ALONGSIDE the Access-Token header, unlike every other endpoint here | 7000000000000000000 |
secret | cadena | Obligatorio | the app secret. Because it is a request parameter rather than a header, treg must bind it as a secret param on the provisioned tool; it must never be handed to an agent | |
- Parámetros de consulta
app_idcadenaObligatoriothe developer app id — this endpoint authenticates with app_id + secret ALONGSIDE the Access-Token header, unlike every other endpoint here
Ejemplo:
7000000000000000000secretcadenaObligatoriothe app secret. Because it is a request parameter rather than a header, treg must bind it as a secret param on the provisioned tool; it must never be handed to an agent
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/tiktok-ads.accounts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tiktok-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/tiktok-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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.