How to Use YouTube trending Shorts in opencode
Fetch about 48 YouTube Shorts with titles, links, channel details, publish dates, durations, and public engagement counts. Use it to discover content ideas across channels; repeat calls can return new Shorts.
Prompts to try with YouTube trending Shorts in opencode
Copy an example into opencode, or ask in your own words.
Use YouTube trending Shorts to populate a review table in this project with titles, channel names, links, durations, and views. Highlight basketball examples for a Nike content brief.
Use YouTube trending Shorts three times and add a deduplicated report to this project. Select cooking examples for a Tasty editorial review and include their public counts.
Use YouTube trending Shorts to build a duration comparison report for science-related results relevant to NASA. Show titles, links, publish dates, and views.
Use YouTube trending Shorts and add a title-format summary to this project's reporting page. Focus on soccer results for an adidas brief and link every example.
Use YouTube trending Shorts to create a channel shortlist for a LEGO partnership review. Select relevant returned videos and show their titles, links, likes, and views.
How to set up YouTube trending Shorts in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run YouTube trending Shorts
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "scrapecreators", "model": "scrapecreators/youtube-shorts-trending", "input": {} }'
Then paste one of the prompts above: opencode finds YouTube trending Shorts on Spiral, shows the price and runs it.
YouTube trending Shorts providers and prices
Spiral runs YouTube trending Shorts through ScrapeCreators. Open a card for today's price, with every fee included.
What can you do with YouTube trending Shorts in opencode?
Build an editorial review table from YouTube Shorts titles, links, durations, and public counts. Your coding agent can add deduplication and topic comparisons to the project's reporting tools.
Prepare a content planning brief
Collect Shorts relevant to basketball, cooking, or science from the returned results. Give editors example titles, links, durations, and public counts to inform original ideas.
Build a creator discovery shortlist
Group relevant Shorts by public channel and shortlist creators for a partnership review. Include the videos that explain each choice.
Compare video lengths
Compare durations and public engagement across Shorts about the same topic. Use the results to propose length tests for your next production cycle.
Review title patterns
Sort returned titles into questions, challenges, demonstrations, and other editorial formats. Attach example links and counts so an editor can inspect the evidence.
Maintain a discovery digest
Collect results on a schedule and remove previously seen video IDs. Summarize newly encountered Shorts for a public brand or creator's editorial team.
Compare engagement within a batch
Calculate likes and comments per thousand views for returned Shorts with the required counts. Rank comparable topics to choose examples for a manual review.
More on YouTube trending Shorts and opencode
YouTube trending Shorts in other agents
Questions about YouTube trending Shorts in opencode
Can opencode use YouTube trending Shorts?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run YouTube trending Shorts like any built-in tool.
How much does YouTube trending Shorts cost in opencode?
Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a ScrapeCreators account to use YouTube trending Shorts in opencode?
No. Spiral runs YouTube trending Shorts on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up YouTube trending Shorts in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while YouTube trending Shorts runs?
YouTube trending Shorts runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
How many Shorts does one call return?
ScrapeCreators documents about 48 Shorts per request. Repeat calls can return new Shorts, so use that number as an approximate batch size.
How fresh are the results?
ScrapeCreators says it fetches the latest available YouTube information when requested. Its documentation also says repeat requests can return new Shorts.
Does this include private creator analytics?
The data covers public Shorts metadata and engagement counts. Private Studio measurements such as retention and viewed-versus-swiped-away are outside its scope.
What does a Shorts view count measure?
YouTube counts a view when a Short starts playing. A public view count therefore does not establish that viewers watched the whole video.
Why might engagement counts stop changing?
YouTube checks engagement for legitimacy and may temporarily slow, freeze, or revise counts. A fresh retrieval can still contain a counter that YouTube is validating.
Start using YouTube trending Shorts in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


