/citilink/categories

POST /api/citilink/categories

Price: 20 credits

Walk the citilink.ru catalogue tree and return one flat row per category with its id, name, slug, catalogue URL, parent, depth level, number of direct children and curated `compilations`. `seo_title`/`seo_description`/`seo_h1`/`seo_text` marketing copy is included only when `with_seo` is set.

How to use it

Use this to turn a shopper's phrase into a `category` slug for citilink/categories/products, which will not accept a name. Rows come back depth-first with `level` and `parent_alias` set, so the tree is rebuildable without a second call. Only rows with `is_listing` hold products, so pick a listing row or walk down to its children before calling citilink/categories/products. `compilations` lists a row's curated sub-collections (empty on broad, non-listing sections; populated on listing rows). `seo_title`/`seo_description`/`seo_h1`/`seo_text` are null on every row unless `with_seo` is set — an absent value with `with_seo` unset means it was not requested, not that the category has no copy.

Parameters

Request body

Response

Errors

Response headers