ZenodeZenode
Reference

Category

Category objects

Categories are hierarchical; a category's slug is its full root→leaf path (see Identifiers).

CategoryRef

The lightweight category reference embedded in part results and match responses.

JSON
1{
2 "slug": "amplifiers/operational-amplifiers",
3 "name": "Operational Amplifiers",
4 "path": [
5 {
6 "slug": "amplifiers",
7 "name": "Amplifiers"
8 },
9 {
10 "slug": "amplifiers/operational-amplifiers",
11 "name": "Operational Amplifiers"
12 }
13 ]
14}
FieldTypeNotes
slugstringFull root→leaf path slug — the public identifier
namestringThis category's own (leaf) display name
path{slug,name}[]Ancestry from root to this category, inclusive — for breadcrumbs

CategoryNode

A node returned when browsing the tree (GET /v1/categories) — one entry per category at a level.

JSON
1{
2 "slug": "amplifiers/operational-amplifiers",
3 "name": "Operational Amplifiers",
4 "has_children": true,
5 "part_count": 1284
6}
FieldTypeNotes
slugstringFull root→leaf path slug — the public identifier
namestringThis category's own (leaf) display name
has_childrenboolWhether the category has subcategories (i.e. can be expanded)
part_countintNumber of parts in this category's subtree

Category

The fuller record from category detail (GET /v1/categories/{slug}): the node's own info, its breadcrumb path, and its immediate children (so you can walk the tree by requesting any child's slug next).

JSON
1{
2 "slug": "amplifiers/operational-amplifiers",
3 "name": "Operational Amplifiers",
4 "description": "Amplifiers that amplify the voltage difference between two inputs — used for signal conditioning, filtering, buffering, and analog computation.",
5 "path": [
6 {
7 "slug": "amplifiers",
8 "name": "Amplifiers"
9 },
10 {
11 "slug": "amplifiers/operational-amplifiers",
12 "name": "Operational Amplifiers"
13 }
14 ],
15 "children": [
16 {
17 "slug": "amplifiers/operational-amplifiers/precision",
18 "name": "Precision",
19 "has_children": false,
20 "part_count": 318
21 }
22 ]
23}
FieldTypeNotes
slugstringFull root→leaf path slug — the public identifier
namestringThis category's own (leaf) display name
descriptionstringA brief description of what the category covers
path{slug,name}[]Ancestry from root to this category, inclusive — for breadcrumbs
childrenCategoryNode[]Immediate subcategories; empty for a leaf

Used by: Categories; CategoryRef is embedded in every part's categories.