YouTube channel API: statistics and details by channel ID or handle
Read-only YouTube Data API v3 channels list endpoint.
About the Channels list endpoint
The YouTube channel API returns a channel's public details and statistics: title, description, custom URL, thumbnails, country, subscriber count, total view count and video count, plus its uploads playlist ID. Look a channel up by channel ID, by handle such as @GoogleDevelopers, or by legacy username. It is YouTube Data API v3's channels.list, with no Google API key of your own required.
What you can build with it
- Creator profiles with live subscriber and view counts
- Influencer vetting and tiering by channel size
- Resolving a handle or username to a channel ID for other endpoints
Request
https://socialgraph.dev/api/v1/youtube/channels
Send your API key as Authorization: Bearer YOUR_API_KEY.
Parameters go in the query string.
Parameters
| Name | Type | Description |
|---|---|---|
partrequired |
string | Required. Comma-separated: id, snippet, contentDetails, statistics, topicDetails, status, brandingSettings or localizations. For example: snippet,statistics |
idoptional |
string | Comma-separated channel IDs (provide id, forHandle or forUsername). For example: UC_x5XG1OV2P6uZZ5FSM9Ttw |
forHandleoptional |
string | Channel handle, with or without @ (provide id, forHandle or forUsername). For example: @GoogleDevelopers |
forUsernameoptional |
string | Legacy YouTube username (provide id, forHandle or forUsername). For example: GoogleDevelopers |
maxResultsoptional |
integer | Maximum results per page (0–50). |
pageTokenoptional |
string | Token from a previous response (nextPageToken or prevPageToken). |
hloptional |
string | Language for localized titles and descriptions. For example: es |
Code examples
Example response
{
"etag": "EnjiuHaewbbcdMJGLTsNaOGwrUI",
"kind": "youtube#channelListResponse",
"items": [
{
"id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"etag": "RPMWR7K_FM_je-mzlYfLuiw2po4",
"kind": "youtube#channel",
"snippet": {
"title": "Google for Developers",
"country": "US",
"customUrl": "@googledevelopers",
"localized": {
"title": "Google for Developers",
"description": "Subscribe to join a community of creative developers and learn the latest in Google technology — from AI and cloud, to mobile and web.\n\nExplore more at developers.google.com\n"
},
"thumbnails": {
"high": {
"url": "https://yt3.ggpht.com/r99eRlOesQkJe7pOzDY4JazAlhidoVp-0syxBnYjfeHdmUXGa5zOxcozaxKF2oPHg3RkglecZQ=s800-c-k-c0x00ffffff-no-rj",
"width": 800,
"height": 800
},
"medium": {
"url": "https://yt3.ggpht.com/r99eRlOesQkJe7pOzDY4JazAlhidoVp-0syxBnYjfeHdmUXGa5zOxcozaxKF2oPHg3RkglecZQ=s240-c-k-c0x00ffffff-no-rj",
"width": 240,
"height": 240
},
"default": {
"url": "https://yt3.ggpht.com/r99eRlOesQkJe7pOzDY4JazAlhidoVp-0syxBnYjfeHdmUXGa5zOxcozaxKF2oPHg3RkglecZQ=s88-c-k-c0x00ffffff-no-rj",
"width": 88,
"height": 88
}
},
"description": "Subscribe to join a community of creative developers and learn the latest in Google technology — from AI and cloud, to mobile and web.\n\nExplore more at developers.google.com\n",
"publishedAt": "2007-08-23T00:34:43Z"
},
"statistics": {
"viewCount": "361458056",
"videoCount": "6112",
"subscriberCount": "2680000",
"hiddenSubscriberCount": false
}
}
],
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 5
}
}Errors
| Status | Meaning | Charged? |
|---|---|---|
| 401 | Missing, invalid or revoked API key | No |
| 402 | Not enough credits (insufficient_credits) | No |
| 404 | The account or post doesn't exist | No |
| 422 | Missing or invalid parameters | No |
| 502 / 503 | The data source is temporarily unavailable | No |
Channels list API: frequently asked questions
How do I get a YouTube channel's subscriber count?
Call this endpoint with part=statistics and the channel's id (or forHandle). The response includes subscriberCount, viewCount and videoCount.
Can I look up a channel by its @handle?
Yes. Pass forHandle=@handle instead of id. Legacy usernames work with forUsername.
How do I get a channel's uploads playlist?
Request part=contentDetails; the response's relatedPlaylists.uploads is the playlist of all the channel's videos, which you can list with the Playlist items endpoint.
Do I need a Google Cloud project or API key?
No. socialgraph.dev provides the key; you only need an account here.
How much does the Channels list endpoint cost?
1 credit per successful call (0.002 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.
Can I try the Channels list API without signing up?
Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.
🔒 Preset demo input. Live demos use the Google for Developers channel, youtube.com/@GoogleDevelopers. Sign up free to use your own.