List Categories
curl --request GET \
--url https://api.orbbit.co/v1/branded-foods/categories \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbbit.co/v1/branded-foods/categories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbbit.co/v1/branded-foods/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"category": "Candy",
"product_count": 41210
},
{
"category": "Cheese",
"product_count": 23874
}
]
}{
"error": {
"type": "unauthorized",
"message": "Missing or malformed Authorization: Bearer header"
}
}{
"error": {
"type": "forbidden",
"message": "This key is not scoped to search-branded-foods"
}
}Branded Food
List Categories
Every category a search can filter on, with how many products carry it, largest first.
Requires the search-branded-foods scope.
GET
/
v1
/
branded-foods
/
categories
List Categories
curl --request GET \
--url https://api.orbbit.co/v1/branded-foods/categories \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbbit.co/v1/branded-foods/categories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbbit.co/v1/branded-foods/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"category": "Candy",
"product_count": 41210
},
{
"category": "Cheese",
"product_count": 23874
}
]
}{
"error": {
"type": "unauthorized",
"message": "Missing or malformed Authorization: Bearer header"
}
}{
"error": {
"type": "forbidden",
"message": "This key is not scoped to search-branded-foods"
}
}