# community.gifthood.graph.getKnownFollowers

> 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.getKnownFollowers)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getKnownFollowers/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getKnownFollowers/examples)

## Definitions

### `community.gifthood.graph.getKnownFollowers`

**Type**: `query`

Return the count and a sample of accounts the authenticated viewer follows who also follow the given subject. Viewer-relative: requires authentication (AuthRequired when logged out). A block in either direction between the viewer and the subject returns Unavailable. The count may exceed the returned sample (capped by limit).

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | DID of the subject account. |
| `limit` | `integer` | No | Maximum number of known followers to return in the sample. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes | Total number of accounts the viewer follows who also follow the subject; may exceed the returned sample. |
| `followers` | `array` | Yes | A sample (≤ limit) of known followers, each a medium profileView. |

#### Errors

- **AuthRequired**: The caller is not authenticated; known-follower lookup is viewer-relative and requires a session.
- **Unavailable**: A block exists in either direction between the viewer and the subject account; the known-follower list is not available.

## Raw Schema

```json
{
  "id": "community.gifthood.graph.getKnownFollowers",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The caller is not authenticated; known-follower lookup is viewer-relative and requires a session."
        },
        {
          "name": "Unavailable",
          "description": "A block exists in either direction between the viewer and the subject account; the known-follower list is not available."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "count",
            "followers"
          ],
          "properties": {
            "count": {
              "type": "integer",
              "description": "Total number of accounts the viewer follows who also follow the subject; may exceed the returned sample."
            },
            "followers": {
              "type": "array",
              "items": {
                "ref": "community.gifthood.actor.defs#profileView",
                "type": "ref"
              },
              "description": "A sample (≤ limit) of known followers, each a medium profileView."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "actor": {
            "type": "string",
            "format": "did",
            "description": "DID of the subject account."
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of known followers to return in the sample."
          }
        }
      },
      "description": "Return the count and a sample of accounts the authenticated viewer follows who also follow the given subject. Viewer-relative: requires authentication (AuthRequired when logged out). A block in either direction between the viewer and the subject returns Unavailable. The count may exceed the returned sample (capped by limit)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
