# buzz.bookhive.getExplore

> Published by [bookhive.buzz](https://lexicon.garden/identity/did:plc:enu2j5xjlqsjaylv3du4myh4)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getExplore)
- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getExplore/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getExplore/examples)

## Definitions

### `buzz.bookhive.getExplore`

**Type**: `query`

Get featured genres and top authors for the explore hub.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `genres` | `array` | Yes |  |
| `topAuthors` | `array` | Yes |  |

### `buzz.bookhive.getExplore#genreItem`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes |  |
| `genre` | `string` | Yes |  |

### `buzz.bookhive.getExplore#authorItem`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `string` | Yes |  |
| `avgRating` | `integer` | No | Average rating * 10 (e.g. 42 = 4.2 stars) |
| `bookCount` | `integer` | Yes |  |
| `thumbnail` | `string` | No |  |

## Raw Schema

```json
{
  "id": "buzz.bookhive.getExplore",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "genres",
            "topAuthors"
          ],
          "properties": {
            "genres": {
              "type": "array",
              "items": {
                "ref": "buzz.bookhive.getExplore#genreItem",
                "type": "ref"
              }
            },
            "topAuthors": {
              "type": "array",
              "items": {
                "ref": "buzz.bookhive.getExplore#authorItem",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {}
      },
      "description": "Get featured genres and top authors for the explore hub."
    },
    "genreItem": {
      "type": "object",
      "required": [
        "genre",
        "count"
      ],
      "properties": {
        "count": {
          "type": "integer",
          "minimum": 0
        },
        "genre": {
          "type": "string"
        }
      }
    },
    "authorItem": {
      "type": "object",
      "required": [
        "author",
        "bookCount"
      ],
      "properties": {
        "author": {
          "type": "string"
        },
        "avgRating": {
          "type": "integer",
          "maximum": 50,
          "minimum": 0,
          "description": "Average rating * 10 (e.g. 42 = 4.2 stars)"
        },
        "bookCount": {
          "type": "integer",
          "minimum": 0
        },
        "thumbnail": {
          "type": "string"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
