---
title: "Get unread count"
method: POST
path: "/get_unread_count"
---

# Get unread count

`POST /get_unread_count`

## Request

- Base URL: `https://newsmind.app/api/v1`
- URL: `https://newsmind.app/api/v1/get_unread_count`
- Auth: OAuth 2 (authorization code, authorization URL `https://newsmind.app/oauth/authorize`, token URL `https://newsmind.app/oauth/token`, scopes: `mcp`)

Total unread count within tier retention. Cheap — no article rows. Pass by_feed=true to also get per-feed breakdown (sorted desc, zero-count feeds omitted).

## Request body

- object
  - `by_feed` boolean: If true, response also includes a `feeds` array with per-feed unread counts (sorted descending, zero-count feeds omitted).

## Response `200`

Success

- object
  - `unread_count` integer, required
  - `feeds` object[]: Present only when by_feed=true.
    - `feed_id` integer, required
    - `title` string, nullable
    - `unread_count` integer, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `402`: Subscription required (trial expired or cancelled)
- `429`: Too many calls. Either the per-account rate limit ({error: "rate_limited", message}) or the account's in-flight work ({error: <sentence>, code: "busy"}). Wait Retry-After seconds.
- `500`: Server error on our side (error: internal_error). The team has been notified.
- `503`: Temporarily unable to answer. error: timeout (the request ran too long; narrow it), server_busy or tier_unavailable (retry after Retry-After seconds when sent).

---

[API](https://skmtc.dev/newsmind/apis/newsmind-api.md) · [All operations](https://skmtc.dev/newsmind/apis/newsmind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/newsmind/apis/newsmind-api/revisions/f8af23fb5a10?raw)
