[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [YouTube channel ID from URL](https://spiral.ai/integrations/muse-code/youtube-channel-id-from-url)

# How to Use YouTube channel ID from URL in Muse Code

Resolves a YouTube channel URL to its channel ID. Use it to reconcile handle links, custom links, legacy username links, and channel ID links before researching a channel.

|  |  |
| --- | --- |
| Model | YouTube channel ID from URL |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with YouTube channel ID from URL in Muse Code

- Use YouTube channel ID from URL for https://www.youtube.com/@NASA and add the returned result to our channel import example.
- Use YouTube channel ID from URL 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 from URL and tell me what changed since last week.
- Check YouTube channel ID from URL and summarize what you find in three bullet points.
- Pull the newest data from YouTube channel ID from URL and give me the result as a table.

## How to set up YouTube channel ID from URL in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run YouTube channel ID from URL**: One request; the result comes back by polling or a webhook.

```bash
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-get-channel-id-v2",
    "input": {
      "channel_url": "https://www.youtube.com/@CozyCraftYT"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds YouTube channel ID from URL on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## YouTube channel ID from URL tools and prices

- [YouTube Web · Get channel ID from URL V2](https://spiral.ai/tools/tikhub/tikhub/youtube-web-get-channel-id-v2) (TikHub): $0.0013 per request.

## What can you do with YouTube channel ID from URL in Muse Code?

Build a publisher directory that connects YouTube channel references to channel information and video research. A coding agent can add ID resolution, readable channel links, Shorts review, and search results to your project's existing data flow.

### Prepare a technology publisher brief

Find hardware publishers, resolve supplied names or channel links, and collect channel information with readable references. Review their Shorts, search product coverage, and expand from selected videos into related results.

### Review public creator sponsorship candidates

Discover relevant creator channels and reconcile channel names and links into IDs. Build a brief from channel information, Shorts, topic searches, and related video results for human review.

### Assemble an educational video shortlist

Find science publishers and topic videos for an astronomy lesson. Resolve known channel references, inspect channel information and Shorts, and review related videos before selecting resources to reference.

### Research competing brands' video coverage

Find public brand channels and reconcile references supplied as names or URLs. Collect channel information and links, review Shorts, search product topics, and inspect related results around selected videos.

### Clean up a publisher directory

Resolve stored channel names and URLs, inspect channel information, and replace opaque IDs in directory displays with returned handles and links.

### Review a publisher's Shorts over time

Resolve a public publisher's channel URL and compare returned Shorts across scheduled checks. Include channel information and readable channel links in the review.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## YouTube channel ID from URL in other agents

- [Amp](https://spiral.ai/integrations/amp/youtube-channel-id-from-url)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/youtube-channel-id-from-url)
- [Claude](https://spiral.ai/integrations/claude-desktop/youtube-channel-id-from-url)
- [Claude Code](https://spiral.ai/integrations/claude-code/youtube-channel-id-from-url)
- [Cline](https://spiral.ai/integrations/cline/youtube-channel-id-from-url)
- [Codex](https://spiral.ai/integrations/codex/youtube-channel-id-from-url)
- [Cursor](https://spiral.ai/integrations/cursor/youtube-channel-id-from-url)
- [Devin](https://spiral.ai/integrations/devin/youtube-channel-id-from-url)
- [dots](https://spiral.ai/integrations/dots/youtube-channel-id-from-url)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/youtube-channel-id-from-url)
- [Gemini](https://spiral.ai/integrations/gemini/youtube-channel-id-from-url)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/youtube-channel-id-from-url)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/youtube-channel-id-from-url)
- [goose](https://spiral.ai/integrations/goose/youtube-channel-id-from-url)
- [Grok](https://spiral.ai/integrations/grok/youtube-channel-id-from-url)
- [Grok Build](https://spiral.ai/integrations/grok-build/youtube-channel-id-from-url)
- [Hermes](https://spiral.ai/integrations/hermes/youtube-channel-id-from-url)
- [Instinct](https://spiral.ai/integrations/instinct/youtube-channel-id-from-url)
- [Manus](https://spiral.ai/integrations/manus/youtube-channel-id-from-url)
- [Muse](https://spiral.ai/integrations/muse/youtube-channel-id-from-url)
- [n8n](https://spiral.ai/integrations/n8n/youtube-channel-id-from-url)
- [Notion](https://spiral.ai/integrations/notion/youtube-channel-id-from-url)
- [OpenClaw](https://spiral.ai/integrations/openclaw/youtube-channel-id-from-url)
- [opencode](https://spiral.ai/integrations/opencode/youtube-channel-id-from-url)
- [Perplexity](https://spiral.ai/integrations/perplexity/youtube-channel-id-from-url)
- [Raycast](https://spiral.ai/integrations/raycast/youtube-channel-id-from-url)
- [VS Code](https://spiral.ai/integrations/vscode/youtube-channel-id-from-url)
- [Windsurf](https://spiral.ai/integrations/windsurf/youtube-channel-id-from-url)
- [Zapier](https://spiral.ai/integrations/zapier/youtube-channel-id-from-url)

## More Muse Code guides

- [YouTube channel ID](https://spiral.ai/integrations/muse-code/youtube-channel-id)
- [YouTube channel ID from name](https://spiral.ai/integrations/muse-code/youtube-channel-id-from-name)
- [YouTube caption job results](https://spiral.ai/integrations/muse-code/youtube-caption-job-results)
- [YouTube channel ID lookup](https://spiral.ai/integrations/muse-code/youtube-channel-id-lookup)
- [YouTube Web Search video](https://spiral.ai/integrations/muse-code/youtube-web-search-video)
- [YouTube channel Shorts](https://spiral.ai/integrations/muse-code/youtube-channel-shorts)

## Questions about YouTube channel ID from URL in Muse Code

**Can Muse Code use YouTube channel ID from URL?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run YouTube channel ID from URL like any built-in tool.

**How much does YouTube channel ID from URL cost in Muse Code?**

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a TikHub account to use YouTube channel ID from URL in Muse Code?**

No. Spiral runs YouTube channel ID from URL 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 from URL in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while YouTube channel ID from URL runs?**

YouTube channel ID from URL runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**How often can a YouTube handle change?**

YouTube allows a handle to change twice within a 14-day period. A previously saved handle can therefore become outdated.

**Does this data include restricted content?**

TikHub says it accesses and processes only publicly available data. Restricted content is outside that stated coverage.

**Is the data guaranteed to be complete and current?**

TikHub explicitly declines to warrant that returned data is accurate, complete, or current. Its terms provide no such guarantee for YouTube results.

**Is YouTube content available in every country?**

No. Video owners can limit availability to particular countries or regions, usually because of licensing rights.

**Does public availability grant permission to reuse YouTube content?**

YouTube's user content license does not grant rights to use content independently of the service. Public availability alone does not provide that permission.

