YouTube Channel Profile, Subscribers & Stats
Retrieve YouTube channel profile metadata, subscriber count, total videos, total views, join date, country, external links, and handle by channel ID or handle.
curl -sG "https://api.agentapigate.ai/v1/youtube/channel/info" \ --data-urlencode "channel_id=UCYO_jab_esuFRV4b17AJtAw" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# YouTube Channel Profile, Subscribers & Stats (`youtube.channel.info`) **channel_id**: UCYO_jab_esuFRV4b17AJtAw · **title**: 3Blue1Brown · **handle**: @3blue1brown · **subscriber_count**: 8790000 · **subscriber_count_text**: 8.79M · **video_count**: 250 · **view_count**: 804210753 · **country**: United States · **url**: https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:youtube.channel.info · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| channel_id | string | required | UCYO_jab_esuFRV4b17AJtAw | YouTube Channel ID (UC...) or @handle (e.g. UCYO_jab_esuFRV4b17AJtAw or @3blue1brown) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | youtube_channel_info | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 255 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 6577t → 98t (-99%) | Partner credit: eligible |
More youtube.channel Sibling Endpoints
Fetch latest uploaded videos for a YouTube channel ID (`UC...`).
Retrieve YouTube creator Community Tab text updates, polls, images, vote counts, and reply counts by Channel ID or @handle.
List Shorts published on any YouTube channel by Channel ID or @handle with videoId, title, view count, thumbnail, and Shorts URL.
Frequently Asked Questions
How do I call YouTube Channel Profile, Subscribers & Stats (youtube.channel.info) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/youtube/channel/info with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool youtube_channel_info on https://mcp.agentapigate.ai/mcp.
What does youtube.channel.info cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on youtube.channel.info?
Passing ?format=md transforms the response into normalized Markdown (~98 tokens vs ~6577 raw tokens, saving 99% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only social endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["youtube.channel.info"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.