How to Use YouTube channel ID lookup in opencode
Resolves a YouTube channel URL to its channel ID and normalized URL. Use it to reconcile handle links and older custom URLs before collecting channel data.
Prompts to try with YouTube channel ID lookup in opencode
Copy an example into opencode, or ask in your own words.
Use YouTube channel ID lookup for https://www.youtube.com/@GoogleDevelopers and add the resolved channel ID to this project’s source directory.
Use YouTube channel ID lookup to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from YouTube channel ID lookup and tell me what changed since last week.
Check YouTube channel ID lookup and summarize what you find in three bullet points.
Pull the newest data from YouTube channel ID lookup and give me the result as a table.
How to set up YouTube channel ID lookup 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 channel ID lookup
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": "tikhub", "model": "tikhub/youtube-web-v2-get-channel-id", "input": { "channel_url": "https://www.youtube.com/@CozyCraftYT" } }'
Then paste one of the prompts above: opencode finds YouTube channel ID lookup on Spiral, shows the price and runs it.
YouTube channel ID lookup providers and prices
Spiral runs YouTube channel ID lookup through TikHub. Open a card for today's price, with every fee included.
What can you do with YouTube channel ID lookup in opencode?
Build a YouTube research report that connects channel references with publishing and community discussion. A coding agent can add the returned data to your project’s tables and implement parsing for raw search responses.
Compare competing channels
Research NASA and ESA publishing: resolve channel identities, compare descriptions, discover relevant search results, and review videos, Shorts, and community announcements. Read post comments and replies for recurring audience questions, then attach recognizable channel links to the comparison.
Prepare a product launch briefing
Build a briefing around a Google product announcement. Confirm the publishing channels and their descriptions, find related coverage through search, inventory videos and Shorts, and examine community announcements with their comment threads. Include channel links so editors can check the sources.
Research creator sponsorship fit
Find public technology channels, reconcile their URLs, and review their descriptions and publishing topics. Compare video titles, Shorts, community posts, and aggregate discussion themes to prepare a sponsorship shortlist with source links. Use raw or structured search according to the research workflow.
Plan an educational content series
Research Python teaching channels and their public catalogs. Use channel descriptions and identity lookups to organize sources, search for existing lessons, and compare videos with Shorts. Review community posts, comments, and replies for questions worth addressing in a lesson outline.
Repair channel references
Resolve mixed handle links and older custom URLs to channel IDs, then retrieve recognizable channel URLs for a publication’s source directory.
More on YouTube channel ID lookup and opencode
Overview
YouTube channel ID lookup in other agents
Questions about YouTube channel ID lookup in opencode
Can opencode use YouTube channel ID lookup?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run YouTube channel ID lookup like any built-in tool.
How much does YouTube channel ID lookup cost in opencode?
$0.0013 per request. 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 TikHub account to use YouTube channel ID lookup in opencode?
No. Spiral runs YouTube channel ID lookup on its own TikHub account. You sign in to Spiral once and never paste a key.
How long does it take to set up YouTube channel ID lookup in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while YouTube channel ID lookup runs?
YouTube channel ID lookup runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does YouTube search cover private and unlisted videos?
Private videos do not appear in YouTube search. Unlisted videos also stay out of search unless someone adds them to a public playlist.
How fresh are YouTube engagement counts?
YouTube says metrics may take the first few hours after a video is published to appear. Counts on a new upload can therefore be incomplete.
Is a YouTube handle the same as a channel name?
Handles are unique identifiers that start with @ and are distinct from channel names. Each channel can have only one handle.
Do older YouTube custom URLs still work?
Existing custom URLs continue to work and redirect to the channel’s handle-based URL. YouTube no longer allows new custom URLs or changes to existing custom URLs.
Is YouTube content available in every country?
Video owners can restrict availability to certain countries or regions, usually for licensing reasons. YouTube can also block content to comply with local laws.
Start using YouTube channel ID lookup 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


