# social.grain.notification.getUnreadCount

> Count the viewer's notifications since they were last seen, as app.bsky.notification.getUnreadCount does. Requires auth.

- Kind: query
- Authority: notification.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.notification.getUnreadCount)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.getUnreadCount/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.notification.getUnreadCount/analytics)

## Query (`social.grain.notification.getUnreadCount`)

Type: query · GET

### Output (application/json)

- `count` (integer, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Count the viewer's notifications since they were last seen, as app.bsky.notification.getUnreadCount does. Requires auth.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "social.grain.notification.getUnreadCount",
  "lexicon": 1
}
```
