List your Business Profile accounts
google-business-profile.accountsList the Google Business Profile accounts you manage
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.accountsPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
host: mybusinessaccountmanagement.googleapis.com (this provider's base_url). Returns {accounts: [{name: "accounts/123…", accountName, type, role}]}; `name` is the account resource id every other endpoint needs. This is also the connection's health probe and resource picker
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
filter | 文字列 | 任意 | e.g. type=PERSONAL or type=LOCATION_GROUP | |
pageSize | 整数 | 任意 | max 20 | 20 |
pageToken | 文字列 | 任意 | ||
- クエリパラメータ
filter文字列任意e.g. type=PERSONAL or type=LOCATION_GROUP
pageSize整数任意max 20
例:
20pageToken文字列任意
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.accounts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.accounts",
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.accounts", {
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 です。サービス料を含みます。