# site.mochott.notification.getUnreadCount

> Counts what listNotifications would list as unread for the same types, after notification settings and mutes.

- Kind: query
- Authority: notification.mochott.site
- Lexicon: 1
- Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.getUnreadCount)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.getUnreadCount/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/site.mochott.notification.getUnreadCount/analytics)

## Query (`site.mochott.notification.getUnreadCount`)

Type: query · GET

### Parameters (query string)

- `types` (array): Only count these notification types. Comic types are only counted when named here.
  - `items` (string)
    - Constraints: knownValues: new_article | like | subscription | comment | reply | import_completed | import_failed | new_comic | comic_like | comic_comment | comic_reply | comic_subscription

### Output (application/json)

- `count` (integer, required)
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Counts what listNotifications would list as unread for the same types, after notification settings and mutes.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "types": {
            "description": "Only count these notification types. Comic types are only counted when named here.",
            "items": {
              "knownValues": [
                "new_article",
                "like",
                "subscription",
                "comment",
                "reply",
                "import_completed",
                "import_failed",
                "new_comic",
                "comic_like",
                "comic_comment",
                "comic_reply",
                "comic_subscription"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Count unread notifications of the requesting account. Requires auth.",
  "id": "site.mochott.notification.getUnreadCount",
  "lexicon": 1,
  "revision": 1
}
```
