Skip to main content

Endpoint

Overview

Get post statistics including views, likes, comments, and shares. Behavior:
  • If startDate and endDate are NOT provided: Returns the latest stat per post (one record per post) - optimal for dashboards showing current state
  • If startDate or endDate is provided: Returns all stats within the date range - use for historical analysis and trend tracking
Use this endpoint to track post performance over time.

Request Body

string[]
Array of post IDs to get stats for. Omit to get all posts.
string
Start date in ISO 8601 format (e.g., 2024-01-01T00:00:00Z). Optional. If omitted (along with endDate), returns latest stat per post.
string
End date in ISO 8601 format (e.g., 2024-12-31T23:59:59Z). Optional. If omitted (along with startDate), returns latest stat per post.

Response

PostStat[]
Array of post statistics objects