# LinkedIn followers gained in the PubNio analytics API

PubNio's LinkedIn `follower_gained` adds `organicFollowerGain` and `paidFollowerGain` from organization follower statistics. A row missing either part is skipped, not half-counted. `followers` is the separate `firstDegreeSize` stock, and `follower_lost` is unsupported for LinkedIn.

## What PubNio returns

| Metric | Scope | LinkedIn field | Unit | Combines by |
| --- | --- | --- | --- | --- |
| `follower_gained` | account | `organicFollowerGain` + `paidFollowerGain` | count | sum |
| `followers` | account | `firstDegreeSize` | count | latest |

`follower_gained`: Followers gained in the period.

`followers`: Current follower or subscriber count; a stock, never summed.

## How PubNio reads it

- The daily account sync asks for every supported Page metric, so follower statistics are read on each sync with the same time range as the other Page statistics; each row lands on its own day in the series.
- `followers` comes from a separate follower-count request and is a current value, never summed.

## Example

The capabilities endpoint answers without calling LinkedIn. Under the LinkedIn provider, these are its entries for `follower_gained`.

```http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/capabilities
Authorization: Bearer pn_live_***
```

```json
[
  {
    "key": "follower_gained",
    "scope": "account",
    "granularity": "day",
    "unit": "count",
    "aggregation": "sum",
    "availability": "available",
    "supported": true,
    "renamedFrom": "organicFollowerGain+paidFollowerGain"
  }
]
```

## Limits

- An account `follower_gained` total is the last daily read's value for its window, 30 days before the read through the day of the read, whatever `from` and `to` the request names. Per-day values come from the daily series, which the workspace plan bounds.
- A metric LinkedIn does not report comes back with `value: null` and an availability state that says why. A post with no stored values whose last read failed on permissions, a rate limit, or a transient error answers with that error instead.

## Related

- [LinkedIn analytics API: the metrics PubNio reads](https://pubnio.com/platforms/linkedin/analytics)
- [LinkedIn OAuth scopes](https://pubnio.com/docs/providers/linkedin/scopes/)
- [API reference: analytics capabilities](https://pubnio.com/docs/reference/analytics-capabilities-get/)

