YouTube API

YouTube Shorts API

Get a channel's latest Shorts, newest first, with view counts and thumbnails.

  • 100 free credits
  • No card needed
  • No Google Cloud project or OAuth
curl "https://pipefetch.com/v1/youtube/channel/shorts?channel=%40MrBeast&limit=20" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 40 of the channel's latest Shorts, newest first
  • Title, link and thumbnail for each
  • View counts as YouTube displays them, converted to numbers
  • The channel id, name and URL
200 OK · application/json
{
  "data": {
    "channel": {
      "id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
      "name": "MrBeast",
      "url": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA"
    },
    "shorts": [
      {
        "videoId": "sHpEqeSByPI",
        "url": "https://www.youtube.com/shorts/sHpEqeSByPI",
        "title": "Unboxing The World’s Largest Toy",
        "viewCount": 22000000,
        "viewCountIsExact": false,
        "thumbnailUrl": "https://i.ytimg.com/vi/sHpEqeSByPI/sardefault.jpg?sqp=-oaymwEdCJUDENAFSFWQAgHyq4qpAwwIARUAAIhCcAHAAQY=&rs=AOn4CLB2V7YWBrDdLVa4cnMdEBvQYu00hA"
      },
      {
        "videoId": "kPI9Mc35mOg",
        "url": "https://www.youtube.com/shorts/kPI9Mc35mOg",
        "title": "Trap Door Roulette",
        "viewCount": 103000000,
        "viewCountIsExact": false,
        "thumbnailUrl": "https://i.ytimg.com/vi/kPI9Mc35mOg/sardefault.jpg?sqp=-oaymwEdCJUDENAFSFWQAgHyq4qpAwwIARUAAIhCcAHAAQY=&rs=AOn4CLCFqW_X3pokjvblVc71mCamXfPyhQ"
      }
    ]
  },
  "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/channel/shorts

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

Parameters

NameTypeDescription
channelrequired string Channel handle (@mkbhd), channel id (UC…) or any channel URL.
limitoptional integer How many of the latest Shorts to return. Default: 20. From 1 to 40.

Good to know

  • View counts are YouTube's rounded display values (22M). A channel without Shorts answers 404 no_shorts and costs nothing.

Open the reference

Use cases

What people build with it

  • Short-form trend tracking

    Watch which Shorts take off on the channels in your niche.

  • Creator benchmarking

    Compare Shorts output and reach across creators.

  • Cross-platform reports

    Put Shorts next to the same creator's other short-form numbers.

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

Can I get likes and the publish date of a Short?

The list carries title, views and thumbnail, which is what YouTube shows on the Shorts tab. For exact counts and the publish time, pass the Short's link to the video endpoint.

What if the channel has no Shorts?

The request answers 404 no_shorts 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.

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.