List categories for listings
GET
/listings/categories
const url = 'https://acme.mykreezalid.com/api/v1/listings/categories?page=1&limit=25';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/api/v1/listings/categories?page=1&limit=25' \ --header 'Authorization: Basic <credentials>'Returns the listing categories of your marketplace as a flat list, to pick a category_id before you create a listing. The list is paginated with page and limit, without a pagination block in the response.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page number, starting at 1.
limit
integer
Number of results per page (at most 100).
Responses
Section titled “Responses”Your categories
Media typeapplication/json
object
categories
Array<object>
object
id
integer
title
string
page_title
string
description
string
slug
string
listing_count
Number of listings in the category
integer
url
Path of the category page on your marketplace
string
admin_url
Path of the category in your admin panel
string
Example
{ "categories": [ { "id": 4242, "title": "Shoes", "slug": "shoes", "listing_count": 42, "url": "/c/shoes" } ]}Missing or wrong API credentials
The requested page does not exist