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"const res = await fetch('https://pipefetch.com/v1/youtube/channel/shorts?channel=%40MrBeast&limit=20', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/youtube/channel/shorts",
params={"channel": "@MrBeast", "limit": 20},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]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
{
"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
}
}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
| Name | Type | Description |
|---|---|---|
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.
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.
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.
One credit is one request that returns data. Requests that return nothing are free.
- $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
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 YouTube APIs
-
1 credit
YouTube Transcript API
The transcript of any public video with captions, as plain text, timestamped segments, SRT or WebVTT.
GET /v1/youtube/transcript -
1 credit
YouTube Video API
Exact views, likes and comment count, description, tags, chapters and channel for one video.
GET /v1/youtube/video -
1 credit
YouTube Channel API
Subscribers, video count, description, keywords and avatar for a channel, from a handle, id or URL.
GET /v1/youtube/channel -
1 credit
YouTube Channel Videos API
The latest uploads of a channel, newest first, with views, duration and publish time.
GET /v1/youtube/channel/videos -
1 credit
YouTube Search API
YouTube search results for a query, with the same sorting and filters the site offers.
GET /v1/youtube/search -
1 credit / 20
YouTube Comments API
Top or newest comments of a video with likes, reply counts, pinned and hearted flags.
GET /v1/youtube/comments
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.