Skip to content
Docs menu

Analytics

Read recorded metrics for a post or social account.

On this page

Read snapshots

Get a workspace report with GET /api/v1/analytics. Filter by dates, platform, post, or account. Use format=csv to export daily changes. Workspace admins can request a metrics refresh with POST /api/v1/analytics/sync every 15 minutes.

Shell
curl --fail-with-body -sS "$POSTHOOP_URL/api/v1/analytics?postId=$POST_ID&limit=10" \
  -H "Authorization: Bearer $POSTHOOP_API_KEY"

Interpret results

snapshots are newest first by takenAt. Each contains an accountId, a platform, and a metrics object mapping metric names to numbers. Account-level snapshots have a null postId, postTargetId, and caption.

Metric names and availability depend on the platform and its permissions. Treat each record as a point-in-time reading. When graphing cumulative counts, group by target and use the change between readings. A known subject can return an empty list before Posthoop collects its first sample.