Skip to main content

Overview

Represents engagement statistics for an individual post at a specific point in time.

Fields

FieldTypeDescription
idstringUnique stat record identifier
post_idstringAssociated post ID
viewsnumber | nullView count at the time of recording
likesnumber | nullLike count at the time of recording
commentsnumber | nullComment count at the time of recording
sharesnumber | nullShare count at the time of recording
savesnumber | nullSave/bookmark count at the time of recording
created_atstringISO 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:
  1. Fetches fresh statistics from TikTok/Instagram API
  2. Creates a new post_stats record for each post
  3. 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

MetricDescription
viewsNumber of times the post was viewed
likesNumber of likes/hearts the post received
commentsNumber of comments on the post
sharesNumber of times the post was shared
savesNumber of times the post was saved/bookmarked

Example Response

{
  "id": "pstat_abc123",
  "post_id": "post_123456",
  "views": 125000,
  "likes": 8950,
  "comments": 342,
  "shares": 567,
  "saves": 1234,
  "created_at": "2024-12-25T10:00:00Z"
}

Use Cases

  • Monitor individual post performance
  • Track engagement growth over time
  • Identify top-performing content
  • Calculate engagement rates
  • Generate performance reports