/leboncoin/categories

POST /api/leboncoin/categories

Price: 20 credits

Get the leboncoin category tree (id, name, slug, parent and nested subcategories). With include_filters enabled, the root category also carries the full catalog of search filters and their enum values.

How to use it

Fetch the leboncoin category tree. Each category has id, name, slug, parent_id and nested subcategories. Set include_filters=true to also attach the full filter catalog (param, label, filter_type enum/range, unit, options code/label) to the first (root) category; the filter catalog is returned only on that root node, even when a specific 'category' id is requested. Pass a 'category' id to return only that subtree.

Parameters

Request body

Response

Errors

Response headers