API · YouTube
POST /youtube/channels/batch
Up to 25 YouTube channels by id in one call.
| Request | POST /v1/youtube/channels/batch |
| Operation id | youtube.channel.batch |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Up to 25 YouTube channels by id in one call.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
ids | string[] | yes | 1 to 25 channel ids (UC…). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The channels, and the ids that did not resolve. | YouTubeChannelList |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. | Error |
YouTubeChannelList fields
| Field | Type | Description |
|---|---|---|
kind | "youtube#channelListResponse" | |
items | YouTubeChannel[] | |
pageInfo | object | |
missing | object[] | Requested ids that did not resolve, and why. |
Errors use one shape everywhere; see Errors for every code and what to do.