Social media5 min readBy Purrkey teamUpdated

How to list a YouTube channel's Shorts by handle

Get a YouTube channel's Shorts feed with IDs, URLs, views, likes, durations, thumbnails, and cursor pagination for a three-channel sponsorship audit

On this page

You have three YouTube channels in a sponsorship shortlist and need the first page of Shorts from each one, sorted by popular, to compare view and like totals before you plan a bundle. The deliverable is one table row per Short, with the channel handle beside the video fields

The table below is a design, not a run result. Values here are placeholders showing the shape

Example input and worksheet design

Example input: handle set to @creatorlabs, sort set to popular. Replace the example handle with your own channel handle. The input contract accepts either a handle or a channelId that begins with UC

idtitleurlviewsviewsAvailablelikesdurationcreatedUtcchannel handle
(video id)(caption)(url)(number)true or false(number or null)(duration)(epoch seconds)@creatorlabs

The handle column is repeated on each row so the three channels stay separate when the rows sit in one worksheet. A row with viewsAvailable set to false is still a Short row, but mark that row before you compare view totals

What the tool takes

anyapi.youtube.channel_shorts lists a channel's Shorts by handle or channelId, with cursor pagination, views and publish timestamps. The input contract requires either handle or channelId. handle can include or omit the @ at the start. channelId is a YouTube channel ID beginning with UC. sort accepts latest, newest or popular; latest and newest are equivalent. cursor is a continuation token from a previous response. Agents call it through POST /v1/runs with toolId anyapi.youtube.channel_shorts

The schema requires either handle or channelId, so a request with neither is outside the schema. If you already have a channelId, use it in place of the handle

Pull one Shorts page per channel

Set sort to popular for the sponsorship comparison, then call the tool once for each of the three channels. Cursor pagination returns one Shorts page per call. To continue, pass the returned nextCursor as cursor on the next call. Stop when nextCursor is null. For this first audit, one page per channel keeps the comparison small

The page boundary is the limit to plan around. A channel with more Shorts than one page will not fit in one response, so a one-page audit compares the first page only. If you need another page, the next call is a second billed call for that channel. If the sponsorship bundle also covers live streams, the companion guide is How to list a YouTube channel's live streams

Read the output fields that drive the decision

Start with found. When found is true, data holds the normalized Shorts page and data.shorts holds the rows. When found is false, data is null and reason is not_found; the contract says a found: false answer is a successful call, not an error. The source states the target does not exist or returned nothing for it

For each Short, use id as the key, title and url as the public label and link, and createdUtc as the UTC epoch timestamp in seconds when supplied. duration is a string when supplied. image is the thumbnail URL with tracking query parameters stripped. contentType is short for items from the dedicated Shorts feed

The comparison fields are views, viewsAvailable and likes. viewsAvailable says whether views is backed by a public count in the upstream response. Mark rows where it is false before you compare view totals. likes is a public like count or null when the serving source does not report it. Use nextCursor only when you want another page; it is null when no next page is available

The agent prompt

Use this prompt with the three example handles replaced by your own. The values are placeholders showing the shape

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the first page of Shorts for three YouTube channels, sorted by popular. Check the current inputs and price of anyapi.youtube.channel_shorts before running anything. Call the tool once per channel with sort set to popular. Return a table with id, title, url, views, viewsAvailable, likes, duration, createdUtc and channel handle. If found is false, put reason in the table and leave the Shorts fields empty. Do not paginate beyond the first page for this audit.

Example handles, replace with your own:
@creatorlabs
@sample-maker
@studio-demo

Estimated tool cost

The catalog lists anyapi.youtube.channel_shorts at up to $0.0036 per call, read through the Purrkey catalog on November 13, 2026. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, not settled charges. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
Check one channel's Shorts pagecalls x max priceup to $0.0036 per call1$0.0036
Audit three channels, one page eachcalls x max priceup to $0.0036 per call3$0.0108

A three-channel audit at one page per channel is 3 calls, so the planned total is $0.0108. If you fetch a second page for one channel, add one more call at up to $0.0036. The first check of one channel's Shorts page is $0.0036 at most

Next action

Replace the example handles with your three channel handles and open YouTube Channel Shorts to check the current tool page before you run the audit

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with YouTube.
Explore YouTube tools and pricing

FAQ

How do I list a YouTube channel's Shorts by handle?

Call anyapi.youtube.channel_shorts with the channel handle, including or omitting the @ at the start, and optionally set sort to popular. The response returns one Shorts page plus a nextCursor for another page.

What input does anyapi.youtube.channel_shorts need?

The input needs either handle or channelId; channelId begins with UC. You can also send sort as latest, newest or popular, and cursor from a previous response.

How do I read the Shorts output?

Check found first. When it is true, read data.shorts for id, title, url, views, viewsAvailable, likes, duration and createdUtc; when it is false, reason is not_found.

What does viewsAvailable mean?

viewsAvailable says whether views is backed by a public count in the upstream response. Use it to mark rows where views is not backed by a public count before comparing view totals.

How many calls does a three-channel audit take?

One page per channel is one call per channel. Three channels with one page each is three calls, at most $0.0108 at up to $0.0036 per call.

What happens if a channel is not found?

A found: false answer is a successful call, not an error, and reason is not_found when the source states the target does not exist or returned nothing for it. The data field is null.

How does cursor pagination work?

cursor is a continuation token from a previous response. Pass the returned nextCursor to continue; nextCursor is null when no next page is available.

Next step

Try this with YouTube

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See YouTube tools

Share this article