Search Business Profile categories by name
google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-listcategories.list — Returns a list of business categories. Search will match the category name but not the category ID. Search only matches the front of a category name (that is, 'food' may return 'Food Court' but not 'Fast Food Restaurant').
- 价格
- free按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-list预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
view | 字符串 | 可选 | Required. Specifies which parts to the Category resource should be returned in the response. | |
filter | 字符串 | 可选 | Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`. | |
pageSize | 整数 | 可选 | Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. | |
pageToken | 字符串 | 可选 | Optional. If specified, the next page of categories will be fetched. | |
regionCode | 字符串 | 可选 | Required. The ISO 3166-1 alpha-2 country code. | |
languageCode | 字符串 | 可选 | Required. The BCP 47 code of language. | |
- 查询参数
view字符串可选Required. Specifies which parts to the Category resource should be returned in the response.
filter字符串可选Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`.
pageSize整数可选Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.
pageToken字符串可选Optional. If specified, the next page of categories will be fetched.
regionCode字符串可选Required. The ISO 3166-1 alpha-2 country code.
languageCode字符串可选Required. The BCP 47 code of language.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-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-categories-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-categories-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 计费,已含服务费。