# net.olamaelcu.livtet.biblio.getGenresOfBook

> Fetch the genres of one catalog edition by its AT-URI. This is an anonymous catalog read served by the bibliograph edge from the catalog tables; it is never handled by HappyView. Genres come from OpenLibrary subjects and Goodreads book pages, mapped to a curated vocabulary.

- Kind: query
- Authority: biblio.livtet.olamaelcu.net
- Lexicon: 1
- Published by [biblio.livtet.olamaelcu.net](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.getGenresOfBook)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.getGenresOfBook/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/net.olamaelcu.livtet.biblio.getGenresOfBook/analytics)

## Query (`net.olamaelcu.livtet.biblio.getGenresOfBook`)

Type: query · GET

### Parameters (query string)

- `uri` (string · at-uri, required): AT-URI of the edition these genres belong to.

### Output (application/json)

- `genres` (array, required): Genres in provider order; empty when none are known yet.
  - `items` (object)
- `uri` (string · at-uri, required): AT-URI of the edition these genres belong to.

### Errors

- `InvalidRequest`: The uri is missing, malformed, or not an edition record URI.
- `RecordNotFound`: No catalog edition has that URI.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "The uri is missing, malformed, or not an edition record URI.",
          "name": "InvalidRequest"
        },
        {
          "description": "No catalog edition has that URI.",
          "name": "RecordNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "genres": {
              "description": "Genres in provider order; empty when none are known yet.",
              "items": {
                "properties": {
                  "name": {
                    "description": "Canonical genre name.",
                    "type": "string"
                  },
                  "source": {
                    "description": "Provider that supplied the genre.",
                    "knownValues": [
                      "openlibrary",
                      "goodreads",
                      "isbndb"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "source"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "uri": {
              "description": "AT-URI of the edition these genres belong to.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "genres"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "AT-URI of the edition these genres belong to.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Fetch the genres of one catalog edition by its AT-URI. This is an anonymous catalog read served by the bibliograph edge from the catalog tables; it is never handled by HappyView. Genres come from OpenLibrary subjects and Goodreads book pages, mapped to a curated vocabulary.",
  "id": "net.olamaelcu.livtet.biblio.getGenresOfBook",
  "lexicon": 1
}
```
