Skip to main content
Sign Up
Twitter/X API

Twitter/X Analytics API

Track tweet impressions, likes, retweets, replies, clicks, and engagement rates programmatically. PostPeer handles Twitter API authentication so you can focus on insights.

  • Impressions, likes, retweets, replies, and clicks per tweet
  • Engagement rate calculation included
  • Filter by date range and sort by any metric
  • No Twitter developer app required
No credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin", "instagram], "content": "Hello world!" }
Published
5 platforms
TwitterLinkedInFacebook+2
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XIGFBLITT
One API, every platform
P

"Awesome tool and even more awesome support"

Petrus, Founder at Redcove

How It Works

Add social media to your product in three steps.

01

Get Your API Key

Sign up and get your API key instantly — no sales calls, no complex onboarding.

02

Integrate in Minutes

A single endpoint to post, schedule, and manage content. Drop it into your product and go.

03

Your Users Post Everywhere

Your product now supports every major social platform — without you maintaining a single integration.

API Response Format

Clean, structured JSON that's easy to parse and integrate

Request

POST
curl "https://api.postpeer.dev/v1/analytics?platform=twitter&accountId=acc_tw_123&sortBy=impressions&order=desc&limit=10" \
  -H "x-access-key: your-api-key"

Response

JSON
{
  "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"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 1,
    "totalPages": 1
  }
}

Everything You Need for Twitter Analytics

Get actionable insights from your Twitter content without managing the Twitter API directly.

Tweet-Level Metrics

Get impressions, likes, retweets, replies, and link clicks for every tweet. See exactly how each piece of content is performing.

Engagement Rate

PostPeer calculates engagement rate automatically — the percentage of impressions that resulted in likes, retweets, replies, or clicks.

Date Range Filtering

Filter tweet analytics by date range to find your best-performing content over any time period.

Sort by Performance

Sort tweets by impressions, likes, retweets, or engagement rate to quickly identify top-performing content.

No Twitter API Complexity

Skip the Twitter API v2 analytics endpoints, OAuth 2.0 setup, and rate limit management. PostPeer gives you a single REST endpoint.

Cross-Platform Comparison

If you cross-posted content, compare Twitter performance against LinkedIn, YouTube, and Pinterest in the same API response.

Frequently Asked Questions

Ready to Add Social Media to Your Product?

One API. Every platform. Start building with free credits.

Start Posting for FreeNo credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin", "instagram], "content": "Hello world!" }
Published
5 platforms
TwitterLinkedInFacebook+2
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XIGFBLITT
One API, every platform