YouTube Channel Latest Content
Get the latest content from a YouTube channel with type filtering.
Quick Start
code
/youtube-get-channel-latest <channel> [limit] [type]
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| channel | Yes | - | Channel URL, @handle, username, or video URL |
| limit | No | 10 | Number of items (1-50) |
| type | No | all | Content type filter |
Type Options
| Type | Tab URL | Description |
|---|---|---|
all | All tabs | Fetches from /videos, /shorts, /streams, /podcasts and merges by date |
videos | /videos | Regular videos |
live | /streams | Livestreams (current, past, upcoming) |
shorts | /shorts | YouTube Shorts |
podcasts | /podcasts | Podcast episodes |
Examples
- •
/youtube-get-channel-latest @GoogleDevelopers- Latest 10 items from channel - •
/youtube-get-channel-latest @MKBHD 5 videos- Latest 5 regular videos - •
/youtube-get-channel-latest @NASA 10 live- Latest 10 livestreams - •
/youtube-get-channel-latest @shorts 20 shorts- Latest 20 shorts - •
/youtube-get-channel-latest https://www.youtube.com/@TED 3 podcasts- Latest 3 podcast episodes - •
/youtube-get-channel-latest https://www.youtube.com/watch?v=xxx 5- Get latest from video's channel - •
/youtube-get-channel-latest https://youtu.be/xxx 5 shorts- Get shorts from video's channel
How it Works
- •Parse channel parameter (URL, @handle, username, or video URL)
- •If video URL: extract channel URL using yt-dlp
- •Normalize to channel base URL
- •Execute:
{baseDir}/scripts/channel-latest.sh "<channel>" <limit> <type> - •For specific types: fetch from corresponding tab URL
- •For
alltype: fetch from all 4 tabs, deduplicate, sort by upload_date, return top N - •Return JSON array of content items
Output Format
Success:
json
[
{
"id": "dQw4w9WgXcQ",
"title": "Video Title",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"duration_string": "3:32",
"view_count": 1500000000,
"upload_date": "20091025",
"channel": "Rick Astley",
"live_status": "not_live",
"description": "First 200 chars of description..."
}
]
Error:
json
{
"status": "error",
"message": "No content found for this channel"
}
Output Fields
| Field | Type | Description |
|---|---|---|
| id | string | YouTube video ID |
| title | string | Video title |
| url | string | Full YouTube URL |
| duration_string | string | Human-readable duration (e.g., "10:23") |
| view_count | number | View count (may be null for upcoming) |
| upload_date | string | Upload date in YYYYMMDD format |
| channel | string | Channel name |
| live_status | string | Status: not_live, is_live, was_live, is_upcoming |
| description | string | First 200 characters of description |
Notes
- •Auto-downloads yt-dlp and jq on first run
- •Supports video URL input: automatically extracts channel and fetches latest content
- •Uses YouTube's official tab classification for each content type
- •
alltype fetches from 4 tabs, deduplicates, and sorts by upload date - •Live status values:
not_live,is_live,was_live,is_upcoming - •Podcasts require the channel to have a podcasts tab enabled
- •For channels without specific content types, returns empty array