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
- freeAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
view | cadena | Opcional | Required. Specifies which parts to the Category resource should be returned in the response. | |
filter | cadena | Opcional | Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`. | |
pageSize | entero | Opcional | Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. | |
pageToken | cadena | Opcional | Optional. If specified, the next page of categories will be fetched. | |
regionCode | cadena | Opcional | Required. The ISO 3166-1 alpha-2 country code. | |
languageCode | cadena | Opcional | Required. The BCP 47 code of language. | |
- Parámetros de consulta
viewcadenaOpcionalRequired. Specifies which parts to the Category resource should be returned in the response.
filtercadenaOpcionalOptional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`.
pageSizeenteroOpcionalOptional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.
pageTokencadenaOpcionalOptional. If specified, the next page of categories will be fetched.
regionCodecadenaOpcionalRequired. The ISO 3166-1 alpha-2 country code.
languageCodecadenaOpcionalRequired. The BCP 47 code of language.
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.