Meta ad accounts you can access
meta-ads.accountsList the Meta ad accounts you can access, with their names and currencies
- 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
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/meta-ads.accounts?limit=2PreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
`id` comes back prefixed — act_1234567890 — and that PREFIXED form is what the other endpoints' path takes; account_id is the bare number. Money fields (amount_spent, balance) are strings in the account currency's MINOR unit (cents). This is also treg's connection resource picker
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
limit | inteiro | Opcional | 100 | |
fields | string | Obrigatório | id,name,account_id,account_status,currency,timezone_name,amount_spent,balance | |
- Parâmetros de consulta
limitinteiroOpcionalExemplo:
100fieldsstringObrigatórioExemplo:
id,name,account_id,account_status,currency,timezone_name,amount_spent,balance
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ads.accounts?limit=2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/meta-ads.accounts?limit=2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/meta-ads.accounts?limit=2", {
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.