Categorization

Get Category Tree

Retrieve the complete category tree as a single-linked list. The category name is rendered depending on the language given in the Accept-Language header. Each list entry has an id and a parent_id linking a category to its parent category (e.g. the category "Online-Shopping" is linked to the parent category "Living"). Categories on the 1st level have a parent_id value set to null.

get/category-tree

Parameters

#/paths/~1catalog/get/parameters/0 — unresolved $ref

Response

parent_idinteger nullable required

ID of the parent category.

idId required— unresolved $ref
nameName required— unresolved $ref

Example response

[
  {
    "id": 82,
    "name": "Living",
    "parent_id": null
  },
  {
    "id": 95,
    "name": "Online-Shopping",
    "parent_id": 82
  }
]