Overview
Represents statistics for an account at a specific point in time.Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique stat record identifier |
account_id | string | Associated account ID |
followers | number | null | Follower count at the time of recording |
following | number | null | Following count at the time of recording |
views | number | null | Total content views across all posts |
likes | number | null | Total likes received across all posts |
created_at | string | ISO 8601 timestamp when stat was recorded |
How Account Stats Work
Account stats are created by aggregating post-level metrics. The
views and likes fields represent totals across all posts associated with the account.Creating Stats
Use the/stats/refresh endpoint to fetch fresh statistics from the TikTok/Instagram API:
- Fetches account profile stats (followers, following)
- Fetches stats for all posts associated with the account
- Creates an
account_statsrecord with aggregated post metrics - Creates individual
post_statsrecords for each post
Time-Series Data
Multiple stat records can exist for a single account, allowing you to track growth and performance over time. Each record includes acreated_at timestamp indicating when the snapshot was taken.
Example Response
Use Cases
- Track follower growth over time
- Monitor total engagement across all content
- Compare performance across accounts
- Generate analytics reports
