List your business listings — address, hours, category
google-business-profile.locationsList your business's listings with their addresses, hours and categories
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.locationsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
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 | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
account_id | string | Required | the digits from the account resource name (accounts/123456789) | 123456789 |
| Query parameters | ||||
filter | string | Optional | e.g. title="Main Street Cafe" | |
pageSize | integer | Optional | max 100 | 100 |
readMask | string | Required | MANDATORY comma-separated field list — the call fails without it | name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadata |
pageToken | string | Optional | ||
- Path parameters
account_idstringRequiredthe digits from the account resource name (accounts/123456789)
Example:
123456789- Query parameters
filterstringOptionale.g. title="Main Street Cafe"
pageSizeintegerOptionalmax 100
Example:
100readMaskstringRequiredMANDATORY comma-separated field list — the call fails without it
Example:
name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadatapageTokenstringOptional
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.