Skip to content

List categories for listings

GET
/listings/categories
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.

page
integer
default: 1 >= 1

Page number, starting at 1.

limit
integer
default: 25 >= 1 <= 100

Number of results per page (at most 100).

Your categories

Media typeapplication/json
object
categories
Array<object>
object
id
integer
title
string
page_title
string
nullable
description
string
nullable
slug
string
nullable
listing_count

Number of listings in the category

integer
nullable
url

Path of the category page on your marketplace

string
nullable
admin_url

Path of the category in your admin panel

string
nullable

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