List your business listings — address, hours, category
google-business-profile.locationsList your business's listings with their addresses, hours and categories
- 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/google-business-profile.locationsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
HOST OVERRIDE: mybusinessbusinessinformation.googleapis.com, NOT this provider's base_url. `name` comes back as locations/{location_id} — that id plus the account id is what the reviews endpoint needs. metadata.mapsUri / newReviewUri are only returned if asked for in readMask
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
account_id | string | Obrigatório | the digits from the account resource name (accounts/123456789) | 123456789 |
| Parâmetros de consulta | ||||
filter | string | Opcional | e.g. title="Main Street Cafe" | |
pageSize | inteiro | Opcional | max 100 | 100 |
readMask | string | Obrigatório | MANDATORY comma-separated field list — the call fails without it | name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadata |
pageToken | string | Opcional | ||
- Parâmetros de caminho
account_idstringObrigatóriothe digits from the account resource name (accounts/123456789)
Exemplo:
123456789- Parâmetros de consulta
filterstringOpcionale.g. title="Main Street Cafe"
pageSizeinteiroOpcionalmax 100
Exemplo:
100readMaskstringObrigatórioMANDATORY comma-separated field list — the call fails without it
Exemplo:
name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadatapageTokenstringOpcional
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.locations' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.locations",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.locations", {
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.