# community.gifthood.graph.getFollows

> Published by [gifthood.community](https://lexicon.garden/identity/did:plc:7prvtl4j6wsfmkrfrnwknuxj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getFollows)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getFollows/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getFollows/examples)

## Definitions

### `community.gifthood.graph.getFollows`

**Type**: `query`

Enumerate the accounts that the given account follows, newest-first. Each row is a medium profileView (identity + the viewer's per-row follow-state). Public; a block in either direction between the viewer and the subject returns Unavailable.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | DID of the subject account whose follows to list. |
| `limit` | `integer` | No | Maximum rows per page. |
| `cursor` | `string` | No | Opaque keyset cursor from a previous page. Absent for the first page. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Opaque cursor for the next page; absent at the end. |
| `follows` | `array` | Yes | The accounts the subject follows, newest-first. |

#### Errors

- **Unavailable**: A block exists in either direction between the viewer and the subject account; the follow list is not available.
- **NotAvailableToPublic**: The author hides their content from logged-out viewers; sign in to view.

## Raw Schema

```json
{
  "id": "community.gifthood.graph.getFollows",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "Unavailable",
          "description": "A block exists in either direction between the viewer and the subject account; the follow list is not available."
        },
        {
          "name": "NotAvailableToPublic",
          "description": "The author hides their content from logged-out viewers; sign in to view."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "follows"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "description": "Opaque cursor for the next page; absent at the end."
            },
            "follows": {
              "type": "array",
              "items": {
                "ref": "community.gifthood.actor.defs#profileView",
                "type": "ref"
              },
              "description": "The accounts the subject follows, newest-first."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "actor": {
            "type": "string",
            "format": "did",
            "description": "DID of the subject account whose follows to list."
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum rows per page."
          },
          "cursor": {
            "type": "string",
            "description": "Opaque keyset cursor from a previous page. Absent for the first page."
          }
        }
      },
      "description": "Enumerate the accounts that the given account follows, newest-first. Each row is a medium profileView (identity + the viewer's per-row follow-state). Public; a block in either direction between the viewer and the subject returns Unavailable."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
