Skip to main content
Sign Up
YouTube API

YouTube Analytics API

Track views, likes, comments, shares, watch time, and average view duration for your YouTube videos and Shorts. One API call, no YouTube Data API complexity.

  • Views, likes, comments, and shares per video
  • Watch time and average view duration
  • Works for both long-form videos and Shorts
  • No YouTube API credentials 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=youtube&accountId=acc_yt_789&sortBy=views&order=desc&limit=10" \
  -H "x-access-key: your-api-key"

Response

JSON
{
  "success": true,
  "data": [
    {
      "postId": "post_ghi789",
      "platform": "youtube",
      "platformPostId": "dQw4w9WgXcQ",
      "accountId": "acc_yt_789",
      "metrics": {
        "views": 12450,
        "likes": 342,
        "comments": 56,
        "shares": 28,
        "watchTimeMinutes": 8320,
        "averageViewDuration": 245,
        "engagementRate": 3.42
      },
      "collectedAt": "2026-03-31T12:00:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 1,
    "totalPages": 1
  }
}

Everything You Need for YouTube Analytics

Track video performance across views, engagement, and watch time without managing the YouTube Data API.

Video-Level Metrics

Get views, likes, comments, and shares for every YouTube video. Track performance from the moment of publication.

Watch Time Analytics

See total watch time in minutes and average view duration in seconds. Understand how long viewers are actually watching your content.

Shorts Support

Analytics work for both long-form YouTube videos and YouTube Shorts. Same endpoint, same response format.

Engagement Rate

PostPeer calculates engagement rate automatically — the percentage of views that resulted in likes, comments, or shares.

Date Range Filtering

Filter video analytics by date range. Find your best-performing videos over any time period.

No YouTube API Setup

Skip the YouTube Data API, OAuth consent screens, and quota management. PostPeer handles everything.

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