ChirpieDocs
API Reference

Analytics

Retrieve engagement metrics for published posts.

Get Post Analytics

GET /api/v1/analytics/posts/:id
Authorization: Bearer chirpie_sk_YOUR_KEY

Returns engagement metrics for a published post. Metrics are cached for 1 hour — subsequent requests within that window return cached data.

Response 200 OK

{
  "data": {
    "post_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "impressions": 1250,
    "likes": 42,
    "retweets": 8,
    "replies": 3,
    "quotes": 1,
    "bookmarks": 5,
    "clicks": 15,
    "fetched_at": "2026-03-23T10:30:00.000Z"
  }
}

Metrics

MetricDescription
impressionsNumber of times the post was viewed
likesNumber of likes
retweetsNumber of retweets
repliesNumber of replies
quotesNumber of quote tweets
bookmarksNumber of bookmarks
clicksLink clicks (may be null if not available)
fetched_atWhen metrics were last fetched from X

Error Responses

StatusCodeCondition
400bad_requestPost not yet published or missing platform ID
404not_foundPost not found
502upstream_errorFailed to fetch from X (returns cached data if available)

Analytics Retention

PlanRetention
Free48 hours
Starter30 days
Pro90 days
Scale365 days
Enterprise365 days

On this page