> ## Documentation Index
> Fetch the complete documentation index at: https://reel25.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Growth Tracking Setup

> Set up ongoing performance monitoring for accounts and videos

Track creator growth, video performance trends, and get alerts when content takes off.

**Total credit cost:** Free (tracking only) | **Time:** \~2 minutes

## Step 1 — Track accounts

```javascript theme={null}
const API = 'https://api.reel25.com/api/v1';
const headers = {
  'Authorization': 'Bearer reel25_sk_...',
  'Content-Type': 'application/json',
};

// Track multiple creators
const creators = [
  'https://www.tiktok.com/@creator1',
  'https://www.tiktok.com/@creator2',
  'https://www.instagram.com/creator3',
];

for (const url of creators) {
  await fetch(`${API}/accounts`, {
    method: 'POST',
    headers,
    body: JSON.stringify({ url, video_limit: 50 }),
  });
}
```

## Step 2 — Check account metrics

```javascript theme={null}
// List all tracked accounts
const accounts = await fetch(`${API}/accounts`, { headers });
const { data } = await accounts.json();

for (const account of data) {
  console.log(`@${account.username}: ${account.followerCount} followers, ${account.videoCount} videos`);
}
```

## Step 3 — Monitor growth trends

```javascript theme={null}
// Get workspace-wide growth trends
const growth = await fetch(`${API}/analytics/growth?period=30d`, { headers });
const trends = await growth.json();

for (const day of trends.data) {
  console.log(`${day.date}: ${day.totalFollowers} followers, ${day.totalVideos} videos`);
}
```

## Step 4 — Track top performing videos

```javascript theme={null}
// Get top videos across all tracked accounts
const top = await fetch(`${API}/analytics/videos/top?limit=10`, { headers });
const topVideos = await top.json();

for (const video of topVideos.data) {
  console.log(`${video.viewCount} views — @${video.username}: ${video.description?.slice(0, 60)}`);
}
```

## Step 5 — Build a daily report

Combine the above into a daily script:

```javascript theme={null}
async function dailyReport(apiKey) {
  const headers = { 'Authorization': `Bearer ${apiKey}` };
  const API = 'https://api.reel25.com/api/v1';

  // Workspace overview
  const workspace = await fetch(`${API}/workspace`, { headers }).then(r => r.json());
  console.log(`Plan: ${workspace.data.plan}`);
  console.log(`Credits: ${workspace.data.credits.total_remaining}/${workspace.data.credits.monthly_total}`);
  console.log(`Videos tracked: ${workspace.data.limits.video_slots_used}/${workspace.data.limits.video_limit}`);

  // Top performers today
  const top = await fetch(`${API}/analytics/videos/top?limit=5`, { headers }).then(r => r.json());
  console.log('\nTop 5 videos:');
  top.data.forEach((v, i) =>
    console.log(`  ${i + 1}. ${v.viewCount.toLocaleString()} views — @${v.username}`)
  );

  // Growth
  const growth = await fetch(`${API}/analytics/growth?period=7d`, { headers }).then(r => r.json());
  const latest = growth.data[0];
  const week_ago = growth.data[growth.data.length - 1];
  console.log(`\n7-day follower growth: +${latest.totalFollowers - week_ago.totalFollowers}`);
}

dailyReport('reel25_sk_YOUR_KEY');
```

## What you get

* **Daily metric updates** for all tracked accounts and videos
* **Growth trends** showing follower and content output over time
* **Top performers** ranked by engagement
* **Workspace overview** with credit and limit tracking


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.