How to Use YouTube keyword search in VS Code
Find YouTube videos, Shorts, channels, playlists, and live streams by keyword, with video titles, links, views, duration, and channel details. Use it to inspect published results for a topic or product.
Prompts to try with YouTube keyword search in VS Code
Copy an example into VS Code, or ask in your own words.
Use YouTube keyword search for 'Blender geometry nodes beginner'. Add a research table to this project with returned titles, URLs, channel names, views, and durations.
Use YouTube keyword search for 'Sony Alpha camera review'. Create a comparison page from up to 10 returned videos, showing titles, links, channels, and durations.
Scrape https://example.com/pricing with YouTube keyword search and turn it into a comparison table. Save the result in ./assets.
Crawl the docs at https://docs.example.com with YouTube keyword search and summarize each section.
Pull the latest posts from this blog with YouTube keyword search and list their titles and dates.
How to set up YouTube keyword search in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code 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 keyword search
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-search", "input": { "query": "<query>" } }'
Then paste one of the prompts above: VS Code finds YouTube keyword search on Spiral, shows the price and runs it.
YouTube keyword search providers and prices
Spiral runs YouTube keyword search through ScrapeCreators. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Type | videos, shorts, channels, or playlists | Type of content to search for | |
| Sort by | relevance or popular | Sort by | |
| Duration | under_3_min, between_3_and_20_min, or over_20_min | Duration of the video. Only applies to videos (not shorts). | |
| Upload date | today, this_week, this_month, or this_year | Upload date |
Every API field of YouTube · Search is on its tool page: open its card above.
What can you do with YouTube keyword search in VS Code?
Build a YouTube research view for a specific topic, populated with returned video records or suggested searches. Your coding agent can turn that material into a reviewable table or topic taxonomy in the project.
Plan a tutorial brief
Research Blender tutorials through suggested searches, keyword results, or #blender videos. Turn the returned wording and video titles into a shortlist of tutorial topics to review.
Research product video topics
Explore Sony camera topics through search suggestions, product keyword results, or #sonyalpha videos. Organize the returned material into reviews, demonstrations, and tutorials for an editorial brief.
Prepare an event research brief
Explore CES through suggested search phrases, keyword results, or #ces videos. Build a review queue of product announcements and event coverage using the returned text and links where available.
Build a topic taxonomy
Use returned searches or video titles about Arduino to propose categories such as beginner projects, sensors, and troubleshooting. Review the actual returned wording before adding categories to a content library.
Compare video formats
Inspect titles, durations, views, and channel details for running-shoe keyword results or #runningshoes videos. Build a comparison of the demonstrations, reviews, and guides represented in the returned results.
Find public creator channels to review
Collect channels attached to returned Raspberry Pi videos, or inspect channel suggestions when YouTube supplies them. Produce a shortlist for a person to review for educational relevance.
More on YouTube keyword search and VS Code
Overview
YouTube keyword search in other agents
Questions about YouTube keyword search in VS Code
Can VS Code use YouTube keyword search?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run YouTube keyword search like any built-in tool.
How much does YouTube keyword search cost in VS Code?
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 VS Code plan is separate.
Do I need a ScrapeCreators account to use YouTube keyword search in VS Code?
No. Spiral runs YouTube keyword search 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 keyword search in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while YouTube keyword search runs?
YouTube keyword search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Can YouTube discovery find private videos?
Private videos do not appear in YouTube's search results. These discovery tools cannot provide a complete inventory of a channel's private uploads.
Does one response contain every matching YouTube video?
Keyword and hashtag searches return result pages with continuation tokens for more results. Autocomplete returns suggested searches and channel matches, so it is not a video inventory.
What information identifies a video result?
Keyword and hashtag video results include a title, URL, thumbnail, and channel details. They also include public views, publication information, and duration.
Where does YouTube look for hashtags?
YouTube's hashtag results include videos carrying the hashtag in either the title or description. A hashtag does not have to appear visibly in the title to match.
Are autocomplete matches always video titles?
YouTube's dropdown can suggest queries or channels. Channel suggestions can include a public channel ID, handle, name, and thumbnail.
Start using YouTube keyword search in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


