# buzz.bookhive.getFeed

> 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.getFeed)
- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getFeed/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getFeed/examples)

## Definitions

### `buzz.bookhive.getFeed`

**Type**: `query`

Get the activity feed. Requires authentication for the friends and tracking tabs.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tab` | `string` | No | Which feed tab to show. Defaults to friends. |
| `page` | `integer` | No | Page number for pagination |
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `page` | `integer` | No |  |
| `hasMore` | `boolean` | Yes |  |
| `activities` | `array` | Yes |  |

### `buzz.bookhive.getFeed#feedActivity`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cover` | `string` | No |  |
| `stars` | `integer` | No |  |
| `title` | `string` | Yes |  |
| `hiveId` | `string` | Yes |  |
| `review` | `string` | No |  |
| `status` | `string` | No |  |
| `authors` | `string` | Yes |  |
| `userDid` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `thumbnail` | `string` | Yes |  |
| `userAvatar` | `string` | No |  |
| `userHandle` | `string` | No |  |

## Raw Schema

```json
{
  "id": "buzz.bookhive.getFeed",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "activities",
            "hasMore"
          ],
          "properties": {
            "page": {
              "type": "integer"
            },
            "hasMore": {
              "type": "boolean"
            },
            "activities": {
              "type": "array",
              "items": {
                "ref": "buzz.bookhive.getFeed#feedActivity",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "tab": {
            "type": "string",
            "description": "Which feed tab to show. Defaults to friends.",
            "knownValues": [
              "friends",
              "all",
              "tracking"
            ]
          },
          "page": {
            "type": "integer",
            "default": 1,
            "minimum": 1,
            "description": "Page number for pagination"
          },
          "limit": {
            "type": "integer",
            "default": 25,
            "maximum": 50,
            "minimum": 1
          }
        }
      },
      "description": "Get the activity feed. Requires authentication for the friends and tracking tabs."
    },
    "feedActivity": {
      "type": "object",
      "required": [
        "userDid",
        "hiveId",
        "title",
        "authors",
        "createdAt",
        "thumbnail"
      ],
      "properties": {
        "cover": {
          "type": "string"
        },
        "stars": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1
        },
        "title": {
          "type": "string"
        },
        "hiveId": {
          "type": "string"
        },
        "review": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "authors": {
          "type": "string"
        },
        "userDid": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "thumbnail": {
          "type": "string"
        },
        "userAvatar": {
          "type": "string"
        },
        "userHandle": {
          "type": "string"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
