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
- freeZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- 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
Parameter
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
view | Zeichenkette | Optional | Required. Specifies which parts to the Category resource should be returned in the response. | |
filter | Zeichenkette | Optional | Optional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`. | |
pageSize | Ganzzahl | Optional | Optional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. | |
pageToken | Zeichenkette | Optional | Optional. If specified, the next page of categories will be fetched. | |
regionCode | Zeichenkette | Optional | Required. The ISO 3166-1 alpha-2 country code. | |
languageCode | Zeichenkette | Optional | Required. The BCP 47 code of language. | |
- Abfrageparameter
viewZeichenketteOptionalRequired. Specifies which parts to the Category resource should be returned in the response.
filterZeichenketteOptionalOptional. Filter string from user. The only field that supported is `displayName`. Eg: `filter=displayName=foo`.
pageSizeGanzzahlOptionalOptional. How many categories to fetch per page. Default is 100, minimum is 1, and maximum page size is 100.
pageTokenZeichenketteOptionalOptional. If specified, the next page of categories will be fetched.
regionCodeZeichenketteOptionalRequired. The ISO 3166-1 alpha-2 country code.
languageCodeZeichenketteOptionalRequired. The BCP 47 code of language.
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.