# Bluesky analytics API: the metrics PubNio reads

PubNio's Bluesky adapter declares 6 post metrics and no account metrics as supported. It re-reads each post on a schedule for 366 days after publishing. A metric Bluesky does not report comes back as null with a reason.

## What PubNio returns

| Metric | Post field | Account field |
| --- | --- | --- |
| `impressions` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `reach` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `views` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `likes` | `likeCount` | not returned: `account_analytics_deferred` |
| `comments` | `replyCount` | not returned: `account_analytics_deferred` |
| `shares` | `repostCount` + `quoteCount` | not returned: `account_analytics_deferred` |
| `saves` | `bookmarkCount` | not returned: `account_analytics_deferred` |
| `clicks` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `link_clicks` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `page_views` | — | not returned: `account_analytics_deferred` |
| `followers` | — | not returned: `account_analytics_deferred` |
| `follower_gained` | — | not returned: `account_analytics_deferred` |
| `follower_lost` | — | not returned: `account_analytics_deferred` |
| `watch_time_ms` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `avg_watch_time_ms` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `completion_rate` | not returned: `not_exposed` | not returned: `account_analytics_deferred` |
| `engagement` | derived | not returned: `account_analytics_deferred` |
| `engagement_rate` | none: always `not_applicable` | not returned: `account_analytics_deferred` |

Bluesky returns no value for the other keys, `profile_visits` and `follows`: the adapter marks each `not_exposed` or leaves it out.

“Not declared” means the adapter's capabilities leave the metric out. A post reading then comes back `unsupported` with reason `not_exposed`; an account reading comes back `pending` with reason `account_analytics_pending` and stays there, because the account sync reads only declared metrics.

## How PubNio reads it

- PubNio reads Bluesky post counts from the post view and asks for no OAuth scope: its capabilities list none. A post the read no longer returns is marked deleted.
- Account analytics are deferred: every declared account metric is `unsupported` with reason `account_analytics_deferred`, and PubNio schedules no account sync because no account metric is supported. Account `follows` and `profile_visits` are not declared, so they read `pending`.

PubNio reads a Bluesky 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 15 minutes after publishing.

Bluesky 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: 3600`, how long the adapter expects Bluesky's numbers to take to settle. PubNio publishes the figure; reads are scheduled only by the rules above.

PubNio asks for no OAuth scope to read Bluesky analytics: its capabilities list none.

`engagement_rate`: Bluesky post `engagement_rate` is declared supported, but PubNio never returns a value: the rate divides by impressions, and the Bluesky adapter reads none. The reading comes back `not_applicable` with reason `no_impressions`. Post `engagement` itself is available: likes + replies + reposts and quotes + bookmarks.

- The adapter answers any missing `engagement_rate` with `not_applicable` and `no_impressions`; the capability entry still says `supported: true`.
- Engagement is derived only when likes, comments, shares, and saves are all present.

`shares`: PubNio's Bluesky `shares` adds `repostCount` and `quoteCount`, and keeps each in the reading's `breakdown` as `reposts` and `quotes`. If only one count is present, the value is that count. Bookmarks are a separate `saves` reading from `bookmarkCount`.

- Shares feed the derived engagement count with likes, replies, and bookmarks.

## Example

`profile_visits` is not declared, so it is `pending` with reason `account_analytics_pending` and stays there. `impressions` and `reach` are metrics Bluesky 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=profile_visits&metrics=impressions&metrics=reach
Authorization: Bearer pn_live_***
```

```json
[
  {
    "key": "profile_visits",
    "value": null,
    "availability": "pending",
    "reason": "account_analytics_pending"
  },
  {
    "key": "impressions",
    "value": null,
    "availability": "unsupported",
    "reason": "account_analytics_deferred"
  },
  {
    "key": "reach",
    "value": null,
    "availability": "unsupported",
    "reason": "account_analytics_deferred"
  }
]
```

## Limits

- No impressions, reach, views, clicks, profile visits, follows, or video metrics for Bluesky posts, and no account metrics.
- 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)
- [Bluesky publishing API](https://pubnio.com/platforms/bluesky)
- [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/)

