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').
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-categories-listPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
view | string | Opcional | Required. Specifies which parts to the Category resource should be returned in the response. | |
filter | string | Opcional | Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`. | |
pageSize | inteiro | Opcional | Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. | |
pageToken | string | Opcional | Optional. If specified, the next page of categories will be fetched. | |
regionCode | string | Opcional | Required. The ISO 3166-1 alpha-2 country code. | |
languageCode | string | Opcional | Required. The BCP 47 code of language. | |
- Parâmetros de consulta
viewstringOpcionalRequired. Specifies which parts to the Category resource should be returned in the response.
filterstringOpcionalOptional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`.
pageSizeinteiroOpcionalOptional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.
pageTokenstringOpcionalOptional. If specified, the next page of categories will be fetched.
regionCodestringOpcionalRequired. The ISO 3166-1 alpha-2 country code.
languageCodestringOpcionalRequired. The BCP 47 code of language.
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.