# social.respawn.feed.getActivity

> Published by [respawn.social](https://lexicon.garden/identity/did:plc:hiabolqnnpdnrb5grmdaaepg)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.feed.getActivity)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.feed.getActivity/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.feed.getActivity/examples)

## Definitions

### `social.respawn.feed.getActivity`

**Type**: `query`

Activity events involving an actor, newest first. `filter` selects the slice.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | The account the feed is about, which is not necessarily the viewer. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `filter` | `string` | No | author: records the actor wrote. following: records written by the accounts the actor follows. incoming: records by others naming the actor as their subject. all: the union of the three. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `feed` | `array` | Yes |  |
| `cursor` | `string` | No |  |

### `social.respawn.feed.getActivity#feedItem`

**Type**: `object`

One activity event. `type` selects which optional fields are present.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The actor who performed the action. |
| `uri` | `string` (at-uri) | Yes |  |
| `game` | `ref` → `social.respawn.defs#gameRef` | No | Present on backlogAdd. |
| `type` | `string` | Yes |  |
| `cover` | `ref` → `social.respawn.defs#cover` | No | Present on backlogAdd. |
| `subject` | `string` (did) | No | Present on follow: the account followed. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "social.respawn.feed.getActivity",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "feed"
          ],
          "properties": {
            "feed": {
              "type": "array",
              "items": {
                "ref": "#feedItem",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "actor": {
            "type": "string",
            "format": "did",
            "description": "The account the feed is about, which is not necessarily the viewer."
          },
          "limit": {
            "type": "integer",
            "default": 30,
            "maximum": 50,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "default": "all",
            "description": "author: records the actor wrote. following: records written by the accounts the actor follows. incoming: records by others naming the actor as their subject. all: the union of the three.",
            "knownValues": [
              "all",
              "author",
              "incoming",
              "following"
            ]
          }
        }
      },
      "description": "Activity events involving an actor, newest first. `filter` selects the slice."
    },
    "feedItem": {
      "type": "object",
      "required": [
        "type",
        "uri",
        "did",
        "createdAt"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "The actor who performed the action."
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "game": {
          "ref": "social.respawn.defs#gameRef",
          "type": "ref",
          "description": "Present on backlogAdd."
        },
        "type": {
          "type": "string",
          "knownValues": [
            "backlogAdd",
            "follow"
          ]
        },
        "cover": {
          "ref": "social.respawn.defs#cover",
          "type": "ref",
          "description": "Present on backlogAdd."
        },
        "subject": {
          "type": "string",
          "format": "did",
          "description": "Present on follow: the account followed."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        }
      },
      "description": "One activity event. `type` selects which optional fields are present."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
