Social Media Analytics API
Track post performance and engagement across every connected social platform with one API. Get the metrics you need without building and maintaining separate analytics integrations.
- Metrics from Twitter, YouTube, Pinterest, LinkedIn, and more in one response
- Impressions, likes, clicks, shares, and engagement rate
- Filter by post, platform, account, or date range
- Paginated results with flexible sorting
{ "platforms": ["twitter", "linkedin"], "content": "Hello world!" }
"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"
David Flor, Founder at Darklight Interactive
"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."
Divanshu Khatter, Marketing Manager at Sembark
"Great integration experience. Jonathan ships fixes within hours. Mad respect for the speed."
Het Tikawala, Founder at Kalizzle AI Studio
Add Social Media to Your Product in Three Steps
Connect once, then publish, schedule, and read data through the same API.
01
Get Your API Key
Sign up and get your API key instantly. No sales calls or complicated setup.
02
Integrate in Minutes
Connect once to PostPeer to publish, schedule, analyze, manage comments, and handle messages.
03
Support Every Major Platform
Give your users access to major social platforms without building and maintaining each integration yourself.
New to PostPeer? Read the getting started guide
One Request. Structured Response.
Clean, predictable JSON that's easy to parse and integrate.
curl "https://api.postpeer.dev/v1/analytics?postId=post_abc123" \
-H "x-access-key: your-api-key"{
"success": true,
"data": [
{
"postId": "post_abc123",
"platform": "twitter",
"platformPostId": "1234567890",
"accountId": "acc_tw_123",
"metrics": {
"impressions": 4520,
"likes": 87,
"retweets": 23,
"replies": 12,
"engagementRate": 2.7,
"clicks": 156
},
"collectedAt": "2026-03-31T12:00:00Z"
},
{
"postId": "post_abc123",
"platform": "linkedin",
"platformPostId": "urn:li:share:7654321",
"accountId": "acc_li_456",
"metrics": {
"impressions": 2100,
"likes": 45,
"comments": 8,
"shares": 5,
"engagementRate": 2.76,
"clicks": 89
},
"collectedAt": "2026-03-31T12:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 2,
"totalPages": 1
}
}Why Choose PostPeer
Build the social experience your users need while PostPeer handles the platform-specific complexity behind it.
Unified Cross-Platform Metrics
Get impressions, likes, shares, clicks, and engagement rates from every platform in a single API response. No need to integrate with each platform's analytics API separately.
Per-Post Performance
Pass a PostPeer post ID to see how that content performed on every platform it was published to. Compare Twitter engagement vs LinkedIn vs YouTube side-by-side.
Date Range Filtering
Filter analytics by date range to track performance over time. See which posts performed best last week, last month, or any custom period.
Flexible Sorting & Pagination
Sort by impressions, likes, engagement rate, or date. Paginate through large result sets with configurable page sizes up to 100 results.
Platform-Specific Metrics
Each platform returns its native metrics, retweets on Twitter, watch time on YouTube, saves on Pinterest, shares on LinkedIn. Nothing is lost in translation.
1 Credit Per Call
Simple, predictable pricing. Each analytics API call costs 1 credit regardless of how many posts or platforms are returned.
Track Social Media Performance Across Every Platform via One API
Pull analytics from supported social networks through one integration. Get each platform's native performance metrics without maintaining a separate analytics API for every network.
Twitter / X Analytics API
Track tweet impressions, likes, retweets, replies, clicks, and engagement performance programmatically.
Explore APIInstagram Analytics API
Track reach, likes, comments, shares, saves, and views across Instagram media.
Explore APIFacebook Analytics API
Track Facebook Page post engagement, including likes, comments, shares, clicks, and available video performance metrics.
Explore APILinkedIn Analytics API
Track LinkedIn Company Page post impressions, reach, likes, comments, shares, and clicks.
Explore APITikTok Analytics API
Track video views, likes, comments, and shares for connected TikTok accounts.
Explore APIYouTube Analytics API
Track video views, likes, comments, watch time, and engagement performance through the API.
Explore APIPinterest Analytics API
Track Pin impressions, saves, clicks, closeups, and engagement performance.
Explore APIGo Beyond Publishing. Build the Complete Workflow.
Give your users posting, scheduling, comments, and messaging through one PostPeer integration.
Posting API
Publish content across supported social platforms through one unified API with platform-specific publishing format options.
Explore the Posting APIScheduling API
Schedule, reschedule, or cancel content across supported platforms with precise publishing controls.
Explore the Scheduling APIComments API
Read, reply to, hide, or delete supported comments directly from your product.
Explore the Comments APIMessaging API
Read and reply to supported customer messages through one connected API.
Explore the Messaging APIOne Integration. Every Way to Build.
Start with REST, use a typed SDK, connect an automation workflow, or hand the job to an agent. The same PostPeer API powers every path.
REST API
One predictable endpoint for every supported platform. Connect accounts once, then publish everywhere.
No-Code Automation
Build social publishing and scheduling workflows without creating a custom backend.
AI Agents & MCP
Give Claude, Cursor, Codex or your own agent access through hosted MCP, Agent Skills or REST tool calling.
const response = await fetch(
'https://api.postpeer.dev/v1/posts',
{
method: 'POST',
headers: {
'x-access-key': process.env.POSTPEER_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'Hello from PostPeer!',
platforms: [
{ platform: 'twitter', accountId: 'acc_twitter' },
{ platform: 'linkedin', accountId: 'acc_linkedin' },
],
publishNow: true,
}),
},
);
const post = await response.json();Frequently Asked Questions
Power Your Next Project With a Unified Social Media API
Give your users posting, scheduling, analytics, and engagement features through one API your team can maintain.
Start with 20 free credits. No credit card required.