Get categories for a businesses
GET/api/v2/businesses/:business_id/categories
Get categories for a businesses
Request
Path Parameters
Query Parameters
Return the corresponding live category instead of the requested category
Returns an object representing the list of translations in the available languages for the requested category. See example on the right.
If with_names
is true, the translations will appear in the field names
Returns an array of strings representing the list of country codes in which the requested category is available.
If with_countries
is true, the country list will appear in the field countries
Possible values: [fr
, en
, es
, it
, pt-br
, de
, ar
]
Language to get the category name. If not given, the user's language is used.
Responses
- 200
- 400
- 401
- 403
- 404
Get the detailed category information for a businesses categories
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
categories
object[]
required
List of categories
Category id
Unique category id. This is the id you should pass in business.categories array when creating/updating a business.
Category name in given language or user's language
names
object[]
Category names translated for available languages
If with_names
is true
Translated category name
Available language in the application
State of category ( OK or DEPRECATED )
Boolean indicating if the business long description can be pushed to GMB when the business belongs to this category
Array of strings representing the list of country codes in which the category is available
If with_countries
is true
Live category id to which the category is mapped (deprecated categories are mapped to the closest category).
{
"categories": [
{
"id": 42,
"gmb_id": "gcid:climbing_gym",
"name": "Cabinet dexpertise comptable",
"names": [
{
"name": "string",
"lang": "FR"
}
],
"state": "OK",
"block_push_long_description_on_gmb": false,
"countries": [
"FR",
"GB",
"IT",
"ES"
],
"live_id": "gcid:sport_club"
}
]
}