YouTube Playlist Videos & Metadata
Retrieve YouTube playlist title, description, and ordered video list (videoId, title, channel, views, published time, URL).
curl -sG "https://api.agentapigate.ai/v1/youtube/playlist/items" \ --data-urlencode "playlist_id=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab" \ --data-urlencode "limit=15" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# YouTube Playlist Videos & Metadata (`youtube.playlist.items`) **playlist_id**: PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab · **title**: Essence of linear algebra · **count**: 15 ## videos - [1] position: 1, video_id: fNk_zzaMoSs, title: Vectors | Chapter 1, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [2] position: 2, video_id: k7RM-ot2NWY, title: Linear combinations, span, and basis vectors | Chapter 2, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [3] position: 3, video_id: kYB8IZa5AuE, title: Linear transformations and matrices | Chapter 3, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [4] position: 4, video_id: XkY2DOUCWMU, title: Matrix multiplication as composition | Chapter 4, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [5] position: 5, video_id: rHLEWRxRGiM, title: Three-dimensional linear transformations | Chapter 5, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [6] position: 6, video_id: Ip3X9LOh2dk, title: The determinant | Chapter 6, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [7] position: 7, video_id: uQhTuRlWMxw, title: Inverse matrices, column space and null space | Chapter 7, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [8] position: 8, video_id: v8VSDg_WQlA, title: Nonsquare matrices as transformations between dimensions | Chapter 8, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [9] position: 9, video_id: LyGKycYT2v0, title: Dot products and duality | Chapter 9, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [10] position: 10, video_id: eu6i7WJeinw, title: Cross products | Chapter 10, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [11] position: 11, video_id: BaM7OCEm3G0, title: Cross products in the light of linear transformations | Chapter 11, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [12] position: 12, video_id: jBsC34PxzoM, title: Cramer's rule, explained geometrically | Chapter 12, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [13] position: 13, video_id: P2LTAUO1TdA, title: Change of basis | Chapter 13, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [14] position: 14, video_id: PFDu9oVAE-g, title: Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown - [15] position: 15, video_id: e50Bj7jn9IQ, title: A quick trick for computing eigenvalues | Chapter 15, Essence of linear algebra, channel_id: UCYO_jab_esuFRV4b17AJtAw, channel_handle: @3blue1brown
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:youtube.playlist.items · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| playlist_id | string | required | PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab | YouTube playlist ID (PL...) or playlist URL |
| limit | number | optional | 15 | Max videos (1-50) |
| 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.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | youtube_playlist_items | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 291 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 6388t → 800t (-87%) | Partner credit: eligible |
More Social & Video Real-Time APIs
Fetch TikTok account profile bio, verification badge, follower count, heart count, and video count.
List recent short videos posted by a TikTok creator with view, like, comment, and share counts.
Fetch full metadata, audio track, author details, and engagement metrics for a TikTok video URL or ID.
Fetch top comments on a TikTok video URL or ID with author handles and like counts.
Search TikTok short videos by keyword with view, like, and creator statistics.
Fetch currently trending viral TikTok videos in a target country code.
Frequently Asked Questions
How do I call YouTube Playlist Videos & Metadata (youtube.playlist.items) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/youtube/playlist/items with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool youtube_playlist_items on https://mcp.agentapigate.ai/mcp.
What does youtube.playlist.items cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 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.playlist.items?
Passing ?format=md transforms the response into normalized Markdown (~800 tokens vs ~6388 raw tokens, saving 87% 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.playlist.items"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.