XreplyAIDevelopers
API ReferenceAnalytics

Get analytics rollups

Requires scope: `analytics:read`. Returns per-account rollups with period-over-period comparison. The date window selects posts by publish time (falling back to scheduled time, then last-modified, when a post has never been published).

GET
/analytics
AuthorizationBearer <token>

A personal API key created in the dashboard (Starter, Pro, and Team plans).

In: header

Query Parameters

start_date?string

Inclusive start date (YYYY-MM-DD).

Formatdate
end_date?string

Inclusive end date (YYYY-MM-DD).

Formatdate
social_account_id?integer
platform?string

Value in

  • "twitter"
  • "linkedin"
  • "youtube"
  • "instagram"
  • "threads"
  • "pinterest"
  • "tiktok"
  • "bluesky"
  • "mastodon"
  • "facebook"
  • "google_business"
  • "discord"
  • "telegram"
  • "tumblr"
  • "slack"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/analytics"
{  "comparison": {    "start_date": "2026-07-01",    "end_date": "2026-07-13",    "prior_start_date": "2026-06-18",    "prior_end_date": "2026-06-30"  },  "followers_gained": 42,  "supported_platforms": [    "twitter",    "linkedin",    "instagram"  ],  "platform_capabilities": {    "twitter": {      "post_metrics": true,      "followers": true    },    "tumblr": {      "post_metrics": false,      "followers": true    }  },  "rollups": [    {      "social_account_id": 301,      "platform": "twitter",      "total_posts_with_metrics": 18,      "total_impressions": 54210,      "avg_engagement_rate": 3.4,      "prior_total_impressions": 48200,      "prior_total_posts_with_metrics": 15,      "pct_change_impressions": 12.5    }  ]}