PeumeAPI

Social media data · YouTube

YouTube video stats by video id — views, likes, duration

Get a YouTube video's metadata and stats (views, likes, comments, duration)

$0.0005 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/youtube-video-stats-by-video-id-views-likes-duration \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "part": "snippet,statistics,contentDetails",
    "id": "dQw4w9WgXcQ"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: youtube-video-stats-by-video-id-views-likes-duration.

Parameters

partRequiredstring

snippet=title/description/tags, statistics=counts, contentDetails=duration

Example: snippet,statistics,contentDetails

idRequiredstring

video id (the v= parameter of the watch URL); up to 50 comma-separated ids in one call

Example: dQw4w9WgXcQ

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.