# us.off-the-clock.getFeed

> A feed by record key: its generator's skeleton, hydrated by collection. Needs the viewer's service-auth token for the feed generator in x-atproto-feed-authorization.

- Kind: query
- Authority: off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getFeed)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getFeed/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getFeed/analytics)

## Query (`us.off-the-clock.getFeed`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `feed` (string · record-key): The feed's record key; general by default.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `sort` (string): latest (the feed's own order, the default) or popular: engagement over the last seven days, fading with age (D94).
  - Constraints: maxLength: 64, knownValues: latest | popular

### Output (application/json)

- `cursor` (string)
- `feed` (array, required)
  - `items` (union)
    - One of: `us.off-the-clock.defs#postView`, `us.off-the-clock.defs#eventView`, `us.off-the-clock.defs#rsvpView`, `us.off-the-clock.defs#profileView`, `us.off-the-clock.defs#recordView`, `us.off-the-clock.defs#bookmarkView`, `us.off-the-clock.defs#documentView`, `us.off-the-clock.defs#listingView`, `us.off-the-clock.defs#reviewView`, `us.off-the-clock.polls.pollView`
- `generator` (ref, required)
  - Reference: `us.off-the-clock.defs#feedInfo`

### Errors

- `UnknownFeed`: No description in schema.
- `FeedAuthRequired`: No description in schema.
- `FeedUnavailable`: No description in schema.
- `NotSpaceMember`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A feed by record key: its generator's skeleton, hydrated by collection. Needs the viewer's service-auth token for the feed generator in x-atproto-feed-authorization.",
      "errors": [
        {
          "name": "UnknownFeed"
        },
        {
          "name": "FeedAuthRequired"
        },
        {
          "name": "FeedUnavailable"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "feed": {
              "items": {
                "refs": [
                  "us.off-the-clock.defs#postView",
                  "us.off-the-clock.defs#eventView",
                  "us.off-the-clock.defs#rsvpView",
                  "us.off-the-clock.defs#profileView",
                  "us.off-the-clock.defs#recordView",
                  "us.off-the-clock.defs#bookmarkView",
                  "us.off-the-clock.defs#documentView",
                  "us.off-the-clock.defs#listingView",
                  "us.off-the-clock.defs#reviewView",
                  "us.off-the-clock.polls.pollView"
                ],
                "type": "union"
              },
              "type": "array"
            },
            "generator": {
              "ref": "us.off-the-clock.defs#feedInfo",
              "type": "ref"
            }
          },
          "required": [
            "generator",
            "feed"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "feed": {
            "description": "The feed's record key; general by default.",
            "format": "record-key",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "sort": {
            "description": "latest (the feed's own order, the default) or popular: engagement over the last seven days, fading with age (D94).",
            "knownValues": [
              "latest",
              "popular"
            ],
            "maxLength": 64,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.getFeed",
  "lexicon": 1
}
```
