# social.grain.unspecced.getFollowers

> Get followers for a given user.

- Kind: query
- Authority: unspecced.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getFollowers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getFollowers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getFollowers/analytics)

## Query (`social.grain.unspecced.getFollowers`)

Type: query · GET

### Parameters (query string)

- `actor` (string · at-identifier, required)
- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `viewer` (string · did)

### Output (application/json)

- `cursor` (string)
- `items` (array)
  - `items` (ref)
    - Reference: `social.grain.unspecced.getFollowers#followerItem`
- `totalCount` (integer)

## #followerItem (`social.grain.unspecced.getFollowers#followerItem`)

Type: object

### Properties

- `avatar` (string)
- `description` (string)
- `did` (string · did, required)
- `displayName` (string)
- `handle` (string)
- `viewer` (ref)
  - Reference: `social.grain.unspecced.getFollowers#viewerState`

## #viewerState (`social.grain.unspecced.getFollowers#viewerState`)

Type: object

### Properties

- `following` (string · at-uri)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "followerItem": {
      "properties": {
        "avatar": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "viewer": {
          "ref": "social.grain.unspecced.getFollowers#viewerState",
          "type": "ref"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "main": {
      "description": "Get followers for a given user.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "items": {
              "items": {
                "ref": "social.grain.unspecced.getFollowers#followerItem",
                "type": "ref"
              },
              "type": "array"
            },
            "totalCount": {
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "at-identifier",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "viewerState": {
      "properties": {
        "following": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "social.grain.unspecced.getFollowers",
  "lexicon": 1
}
```
