YouTube API

YouTube Video API

Everything public about one video in a single call: exact counts, the full description, tags, chapters and the channel behind it.

  • 100 free credits
  • No card needed
  • No Google Cloud project or OAuth
curl "https://pipefetch.com/v1/youtube/video?video=jNQXAC9IVRw" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Exact view, like and comment counts
  • Title, full description, category, tags and hashtags
  • Publish time, duration, chapters and thumbnail
  • Live, upcoming, age-restricted and comments-off flags
  • The channel: id, handle, verification and subscriber count
200 OK · application/json
{
  "data": {
    "videoId": "jNQXAC9IVRw",
    "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "title": "Me at the zoo",
    "description": "Microplastics are accumulating in human brains at an alarming rate\nhttps://www.youtube.com/watch?v=0PT5c1z3LL8\n\n“Nanoplastics and Human Health” with M…",
    "publishedAt": "2005-04-24T03:31:52.000Z",
    "durationSeconds": 19,
    "viewCount": 448773635,
    "likeCount": 20141346,
    "commentCount": 10644331,
    "category": "Film & Animation",
    "keywords": [
      "me at the zoo",
      "jawed karim"
    ],
    "hashtags": [],
    "chapters": [
      {
        "title": "Intro",
        "startSeconds": 0
      },
      {
        "title": "The cool thing",
        "startSeconds": 5
      }
    ],
    "thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
    "isLive": false,
    "isUpcoming": false,
    "isFamilySafe": true,
    "isAgeRestricted": false,
    "commentsTurnedOff": false,
    "channel": {
      "id": "UC4QobU6STFB0P71PMvOGN5A",
      "name": "jawed",
      "handle": "@jawed",
      "url": "https://www.youtube.com/@jawed",
      "isVerified": true,
      "avatarUrl": "https://yt3.ggpht.com/uI3VE4PVqvCy0xnWLqMJnEzyBUm3T8VHOCp4ee-1RxdHqKXCdUE_qXYQnpf9AfuEoIPactVyDhM=s800-c-k-c0x00ffffff-no-rj",
      "subscriberCount": 6740000
    }
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/youtube/video

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
videorequired string Video URL or 11-character video id. Watch, youtu.be, Shorts, embed and live links all work.

Good to know

  • View, like and comment counts are the exact numbers, not the rounded labels YouTube displays.

Open the reference

Use cases

What people build with it

  • Track performance over time

    Call the endpoint on a schedule and store the exact counts to see how a video grows.

  • Enrich a list of videos

    Turn a spreadsheet of video links into titles, channels, durations and statistics.

  • Content analysis

    Study the tags, descriptions and chapter structure that successful videos in a niche use.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000requests a month
5005,00050,000250,000
5,000video transcripts
5,000searches or video lookups
100,000comments

One credit is one request that returns data. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 requests
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 100 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Are the counts exact or rounded?

Exact. You get 448773635, not "448M views".

Which links can I pass?

A watch link, a youtu.be link, a Shorts link, an embed or live link, or just the 11-character video id.

Does it return dislikes?

No. YouTube stopped publishing dislike counts in 2021, so no public source has them.

What happens with private or deleted videos?

The request answers 404 video_not_found and costs nothing.

What does a request cost?

One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.

Guides

Step-by-step guides

More

More YouTube APIs

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.