buzz.bookhive.listGenres
List genres with book counts. Does not require authentication.
Details · query
| Kind | query |
|---|---|
| Authority | bookhive.buzz |
| Indexed |
Checks
Validunlimited-stringdefs.genreWithCount.properties.genreNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"genreWithCount": {
"properties": {
"count": {
"description": "Number of books in this genre",
"type": "integer"
},
"genre": {
"description": "Genre name",
"type": "string"
}
},
"required": [
"genre",
"count"
],
"type": "object"
},
"main": {
"description": "List genres with book counts. Does not require authentication.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"genres": {
"items": {
"ref": "#genreWithCount",
"type": "ref"
},
"type": "array"
},
"offset": {
"description": "Next offset for pagination",
"type": "integer"
}
},
"required": [
"genres"
],
"type": "object"
}
},
"parameters": {
"properties": {
"limit": {
"default": 50,
"description": "Maximum number of genres to return",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"minBooks": {
"default": 0,
"description": "Only return genres with at least this many books",
"minimum": 0,
"type": "integer"
},
"offset": {
"description": "Offset for pagination",
"type": "integer"
}
},
"type": "params"
},
"type": "query"
}
},
"id": "buzz.bookhive.listGenres",
"lexicon": 1
}