Analytics API for Developers
Track engagement, reach, and performance across all connected platforms. Unified metrics in one dashboard.
No credit card required · Full API access
Features
Everything you need
Cross-Platform Metrics
Aggregate likes, shares, comments, impressions, and reach across all 17 platforms into a single normalized data model. Compare apples to apples regardless of the source.
Engagement Tracking
Monitor engagement rate, click-through rate, and interaction breakdowns for every post. Identify your highest-performing content and understand what resonates with your audience.
Audience Insights
Access follower growth, demographics, active hours, and geographic distribution for each connected account. Use data-driven insights to optimize your posting schedule and content strategy.
Performance Comparison
Compare performance across platforms, time periods, content types, or campaigns. Spot trends and outliers with built-in statistical summaries and percentage change calculations.
Historical Data Access
Query up to 24 months of historical analytics data. RelayAPI backfills metrics from the moment you connect an account, so you start with a full picture — not a blank slate.
Export & Reporting
Export analytics data as CSV or JSON for use in your own dashboards, BI tools, or client reports. Schedule automated exports to S3, GCS, or webhook endpoints.
Real-Time Updates
Metrics are refreshed every 15 minutes for active posts and hourly for older content. Request an on-demand refresh for any post when you need the latest numbers immediately.
Custom Date Ranges
Query analytics for any date range — last 7 days, last quarter, or a custom window. All responses include granularity options: hourly, daily, weekly, or monthly roll-ups.
How It Works
Up and running in minutes
Get Your API Key
Sign up and generate your credentials in seconds.
Connect Social Accounts
Link platforms via OAuth with our guided setup flow.
Start Building
Use the API to publish, manage, and track content across all platforms.
Why Developers Choose RelayAPI
One Dashboard, Every Metric
Every platform exposes metrics differently — different names, different update frequencies, different auth scopes. RelayAPI normalizes it all into a single, consistent analytics interface.
Enterprise-Grade Reliability
Metrics are collected on a resilient pipeline with 99.9% uptime. Automatic retries on failed fetches, data deduplication, and anomaly detection ensure your analytics are always accurate and available.
Developer-First Experience
Clean JSON responses, cursor-based pagination for large datasets, TypeScript types for every metric, and interactive API explorer. Build beautiful dashboards without wrestling with raw platform data.
Quick Start
Start building in minutes
curl https:"color:#6a9955">//api.relayapi.dev/v1/analytics/posts/post_a1b2c3d4e5 \
-H "Authorization: Bearer rlay_live_xxxxxxxx"
"color:#6a9955"># Response:
"color:#6a9955"># {
"color:#6a9955"># "post_id": "post_a1b2c3d4e5",
"color:#6a9955"># "platforms": {
"color:#6a9955"># "twitter": { "impressions": 12450, "likes": 342, "retweets": 87, "replies": 23 },
"color:#6a9955"># "linkedin": { "impressions": 8700, "likes": 156, "comments": 42, "shares": 31 },
"color:#6a9955"># "bluesky": { "impressions": 3200, "likes": 98, "reposts": 24, "replies": 11 }
"color:#6a9955"># },
"color:#6a9955"># "totals": { "impressions": 24350, "engagements": 804, "engagement_rate": 0.033 }
"color:#6a9955"># }Frequently Asked Questions
Ready to Start Building?
Get your API key and start publishing across 17 platforms in minutes.
Start Building Free© 2026 Relay. All rights reserved.