# YouTube channel ID from URL

Needs channel url. Served by TikHub.

Purpose:
- Convert YouTube channel URL to channel ID.
- Supports multiple URL formats including @username, /channel/, /c/, /user/ formats.
Parameters:
- channel_url: Channel URL.
Returns:
- channel_id: Channel ID (e.g., UCeu6U67OzJhV1KwBansH3Dg)
- channel_url: Normalized channel URL
- source: Data source (url_parse means parsed from URL directly, page_parse means parsed from page)

- Tool ID: `tikhub/youtube-web-v2-get-channel-id`
- Name in the catalog: Youtube, Get channel ID from URL
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube channels](/tools/youtube/channels.md)
- Price: $0.001 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.001
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.001; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "channel_url": {
      "type": "string",
      "description": "频道URL/Channel URL，支持多种格式如：https://www.youtube.com/@username, https://www.youtube.com/channel/UCxxxxxx, https://www.youtube.com/c/channelname",
      "title": "Channel Url"
    }
  },
  "required": [
    "channel_url"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/youtube-web-v2-get-channel-id",
  "input": {
    "channel_url": "https://www.youtube.com/@CozyCraftYT"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/YouTube-Web-V2-API/get_channel_id_api_v1_youtube_web_v2_get_channel_id_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/youtube-web-v2-get-channel-id) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/youtube-web-v2-get-channel-id) · [Agent index](/llms.txt)
