List your business listings — address, hours, category
google-business-profile.locationsList your business's listings with their addresses, hours and categories
- Price
- freeZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.locationsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
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
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
account_id | Zeichenkette | Erforderlich | the digits from the account resource name (accounts/123456789) | 123456789 |
| Abfrageparameter | ||||
filter | Zeichenkette | Optional | e.g. title="Main Street Cafe" | |
pageSize | Ganzzahl | Optional | max 100 | 100 |
readMask | Zeichenkette | Erforderlich | MANDATORY comma-separated field list — the call fails without it | name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadata |
pageToken | Zeichenkette | Optional | ||
- Pfadparameter
account_idZeichenketteErforderlichthe digits from the account resource name (accounts/123456789)
Beispiel:
123456789- Abfrageparameter
filterZeichenketteOptionale.g. title="Main Street Cafe"
pageSizeGanzzahlOptionalmax 100
Beispiel:
100readMaskZeichenketteErforderlichMANDATORY comma-separated field list — the call fails without it
Beispiel:
name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadatapageTokenZeichenketteOptional
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.