Available listing attributes by category and country
google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-listattributes.list — Returns the list of attributes that would be available for a location with the given primary category and country.
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-listPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
parent | 文字列 | 任意 | Optional. Resource name of the location to look up available attributes. If this field is set, `category_name`, `region_code`, `language_code` and `show_all` are not required and must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`). | |
showAll | 真偽値 | 任意 | Optional. If set to true, metadata for all available attributes are returned, disregarding `parent` and `category_name` fields. `language_code` and `region_code` are required when `show_all` is set to true. | |
pageSize | 整数 | 任意 | How many attributes to include per page. Default is 200, minimum is 1. | |
pageToken | 文字列 | 任意 | If specified, the next page of attribute metadata is retrieved. | |
regionCode | 文字列 | 任意 | Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if `parent` is not set. | |
categoryName | 文字列 | 任意 | Optional. The primary category stable ID to find available attributes. Must be of the format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if `parent` is not set and `show_all` is false. | |
languageCode | 文字列 | 任意 | Optional. The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English. | |
- クエリパラメータ
parent文字列任意Optional. Resource name of the location to look up available attributes. If this field is set, `category_name`, `region_code`, `language_code` and `show_all` are not required and must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`).
showAll真偽値任意Optional. If set to true, metadata for all available attributes are returned, disregarding `parent` and `category_name` fields. `language_code` and `region_code` are required when `show_all` is set to true.
pageSize整数任意How many attributes to include per page. Default is 200, minimum is 1.
pageToken文字列任意If specified, the next page of attribute metadata is retrieved.
regionCode文字列任意Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if `parent` is not set.
categoryName文字列任意Optional. The primary category stable ID to find available attributes. Must be of the format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if `parent` is not set and `show_all` is false.
languageCode文字列任意Optional. The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English.
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list",
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.x.businessinformation-mybusinessbusinessinformation-attributes-list", {
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 です。サービス料を含みます。