YouTube API
Featured Channels
Get featured and related channels from a YouTube channel.
POST
$0.01/call/v1/youtube/channel-channelsUsage
const res = await fetch('https://api.yepapi.com/v1/youtube/channel-channels', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ id: 'UCAuUUnT6oDeKwE6v1NGQxug' }),
});
const { data } = await res.json();
console.log(data.data);curl -X POST https://api.yepapi.com/v1/youtube/channel-channels \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "UCAuUUnT6oDeKwE6v1NGQxug"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | YouTube channel ID | — |
geo | string | No | Country code for geo-specific results | — |
lang | string | No | Language code | — |
Response
{
"ok": true,
"data": {
"data": [
{
"type": "channel",
"channelId": "UCsooa4yRKGN_zEE8iknghZA",
"title": "TED-Ed",
"channelHandle": "@TEDEd",
"subscriberCountText": "1.2M subscribers",
"thumbnail": [
{ "url": "https://yt3.ggpht.com/...", "width": 88, "height": 88 }
]
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.data | object[] | Array of featured/related channel objects |
data.data[].type | string | Content type (typically channel) |
data.data[].channelId | string | Unique YouTube channel identifier |
data.data[].title | string | Channel display name |
data.data[].channelHandle | string | Channel handle (e.g. @TEDEd) |
data.data[].subscriberCountText | string | Formatted subscriber count (e.g. 1.2M subscribers) |
data.data[].thumbnail | object[] | Channel avatar images |