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.
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。