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

# Analytics

Which analytics metrics Reddit returns for posts.

<Callout type="warn">
**Reddit is temporarily unavailable** while Reddit blocks third-party API access: Reddit analytics keep their last synced values and stop updating until Reddit restores access. See [Reddit](/platforms/reddit).
</Callout>

Call `GET /v1/analytics?platform=reddit` ([Analytics API](/analytics/get-analytics)). Reddit exposes the score and the comment count only, so analytics are limited to these two metrics:

| Metric | Available |
|--------|-----------|
| Likes (upvotes) | <Yes /> |
| Comments | <Yes /> |

Reddit's API does not provide impressions, reach, shares, clicks or view counts.

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

console.log(analytics.posts);
```
</Tab>
<Tab value="Python">
```python
analytics = client.analytics.get_analytics(
    platform="reddit",
    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=reddit&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": "reddit",
      "status": "published",
      "publishedAt": "2026-08-14T10:00:05Z",
      "platformPostUrl": "https://www.reddit.com/r/learnprogramming/comments/1abcd2/tips/",
      "analytics": {
        "likes": 342,
        "comments": 28
      }
    }
  ]
}
```