# Reddit analytics API: the metrics PubNio reads

Reddit is upcoming on PubNio: no account can connect yet, so PubNio returns no Reddit analytics today. Its adapter is already in the code and declares 2 post metrics and no account metrics, listed below with the Reddit field each one reads.

## What PubNio returns

| Metric | Post field | Account field |
| --- | --- | --- |
| `likes` | `score` | not returned: `not_exposed` |
| `comments` | `num_comments` | not returned: `not_exposed` |
| `engagement` | not returned: `shares_not_exposed` | not returned: `shares_not_exposed` |
| `engagement_rate` | not returned: `shares_not_exposed` | not returned: `shares_not_exposed` |

Reddit returns no value for the other keys, `impressions`, `reach`, `views`, `shares`, `saves`, `clicks`, `link_clicks`, `profile_visits`, `page_views`, `follows`, `followers`, `follower_gained`, `follower_lost`, `watch_time_ms`, `avg_watch_time_ms`, and `completion_rate`: the adapter marks each `not_exposed` or leaves it out.

## How PubNio reads it

- A Reddit post reports two numbers: `likes` is the post's `score`, with the `upvote_ratio` kept in `breakdown`, and `comments` is `num_comments`. If Reddit cannot read the post, the read fails as not found.
- Account analytics are unsupported: every account metric reads `unsupported`, and PubNio schedules no account sync because no account metric is supported.

PubNio reads a Reddit post no sooner than 30 minutes after it is published; a post the sync pass finds later is read when it is found. After the first read it reads every 30 minutes until it is a day old, every 6 hours until day 7, daily until day 30, and weekly after that. It stops reading the post 366 days after publishing. A refresh request does not wait for that: it reads the post as soon as 1 minute after publishing.

Reddit returns lifetime totals for a post, so PubNio stores each read's increase on the UTC day of the read. The first read puts the whole total on that day, only summed metrics get daily points, and a total that drops is stored as zero, not a negative day.

Capabilities also declare `latencySeconds: 300`, how long the adapter expects Reddit's numbers to take to settle. PubNio publishes the figure; reads are scheduled only by the rules above.

PubNio's Reddit analytics capabilities require these OAuth scopes on the connected account: `read`. When one is missing, the sync marks the metrics `permission_missing` and lists what is absent in `missingScopes`.

## Example

Reddit declares no account metric PubNio can fill, so no key below is ever `pending`. `engagement` and `engagement_rate` are metrics Reddit does not supply: each comes back `unsupported` with its reason. The request answers 200 with one entry per key.

```http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/accounts/7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b?metrics=engagement&metrics=engagement_rate
Authorization: Bearer pn_live_***
```

```json
[
  {
    "key": "engagement",
    "value": null,
    "availability": "unsupported",
    "reason": "shares_not_exposed"
  },
  {
    "key": "engagement_rate",
    "value": null,
    "availability": "unsupported",
    "reason": "shares_not_exposed"
  }
]
```

## Limits

- No impressions, views, shares, saves, clicks, or engagement for Reddit; the upvote ratio is not a catalog metric, so it is never `engagement_rate`.
- A request covers at most 366 days and 30 metrics, in UTC dates, and defaults to the last 30 days. How far back a daily series reaches depends on the workspace plan, and stored daily points are deleted after 400 days.

## Related

- [Analytics metrics on every network](https://pubnio.com/platforms/analytics)
- [Reddit API errors](https://pubnio.com/docs/errors/reddit/)
- [Problem: analytics metric unsupported](https://pubnio.com/docs/problems/analytics-metric-unsupported/)
- [API reference: read one account's analytics](https://pubnio.com/docs/reference/analytics-accounts-get/)

