> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Analytics

Which analytics metrics Pinterest returns for pins and for the whole account.

Call `GET /v1/analytics?platform=pinterest` ([Analytics API](/analytics/get-analytics)).

| Metric | Available |
|--------|-----------|
| Impressions | <Yes /> |
| Saves | <Yes /> |
| Clicks | <Yes /> |

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: analytics } = await zernio.analytics.getAnalytics({
  query: { platform: 'pinterest', fromDate: '2026-08-01', toDate: '2026-08-31' }
});

console.log(analytics.posts);
```
</Tab>
<Tab value="Python">
```python
analytics = client.analytics.get_analytics(
    platform="pinterest",
    from_date="2026-08-01",
    to_date="2026-08-31"
)

print(analytics["posts"])
```
</Tab>
<Tab value="curl">
```bash
curl "https://zernio.com/api/v1/analytics?platform=pinterest&fromDate=2026-08-01&toDate=2026-08-31" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```
</Tab>
</Tabs>

Response (`200`), one entry per post:

```json
{
  "posts": [
    {
      "_id": "65f1c0a9e2b5af0012ab34cd",
      "platform": "pinterest",
      "status": "published",
      "publishedAt": "2026-08-14T10:00:05Z",
      "platformPostUrl": "https://www.pinterest.com/pin/1022106146582013456/",
      "analytics": {
        "impressions": 4380,
        "saves": 96,
        "clicks": 141
      }
    }
  ]
}
```

## Account-level daily metrics

[Account insights](/analytics/get-pinterest-account-insights) returns the account's daily impressions, engagements, saves, pin clicks and outbound clicks, read from Pinterest's account analytics.

These cover every pin on the account, including pins published before it was connected to Zernio. The follower history from Zernio's daily snapshots comes back in the same response.

Pinterest serves the last 89 days only. The latest 1-2 days are left out until Pinterest finishes processing them.

```bash
curl "https://zernio.com/api/v1/analytics/pinterest/account-insights?accountId=$ACCOUNT_ID&metrics=impressions,engagements,follower_count&metricType=time_series" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```