List Categories
List Categories
GET
https://api.ocamba.com/v2/adex/categories
Returns a list of Categories
Tip
Searchable field is name.
Sortable fields are id and name.
Filterable fields are id and name.
Query parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/categories" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/categories';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/adex/categories");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 10,
"items": [
{
"id": "IAB1",
"name": "Arts & Entertainment"
},
{
"id": "IAB1-1",
"name": "Books & Literature",
"sub_id": "IAB1"
},
{
"id": "IAB1-2",
"name": "Celebrity Fan/Gossip",
"sub_id": "IAB1"
},
{
"id": "IAB1-3",
"name": "Fine Art",
"sub_id": "IAB1"
},
{
"id": "IAB1-4",
"name": "Humor",
"sub_id": "IAB1"
},
{
"id": "IAB1-5",
"name": "Movies",
"sub_id": "IAB1"
},
{
"id": "IAB1-6",
"name": "Music",
"sub_id": "IAB1"
},
{
"id": "IAB1-7",
"name": "Television",
"sub_id": "IAB1"
},
{
"id": "IAB10",
"name": "Home & Garden"
},
{
"id": "IAB10-1",
"name": "Appliances",
"sub_id": "IAB10"
}
]
}
Responses