GET /v1/youtube/web/get_channel_id_v2
Get channel ID from URL V2
stable · 2 credits per success
Convert YouTube channel URL to channel ID.;Supports multiple URL formats including @username, /channel/, /c/, /user/ formats.;channel_url: Channel URL.;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)
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| channel_url | string | query | yes | 频道URL | https://www.youtube.com/@CozyCraftYT |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 that fails the quality gate — costs 0.