Documentation Index
Fetch the complete documentation index at: https://docs.ugc.inc/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Represents engagement statistics for an individual post at a specific point in time.Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique stat record identifier |
post_id | string | Associated post ID |
views | number | null | View count at the time of recording |
likes | number | null | Like count at the time of recording |
comments | number | null | Comment count at the time of recording |
shares | number | null | Share count at the time of recording |
created_at | string | ISO 8601 timestamp when stat was recorded |
How Post Stats Work
Post stats are snapshots in time. Multiple stat records may exist for a single post, allowing you to track performance over time.
Creating Stats
Post stats are automatically created when you use the/stats/refresh endpoint:
- Fetches fresh statistics from TikTok/Instagram API
- Creates a new
post_statsrecord for each post - Each record includes a timestamp for historical tracking
Time-Series Data
The time-series nature of post stats allows you to:- Track how a post performs over its lifetime
- Identify viral growth patterns
- Compare early vs. late performance
- Generate trend reports
Engagement Metrics
| Metric | Description |
|---|---|
views | Number of times the post was viewed |
likes | Number of likes/hearts the post received |
comments | Number of comments on the post |
shares | Number of times the post was shared |
Example Response
Use Cases
- Monitor individual post performance
- Track engagement growth over time
- Identify top-performing content
- Calculate engagement rates
- Generate performance reports
