Skip to main content
Unified Social Media Analytics API

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
No credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin"], "content": "Hello world!" }
Published
2 platforms
TwitterLinkedIn
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XLIFBTT
One API, every platform
DF

"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"

David Flor, Founder at Darklight Interactive

Divanshu KhatterMarketing Manager at Sembark

"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."

Divanshu Khatter, Marketing Manager at Sembark

Het TikawalaFounder at Kalizzle AI Studio

"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.

POSTRequest
curl "https://api.postpeer.dev/v1/analytics?postId=post_abc123" \
  -H "x-access-key: your-api-key"
JSONResponse
{
  "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.

One 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.

01

REST API

One predictable endpoint for every supported platform. Connect accounts once, then publish everywhere.

02

Typed, drop-in Node.js and Python clients generated from the same API contract.

03

No-Code Automation

Build social publishing and scheduling workflows without creating a custom backend.

04

AI Agents & MCP

Give Claude, Cursor, Codex or your own agent access through hosted MCP, Agent Skills or REST tool calling.

publish.js
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();
One request · Twitter + LinkedIn

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.