analytics

access post statistics and engagement performance data. track likes, comments, shares, and impressions across all connected platforms.

get_post_stats

retrieve aggregated post statistics for a workspace. returns counts by status (draft, scheduled, published, failed).

> how many posts do i have?
  using antwork.get_post_stats

  [done] stats retrieved
  [info] 5 draft, 3 scheduled, 12 published, 1 failed
parameters
workspace_idstringoptional
workspace id or name. optional if user has only one workspace

get_performance

get engagement performance data for published posts. returns individual post metrics and an aggregated summary with total likes, comments, shares, and impressions.

> how are my posts performing this month?
  using antwork.get_performance

  [done] 15 published posts
  [info] 234 likes, 45 comments, 12 shares
parameters
workspace_idstringoptional
workspace id or name. optional if user has only one workspace
limitnumberoptional
max posts to return (default: 30, max: 50)