TikTok ad accounts this connection manages
tiktok-ads.accountsList the TikTok ad accounts this connection can manage
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- 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 | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
app_id | string | Obrigatório | the developer app id — this endpoint authenticates with app_id + secret ALONGSIDE the Access-Token header, unlike every other endpoint here | 7000000000000000000 |
secret | string | Obrigatório | 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_idstringObrigatóriothe developer app id — this endpoint authenticates with app_id + secret ALONGSIDE the Access-Token header, unlike every other endpoint here
Exemplo:
7000000000000000000secretstringObrigatóriothe 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
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.