# Analytics & Insights

### Get Account Insights

```typescript
const insights = await instagram.getAccountInsights(
  ['impressions', 'reach', 'profile_views', 'follower_count'],
  'day'
);

insights.data.forEach(metric => {
  console.log(`${metric.name}: ${metric.values[0].value}`);
});
```

### Get Post Insights

```typescript
const postInsights = await instagram.getMediaInsights(
  'MEDIA_ID',
  ['impressions', 'reach', 'engagement', 'saved', 'shares']
);

postInsights.forEach(metric => {
  console.log(`${metric.name}: ${metric.values[0].value}`);
});
```

### Get Story Insights

```typescript
const storyInsights = await instagram.getStoryInsights('STORY_MEDIA_ID');
storyInsights.forEach(metric => {
  console.log(`${metric.name}: ${metric.values[0].value}`);
});
```