List your business listings — address, hours, category
google-business-profile.locationsList your business's listings with their addresses, hours and categories
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.locationsPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
account_id | 文字列 | 必須 | the digits from the account resource name (accounts/123456789) | 123456789 |
| クエリパラメータ | ||||
filter | 文字列 | 任意 | e.g. title="Main Street Cafe" | |
pageSize | 整数 | 任意 | max 100 | 100 |
readMask | 文字列 | 必須 | MANDATORY comma-separated field list — the call fails without it | name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadata |
pageToken | 文字列 | 任意 | ||
- パスパラメータ
account_id文字列必須the digits from the account resource name (accounts/123456789)
例:
123456789- クエリパラメータ
filter文字列任意e.g. title="Main Street Cafe"
pageSize整数任意max 100
例:
100readMask文字列必須MANDATORY comma-separated field list — the call fails without it
例:
name,title,storefrontAddress,phoneNumbers,websiteUri,regularHours,categories,metadatapageToken文字列任意
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。