Business Profile categories by GConcept ids
google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-batchgetcategories.batchGet — Returns a list of business categories for the provided language and GConcept ids.
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-batchget预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
view | 字符串 | 可选 | Required. Specifies which parts to the Category resource should be returned in the response. | |
names | 字符串 | 可选 | Required. At least one name must be set. The GConcept ids the localized category names should be returned for. To return details for more than one category, repeat this parameter in the request. | |
regionCode | 字符串 | 可选 | Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language. | |
languageCode | 字符串 | 可选 | Required. The BCP 47 code of language that the category names should be returned in. | |
- 查询参数
view字符串可选Required. Specifies which parts to the Category resource should be returned in the response.
names字符串可选Required. At least one name must be set. The GConcept ids the localized category names should be returned for. To return details for more than one category, repeat this parameter in the request.
regionCode字符串可选Optional. The ISO 3166-1 alpha-2 country code used to infer non-standard language.
languageCode字符串可选Required. The BCP 47 code of language that the category names should be returned in.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-batchget' \
-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-categories-batchget",
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-categories-batchget", {
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 计费,已含服务费。