Skip to content

How to list a YouTube channel's Shorts as JSON, without an API key

By Hayden Barnett · · 6 min read

A YouTube channel’s Shorts are the videos on its Shorts tab, the page at youtube.com/@handle/shorts. The YouTube Data API does not publish a method that returns that tab. One GET still does, with no Google Cloud project and no API key:

export FETCHPROOF_API_KEY=fp_live_xxx

curl -s "https://api.fetchproof.com/v1/youtube/channel/shorts?handle=NASA&sort=newest" \
  --header "x-api-key: $FETCHPROOF_API_KEY"

NASA is the published example on the channel Shorts endpoint. handle is the text after @ in the channel URL. In https://www.youtube.com/@NASA/shorts it is NASA. A leading @ is removed before the lookup, so @NASA is the same call. channelId is the other way to name the channel: the UC... id in youtube.com/channel/UC.... Pass handle or channelId. A full channel URL is not a parameter on this operation. sort is newest, which is also what you get when you leave sort off, or popular.

There is no YouTube credential in the request. The only key is the Fetchproof key in x-api-key.

Why search.list is not a Shorts list

The call people reach for is Search: list. As of 28 Nov 2026 that page defines videoDuration=short as “Only include videos that are less than four minutes long.” That is a length filter. It does not mean the video is on a Shorts tab. A video under four minutes can be an ordinary upload, and the parameter list has no value that means Short.

The same page caps a channel search. If the request sets channelId and type=video, and it does not also set forContentOwner, forDeveloper or forMine, “Search results are constrained to a maximum of 500 videos.” A longer Shorts tab is cut off, and the response does not say the rest exists. The quota line on that page is “100 calls per day” for this method, and each call “has a quota cost of 1 unit in the Search Queries quota bucket.”

Channels: list is the other official route. Its contentDetails.relatedPlaylists object documents likes, a deprecated favorites, and uploads. There is no Shorts playlist in that object. uploads is “the playlist that contains the channel’s uploaded videos,” so it mixes the long-form grid and the Shorts. The note on order=date says to read recent uploads with playlistItems.list on that playlist, not with search. That playlist is still every upload. The playlist tutorial is how you read a playlist once you already have its id.

Opening /@handle/shorts in a browser, or with a local downloader on your own IP, is the other workaround in circulation. That page is the real tab. On a cloud IP, the same bot checks that stop a transcript job halfway through a channel show up on this page too. The YouTube transcripts post covers that failure.

What comes back

Field names below match the published schema for channel Shorts. Titles and ids are placeholders, so the sample does not claim what any channel’s tab holds today.

{
  "success": true,
  "credits_remaining": 99,
  "credits_charged": 1,
  "videos": [],
  "channels": [],
  "playlists": [],
  "shorts": [
    {
      "type": "short",
      "id": "<video id>",
      "url": "https://www.youtube.com/watch?v=<video id>",
      "title": "<title>",
      "thumbnail": "https://img.youtube.com/vi/<video id>/maxresdefault.jpg",
      "viewCountText": "57K",
      "viewCountInt": 57000,
      "description": null,
      "commentCountText": null,
      "commentCountInt": null,
      "likeCountInt": null,
      "likeCountText": null,
      "publishDate": null,
      "genre": null,
      "durationMs": null,
      "durationFormatted": null
    }
  ],
  "shelves": [],
  "lives": [],
  "continuationToken": "<opaque token, or null>"
}

Read shorts. videos, channels, playlists, shelves and lives are present and empty on this operation, because the body uses the same envelope as a YouTube search response. A caller that prints videos and sees [] has not missed the Shorts. They are in the other array.

Each row has type set to short, the watch url, the title and a thumbnail. viewCountText is the view label from the Shorts tab, with the word “views” removed. viewCountInt is that label as a number: a tab that prints 57K comes back as the text 57K and the integer 57000. Sort on the integer. It is the tab’s rounding, not a second measurement. Description, likes and publishDate are filled when the watch page returns them, and null when it does not. publishDate, when set, is an ISO 8601 timestamp with an offset. A date with no time stays null.

Paging to the end

continuationToken is null when this page is the last one. When it is a string, send it back unchanged. The token already identifies the next page of the order you started, so you can repeat handle and sort or leave them off. URL-encode the token. Do not trim it, and do not guess the next one:

TOKEN="<continuationToken from the previous response>"

curl -s -G "https://api.fetchproof.com/v1/youtube/channel/shorts?handle=NASA&sort=newest" \
  --data-urlencode "continuationToken=$TOKEN" \
  --header "x-api-key: $FETCHPROOF_API_KEY"

YouTube decides how many rows a page holds. A short page is not the last page. Stop when the token is null.

sort=popular is the Shorts tab’s Popular order, and sort=newest is Latest. Pick it on the first request. A token from a newest walk is not a page of the popular list.

Python

