Search and download podcast episodes from Apple Podcasts. Use when user wants to find podcasts, download podcast episodes, get podcast information, or mentions Apple Podcasts, iTunes, podcast search, or audio downloads.
A comprehensive skill for searching, browsing, and downloading podcast episodes from Apple Podcasts using the iTunes Search API.
When user asks to search for podcasts:
python3 .claude/skills/podcast-downloader/scripts/itunes_api.py search "keyword" [limit]
When user wants to see episodes from a podcast:
python3 .claude/skills/podcast-downloader/scripts/itunes_api.py episodes <collection_id> [limit]
When user wants to download podcast audio:
mkdir -p downloads/podcasts
python3 .claude/skills/podcast-downloader/scripts/itunes_api.py download <collection_id> <episode_index> [output_path]
User Request: "Download the latest episode of The Daily podcast"
Steps:
User Request: "Show me the latest 10 episodes of Python Bytes and let me choose which to download"
Steps:
User Request: "Download the 5 latest episodes from All-In Podcast"
Steps:
downloads/podcasts/podcast-name/)Common errors and solutions:
python3 scripts/itunes_api.py search <keyword> [limit]
Parameters:
keyword: Search term (required)limit: Number of results (optional, default: 10)Output: JSON array of podcast objects
python3 scripts/itunes_api.py episodes <collection_id> [limit]
Parameters:
collection_id: Podcast ID from search results (required)limit: Number of episodes (optional, default: 10)Output: JSON array of episode objects
python3 scripts/itunes_api.py download <collection_id> <episode_index> [output_path]
Parameters:
collection_id: Podcast ID (required)episode_index: Episode number from list (0-based) (required)output_path: Save location (optional, default: downloads/podcasts/)Output: Downloaded MP3 file path
{
"collectionId": 1200361736,
"collectionName": "The Daily",
"artistName": "The New York Times",
"trackCount": 2464,
"feedUrl": "https://feeds.simplecast.com/...",
"genres": ["Daily News", "Podcasts", "News"]
}
{
"trackId": 1000742770142,
"trackName": "Episode Title",
"releaseDate": "2025-12-26T10:45:00Z",
"trackTimeMillis": 1247000,
"episodeUrl": "https://...",
"description": "Full description...",
"shortDescription": "Brief description..."
}
Podcasts include RSS feed URLs that can be used for:
Access via feedUrl field in search results.
Extract rich metadata including:
When displaying results, consider:
Issue: "curl: command not found" Solution: Install curl or use Python's requests library
Issue: "Invalid JSON response" Solution: Check network connection and API availability
Issue: "Permission denied" when saving files Solution: Check directory permissions or use different output path
Issue: "File too large" Solution: Check available disk space, typical episodes are 20-100MB
scripts/itunes_api.py