List your business listings — address, hours, category
google-business-profile.locationsList your business's listings with their addresses, hours and categories
- 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/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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
account_id | cadena | Obligatorio | the digits from the account resource name (accounts/123456789) | 123456789 |
| Parámetros de consulta | ||||
filter | cadena | Opcional | e.g. title="Main Street Cafe" | |
pageSize | entero | Opcional | max 100 | 100 |
readMask | cadena | Obligatorio | MANDATORY comma-separated field list — the call fails without it | name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadata |
pageToken | cadena | Opcional | ||
- Parámetros de ruta
account_idcadenaObligatoriothe digits from the account resource name (accounts/123456789)
Ejemplo:
123456789- Parámetros de consulta
filtercadenaOpcionale.g. title="Main Street Cafe"
pageSizeenteroOpcionalmax 100
Ejemplo:
100readMaskcadenaObligatorioMANDATORY comma-separated field list — the call fails without it
Ejemplo:
name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadatapageTokencadenaOpcional
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());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.