/channel/idYoutube Channel ID
Channel
Cost / request
$0.01
Response format
JSON
Protocol
REST
About this endpoint
Access YouTube data through agntdata: Youtube Channel ID. This endpoint get the channel ID of a Youtube Channel given the channel name. Responses are structured JSON for AI agents, analytics, and automation — one API key instead of juggling upstream accounts. Ideal when you need video metadata, channel discovery, comments, subtitles, and recommendations programmatically.
Use cases
AI agents that need YouTube data in structured form
Analytics and monitoring pipelines for YouTube content
Research and GTM workflows that combine YouTube signals with other data
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel_name | query | string | required | —Default: LinusTechTips |
Responses
Response
{
"title": "ChannelId",
"type": "object",
"properties": {
"channel_id": {
"title": "Channel Id",
"type": "string"
},
"channel_name": {
"title": "Channel Name",
"type": "string"
}
},
"description": "Schema Class for Youtube Channel ID"
}Agent / Developer Schema
Machine-readable formats for integrating this endpoint into AI agents and toolchains.
{
"operationId": "Youtube_Channel_ID",
"method": "get",
"path": "/channel/id",
"summary": "Youtube Channel ID",
"description": "This endpoint get the channel ID of a Youtube Channel given the channel name",
"parameters": [
{
"name": "channel_name",
"in": "query",
"required": true,
"schema": {
"type": "string",
"default": "LinusTechTips"
}
}
],
"responses": [
{
"statusCode": "200",
"description": "Response",
"content": {
"application/json": {
"schema": {
"title": "ChannelId",
"type": "object",
"properties": {
"channel_id": {
"title": "Channel Id",
"type": "string"
},
"channel_name": {
"title": "Channel Name",
"type": "string"
}
},
"description": "Schema Class for Youtube Channel ID"
},
"example": {
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"channel_name": "LinusTechTips"
}
}
}
},
{
"statusCode": "422",
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"title": "HTTPValidationError",
"type": "object",
"properties": {
"detail": {
"title": "Detail",
"type": "array",
"items": {
"title": "ValidationError",
"required": [
"loc",
"msg",
"type"
],
"type": "object",
"properties": {
"loc": {
"title": "Location",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
}
},
"msg": {
"title": "Message",
"type": "string"
},
"type": {
"title": "Error Type",
"type": "string"
}
}
}
}
}
},
"example": {
"detail": [
{
"loc": [],
"msg": "",
"type": ""
}
]
}
}
}
}
]
}Pricing
$0.01per successful request
Credits are deducted from your agntdata balance on each successful API call. Failed requests (4xx/5xx) are not charged.
Related endpoints
Start using this endpoint
Generate your API key and make your first call in under a minute. Free tier available with transparent pricing.
YouTube APIYouTube data APIyoutube channel id APIAI agents data APIYouTube APIYouTube data APIYouTube for AI agents