The standard library is enough. Keep the key in the environment. The samples on this page use the placeholder fp_live_xxx.

import json
import os
import urllib.parse
import urllib.request

handle = "NASA"
token = None
shorts = []

while True:
    url = "https://api.fetchproof.com/v1/youtube/channel/shorts?handle=" + urllib.parse.quote(handle)
    url += "&sort=newest"
    if token:
        url += "&continuationToken=" + urllib.parse.quote(token, safe="")
    request = urllib.request.Request(
        url,
        headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
    )
    with urllib.request.urlopen(request, timeout=60) as response:
        body = json.load(response)
    shorts.extend(body["shorts"])
    token = body.get("continuationToken")
    if not token:
        break

print(len(shorts), "Shorts")
for row in shorts:
    print(row["viewCountInt"], row["url"], row["title"])

urllib.parse.quote with safe="" encodes every reserved character in the token. urlopen raises when the status is not successful, so a missing channel stops the loop instead of writing an empty list. Read body["shorts"]. The empty videos array is not the result.

Node

Node 18 and later include fetch:

const handle = "NASA";
const shorts = [];
let token = null;

do {
  const endpoint = new URL("https://api.fetchproof.com/v1/youtube/channel/shorts");
  endpoint.searchParams.set("handle", handle);
  endpoint.searchParams.set("sort", "newest");
  if (token) endpoint.searchParams.set("continuationToken", token);
  const response = await fetch(endpoint, {
    headers: { "x-api-key": process.env.FETCHPROOF_API_KEY },
  });
  if (!response.ok) {
    throw new Error(`YouTube channel Shorts failed: HTTP ${response.status}`);
  }
  const body = await response.json();
  shorts.push(...body.shorts);
  token = body.continuationToken;
} while (token);

console.log(shorts.length, "Shorts");
console.log(shorts.map((row) => row.url).join("\n"));

searchParams.set encodes the token. The same request works from an n8n HTTP Request node with the x-api-key header, the setup the n8n post walks through. Point the node’s pagination at continuationToken and stop when it is empty. From an MCP client the tool name is youtube_channel_shorts. Server setup is in the MCP docs.

Shorts, uploads, and one video

Channel videos is the uploads grid. Use it when the question is what the channel has posted, and this endpoint when the question is what is on the Shorts tab. A Short can appear in both, and the two lists are not the same order.

A Shorts row is the tab. Description cards, the owner and the rest of the watch page are on the video endpoint, one call per url. Captions for a row are on transcript. Page the tab once, then fetch details only for the rows you keep. Every YouTube route is on the YouTube API page.

What a call costs

Each Shorts page costs 1 credit by default, so a channel costs as many credits as it has pages. Errors, blocked or timed-out requests, invalid requests and cache hits cost nothing. A not-found or empty result is charged only where that operation’s published cost says so.

This operation publishes that 1-credit default and no separate not-found or empty price. A channel YouTube does not show is HTTP 404, with success true, error set to not_found, message “Account doesn’t exist”, and credits_charged 0. A channel with no Shorts tab is a normal HTTP 200 whose shorts array is empty and whose continuationToken is null, and that page costs the 1-credit default. A request with no handle, no channelId and no continuationToken is HTTP 400, with error missing_parameter and message “You must provide a channelId or handle”. Any other sort is HTTP 400, with error invalid_parameter and message “sort must be newest or popular”. The channel Shorts page states the published cost. Read credits_charged on each body if you want to log spend.

New accounts get 100 free credits, with no card. Pack sizes and prices are on the pricing page. Freelance is $27 for 25,000 credits. Business is $297 for 500,000 credits. Credits are prepaid and do not expire. How that compares with a daily quota is in prepaid credits vs monthly subscriptions.

FAQ

Do I need a YouTube Data API key or a Google Cloud project?

No. The request carries only the Fetchproof key in x-api-key. There is no OAuth flow and no Search Queries quota to track, because the call does not go through your Google project.

Is videoDuration=short the same thing as a Short?

No. On Search: list, short means a video under four minutes. This endpoint returns the channel’s Shorts tab. A short video that is not on that tab is not in shorts.

Can it read a private channel?

A channel YouTube does not show to a logged-out visitor is the HTTP 404 above. This call has no YouTube login, so a private channel is not a list you can page.

How do I know I reached the last page?

continuationToken is null on the last page. Do not stop because a page looks short, and do not build the next token yourself. Send back the string you received.

Why are description and publishDate null?

The Shorts tab usually carries the title, the thumbnail and the view label. Description, likes and publishDate are filled when the watch page returns them on that response. A null means this response did not include the field. publishDate is also null when YouTube sends a date with no time, because only an ISO 8601 timestamp with an offset is kept.

Try it with 100 free credits

Sign up with an email address, no card. Credits never expire. Errors, invalid requests and cache hits cost 0 credits, and each endpoint page lists exactly what it charges.