Social media5 min readBy Purrkey teamUpdated

How to list trending YouTube Shorts with an AI agent

Get currently trending YouTube Shorts with titles, channels, views, likes, comments, durations, and URLs from a single API call, then turn the list into 10 content candidates for review

On this page

You need 10 candidate YouTube Shorts for next week's content planning, and you want titles, channels, views, likes, comments, durations and URLs in one review sheet. One call to anyapi.youtube.trending_shorts returns the current trending list. The table below is the deliverable: one row per candidate, plus a content angle you add by hand. Values in the design table are placeholders showing the shape; no run has been executed for this article

The worksheet for 10 candidates

Use a table with these columns: title, channelTitle, views, likes, comments, duration, url and content angle. Keep url beside each title so the editor can open the source. The content angle is your note on format or topic for the creative team, not a field the tool returns

Example rows, with invented titles and placeholder values:

titlechannelTitleviewslikescommentsdurationurlcontent angle
Example short title AExample Channel A0000:25https://short.example/example-a(reader adds)
Example short title BExample Channel B0000:40https://short.example/example-b(reader adds)

The design is a shortlist for review, not a ranked prediction. The contract does not specify a ranking order for data.shorts, so the editor sets the review order

For a channel-level review after you choose a source, the companion guide covers checking YouTube channel stats and links

The input is an empty object

anyapi.youtube.trending_shorts is called through POST /v1/runs with toolId anyapi.youtube.trending_shorts. The contract lists no required or optional fields, and its example input is {}. A call with {} is the setup

The contract documents no count field, so you cannot request exactly 10 rows in the call. Take the first 10 usable rows from the returned array and note if fewer rows come back

How to read the output fields

The top level has found, data and, when found is false, reason. found is the first check. If it is false, read reason; the contract defines reason: not_found as the source stating the target does not exist or returning nothing for it. It also says a found: false answer is a successful call, not an error

data is either null or an object with a shorts array. Read data.shorts when rows are present. Each item can include id, url, title, channelTitle, views, likes, duration, comments, category, createdUtc, durationMs, image, authorHandle, authorId and authorUrl. The required fields for each item are id, url, title, channelTitle, views, likes and duration

Use title and channelTitle to group topics and sources. Use views and likes to compare response, then read duration to judge the format length. url is the source record for the row. createdUtc is a UTC epoch timestamp in seconds, and durationMs is length in milliseconds if you need a numeric duration

Comment counts are rounded

Comment counts of 1,000 or more are approximate because they are rounded as YouTube shows them on Shorts. The contract says comments is rounded that way, so keep it as a rough signal when two rows look close

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list 10 candidate YouTube Shorts for next week's content planning. Check the current inputs and price of anyapi.youtube.trending_shorts before running anything. Call the tool once with an empty object, {}. Do not add routing options or a count field. Return a Markdown table with columns title, channelTitle, views, likes, comments, duration, url and content angle. Leave content angle blank for the editor. If found is false, return the reason and do not invent rows. Do not describe a run that did not happen.

Example input: {}

Replace the example input with your live call when you run it. Keep the prompt's table columns unchanged so the worksheet stays comparable across weeks

Estimated tool cost

Prices from the Purrkey catalog, read 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. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
Single trending checkcalls x max_call priceup to $0.0012 per call1$0.0012
Weekly content-planning refreshcalls x max_call priceup to $0.0012 per call7$0.0084

A single check covers one call. A weekly refresh covers seven calls, and the seven-call plan is at most $0.0084

Open the trending Shorts tool page to check the current listing and run the first call

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 trending YouTube Shorts with an AI agent?

Set up the Skill, check the current inputs and price of anyapi.youtube.trending_shorts, then call the tool once with an empty object. Return a table with title, channelTitle, views, likes, comments, duration, url and content angle.

What inputs does anyapi.youtube.trending_shorts take?

The contract lists no required or optional fields, and its example input is {}. Routing options such as source, ignoreSources, preferLatencyUnderMs and allowFallbacks were removed from the contract on purpose.

What does anyapi.youtube.trending_shorts return?

It returns found and data. The data field is either null or an object with a shorts array. Each item can include id, url, title, channelTitle, views, likes, duration and comments.

What do found and reason mean in the output?

found is the first check. If found is false, reason is not_found, which the contract defines as the source stating the target does not exist or returning nothing for it. The contract says a found: false answer is a successful call, not an error.

How much does a trending YouTube Shorts check cost?

The price is up to $0.0012 per call at max_call. One call is at most $0.0012, and a seven-call weekly refresh is at most $0.0084.

Why are comment counts approximate for trending YouTube Shorts?

Comment counts of 1,000 or more are approximate because they are rounded as YouTube shows them on Shorts. The contract says comments is rounded that way.

How many Shorts should I review for a weekly content plan?

The worksheet in this guide is designed for 10 candidate rows taken from the returned shorts array. The contract documents no count field, so you take the first 10 usable rows and note if fewer rows come back.

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