Documents & mediaPodcasting
Podcast API: Search Shows, Parse RSS Feeds, Summarize and Transcribe
Podcast API tutorial: search shows and episodes, read any RSS feed as clean JSON with chapters, then summarize and transcribe episodes in Python.
Every product that touches podcasts hits the same wall. Finding a show means querying a directory; reading its episodes means parsing an RSS feed full of itunes: and podcast: tags, HTML show notes and audio URLs wrapped in three layers of tracking redirects; and knowing what an episode is about means someone has to listen to it. A podcast app, a media-monitoring tool or a RAG pipeline that wants spoken content has to solve all three before it ships a single feature.
This tutorial uses a podcast API to do it in Python: search the Apple Podcasts directory, read any feed as clean JSON, pull chapters and links out of the show notes, summarize an episode with AI and transcribe its audio with timestamps. Every response below comes from a real call.
Where podcast data actually lives
A podcast is not hosted by Apple or Spotify. It is an RSS 2.0 feed published by the podcaster's host (Libsyn, Simplecast, Buzzsprout, Megaphone...), and the apps are readers of that feed. The directories only index feeds and add search, artwork and charts.
| Data | Where it lives | Trap |
|---|---|---|
| Show search, charts | Apple Podcasts directory (iTunes Search API) | Rate-limited to about 20 calls a minute per IP |
| Episodes, audio files | The show's own RSS feed | Feeds can be 20 MB, malformed, or cut to the latest few hundred items |
| Show notes | description / content:encoded in the feed |
HTML, often with tracking links and email addresses |
| Chapters | A JSON file (podcast:chapters), Podlove tags, or timestamps typed in the notes |
Three formats, none mandatory |
| Transcripts, hosts, guests | Podcasting 2.0 tags (podcast:transcript, podcast:person) |
Only some hosts publish them |
The feed format itself is the RSS 2.0 specification plus Apple's itunes: namespace and the Podcasting 2.0 namespace. Spotify is the exception: it publishes no public feed, and its exclusives have no public audio at all.
The Podcast API reads the Apple directory for search and charts, and each show's own feed, live, for everything else. That is why any public feed works, even one Apple does not list.
Search podcasts with Python
GET /v1/podcasts/search finds shows by keyword in a country's store. The examples use requests; the API reference documents every parameter.
import requests
HOST = "podcast-api-search-episodes-ai-summaries.p.rapidapi.com"
API = f"https://{HOST}/v1/podcasts"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}
response = requests.get(
f"{API}/search",
headers=HEADERS,
params={"q": "planet money", "limit": 3},
timeout=30,
)
response.raise_for_status()
for show in response.json()["results"]:
print(show["title"], show["feed_url"], show["episode_count"])
The real response, shortened to two results:
{
"query": "planet money",
"country": "us",
"count": 3,
"results": [
{
"apple_id": 290783428,
"title": "Planet Money",
"author": "NPR",
"feed_url": "https://feeds.npr.org/510289/podcast.xml",
"apple_url": "https://podcasts.apple.com/us/podcast/planet-money/id290783428",
"genres": ["Business", "News"],
"episode_count": 707,
"latest_episode": "2026-11-25",
"explicit": false
},
{
"apple_id": 1320118593,
"title": "The Indicator from Planet Money",
"author": "NPR",
"feed_url": "https://feeds.npr.org/510325/podcast.xml",
"genres": ["Business"],
"episode_count": 1159,
"latest_episode": "2026-11-27",
"explicit": false
}
]
}
The field that matters is feed_url: every other endpoint takes it, or the apple_id, or an Apple Podcasts link.
Search episodes across every podcast
GET /v1/podcasts/search/episodes searches episode titles and descriptions across the whole directory, which is how you find every interview on a topic. A real call for james webb space telescope, first result, description cut:
{
"apple_episode_id": 1000798249949,
"title": "The Habitable Worlds Observatory with Evgenya Shkolnik",
"podcast": "StarTalk with Neil deGrasse Tyson",
"feed_url": "https://feeds.simplecast.com/4T39_jAj",
"published": "2026-11-03T06:00:00Z",
"duration_seconds": 3035,
"guid": "17b98be8-8522-4e4a-99b2-cd2af31bf133",
"description": "Are there habitable worlds that look nothing like Earth? Neil deGrasse Tyson and comic co-host Matt Kirshen discuss NASA’s Habitable Worlds Observatory ...",
"genres": ["Science"]
}
Directory search is keyword search, not semantic search: the second and third results were a sleep-story episode called "Telescopes" and a science show about telescopes in general. Filter on the podcast or the genre when precision matters.
Top podcast charts by country and genre
GET /v1/podcasts/top?country=us&genre=technology&limit=5 returns Apple's chart with each show's feed. The real top three of the US technology chart:
{
"country": "us",
"count": 5,
"results": [
{ "rank": 1, "title": "All-In with Chamath, Jason, Sacks & Friedberg", "feed_url": "https://rss.libsyn.com/shows/254861/destinations/1928300.xml", "episode_count": 448 },
{ "rank": 2, "title": "Machine Gods", "author": "NPR", "feed_url": "https://feeds.npr.org/g-s1-143588/podcast.xml", "episode_count": 13 },
{ "rank": 3, "title": "Acquired", "feed_url": "https://feeds.transistor.fm/acquired", "episode_count": 218 }
]
}
Parse any RSS feed into clean JSON
GET /v1/podcasts/episodes reads the feed and returns the show and its episodes, newest first, 1 to 200 per call. offset pages through the archive, and since keeps only what was published on or after a date, which is what a monitor polls with.
feed = "https://feeds.npr.org/510289/podcast.xml"
data = requests.get(
f"{API}/episodes",
headers=HEADERS,
params={"feed": feed, "limit": 3},
timeout=60,
).json()
print(data["show"]["title"], data["episode_count"])
for episode in data["episodes"]:
print(episode["published"][:10], episode["title"], episode["duration_seconds"])
The real response, with one episode out of three (audio URL shortened):
{
"feed_url": "https://feeds.npr.org/510289/podcast.xml",
"show": {
"title": "Planet Money",
"author": "NPR",
"language": "en",
"categories": ["Business", "News"],
"type": "episodic",
"website": "https://www.npr.org/podcasts/510289/planet-money",
"funding": [
{ "url": "https://plus.npr.org/?...", "text": "Support NPR by enrolling in NPR+!" }
],
"updated": "2026-11-26T02:20:03Z"
},
"episode_count": 355,
"offset": 0,
"count": 3,
"episodes": [
{
"guid": "9e2e326b-62bd-4e44-b291-481fa4cd36df",
"title": "How to steal a truckload of bourbon and not get caught",
"published": "2026-11-25T08:00:00Z",
"duration_seconds": 1590,
"audio": {
"url": "https://tracking.swap.fm/track/XvDEoI11TR00olTUO8US/prfx.byspotify.com/e/play.podtrac.com/npr-510289/npr.simplecastaudio.com/.../default.mp3",
"type": "audio/mpeg",
"bytes": 25451273
},
"episode_type": "full",
"explicit": false,
"link": "https://www.npr.org/2026/11/25/nx-s1-6053008/cargo-theft-groceries-fbi-cyber",
"description": "Half a million dollars worth of bourbon – gone. $102,000 worth of turkey. 3,000 pounds of seafood. ..."
}
]
}
Two details from real feeds are worth knowing. First, Apple's directory counted 707 Planet Money episodes, while the feed carries 355: publishers often trim old items from the feed, so the feed is the truth for what can be played. Second, the audio URL chains three measurement services (tracking.swap.fm, byspotify.com, podtrac.com) before the real file on simplecastaudio.com. Keep the URL as published: the redirects are how the podcaster counts downloads.
The guid is the stable identity of an episode. Store it, not the title, which publishers edit.
Show notes, links and chapters of one episode
GET /v1/podcasts/episode returns one episode in full: the show notes as plain text, every link they contain, and chapters with timestamps. episode takes a GUID, an audio URL, a title or part of it, an episode number, or latest. A real call on The Changelog, shortened:
{
"feed_url": "https://changelog.com/podcast/feed",
"podcast": "The Changelog: Software Development, Open Source",
"episode": {
"guid": "changelog.com/1/2840",
"title": "Warp bets on the software factory (Interview)",
"published": "2026-11-24T20:00:00Z",
"duration_seconds": 6481,
"links": [
{ "text": "ClickHouse Observability", "url": "https://clickhouse.com/observability" },
{ "text": "Introducing Warp Factories", "url": "https://www.warp.dev/blog/open-infrastructure-for-building-a-software-factory" }
],
"chapters": [
{ "start_seconds": 0.0, "start": "00:00:00", "title": "Welcome to The Changelog" },
{ "start_seconds": 65.0, "start": "00:01:05", "title": "Sponsor: ClickHouse Observability", "url": "https://clickhouse.com/observability" },
{ "start_seconds": 283.0, "start": "00:04:43", "title": "Zach is back!" },
{ "start_seconds": 455.0, "start": "00:07:35", "title": "Factories are the new CI/CD" }
],
"chapters_source": "podcast:chapters",
"persons": [
{ "name": "Adam Stacoviak", "role": "host" },
{ "name": "Zach Lloyd", "role": "guest" }
]
}
}
chapters_source says where the chapters came from: here the Podcasting 2.0 JSON chapters file, which the API downloads for you. Feeds without one fall back to Podlove chapters or to timestamps typed in the notes ("12:30 Pricing"). The full response had 25 links; personal email addresses in notes are replaced by [email removed] before you see them.
AI summary of a podcast episode
POST /v1/podcasts/episode/summary writes a summary from the show notes in 2 to 5 seconds: a paragraph, key points, topics, guests and who they are, books and tools mentioned, sponsors and the format. Add "language": "French" (or any language) to get it translated.
summary = requests.post(
f"{API}/episode/summary",
headers=HEADERS,
json={"feed": "https://changelog.com/podcast/feed", "episode": "latest"},
timeout=60,
).json()["summary"]
print(summary["format"], [g["name"] for g in summary["guests"]])
The summary object of the real response, with five of the eight key points:
{
"summary": "Zach Lloyd, founder and CEO of Warp, discusses the company's shift toward Warp Factories, an open infrastructure designed to replace traditional CI/CD with a cloud-based software factory model. ...",
"key_points": [
"Warp Factories aims to replace traditional CI/CD with cloud-based software factory infrastructure.",
"The concept of 'factory as code' allows for more automated and scalable development workflows.",
"Agent traces provide necessary context for understanding how AI-driven systems evolve and drift.",
"Senior engineers are transitioning from manual code guardians to overseers of automated, self-improving systems.",
"The industry is moving toward continuous flow rather than traditional continuous integration."
],
"topics": ["Software Engineering", "CI/CD", "AI Agents", "Cloud Development", "Open Source", "DevOps", "Automation"],
"guests": [{ "name": "Zach Lloyd", "about": "Founder and CEO of Warp." }],
"resources": ["Warp", "Warp Factories", "code.storage", "Cursor", "Entire", "Zed’s DeltaDB", "Opus 4.5"],
"sponsors": ["ClickHouse Observability", "Deepgram", "Fingerprint", "Coder.com", "Fly.io"],
"format": "interview"
}
The five sponsors are exactly the five listed under "Sponsors:" in the notes. The summary is only as rich as the notes: on the Planet Money episode above, whose notes are a short teaser, the same call returned a narrative summary with empty guests and sponsors. Notes under about 250 characters get 400 notes_too_short, not billed, rather than an invented summary. For those, transcribe.
Podcast transcript API: from audio to text and SRT
POST /v1/podcasts/episode/transcribe downloads the episode's audio and transcribes it in the spoken language, with timestamped segments, optional speaker labels, SRT or WebVTT subtitles, and with summary: true a summary and chapters written from what was said.
result = requests.post(
f"{API}/episode/transcribe",
headers=HEADERS,
json={
"feed": "https://feeds.npr.org/510325/podcast.xml",
"episode": "latest",
"summary": True,
"formats": ["srt"],
},
timeout=130,
).json()
transcript = result["transcript"]
with open("episode.srt", "w", encoding="utf-8") as f:
f.write(transcript["subtitles"]["srt"])
The real call took 10.5 seconds for a 10-minute episode of The Indicator. Shortened response:
{
"podcast": "The Indicator from Planet Money",
"episode": { "title": "How a record El Niño is hitting your wallet", "duration_seconds": 605 },
"transcript": {
"duration_seconds": 609.85,
"minutes_billed": 11,
"language": "en",
"segments": [
{ "start": 0.0, "end": 6.0, "text": "NPR" },
{ "start": 6.0, "end": 9.0, "text": "Hey Indicator listeners, Wayland Wong here." },
{ "start": 9.0, "end": 15.0, "text": "Today we're running a special episode from our friends at Shortwave about the economic toll of El Niño." }
],
"subtitles": { "srt": "1\n00:00:00,000 --> 00:00:06,000\nNPR\n\n2\n00:00:06,000 --> 00:00:09,000\nHey Indicator listeners, Wayland Wong here.\n..." },
"insights": {
"summary": "This episode explores the profound economic and environmental impacts of El Niño, ...",
"chapters": [
{ "start": "00:00:20", "title": "The Origins and Global Impact of El Niño" },
{ "start": "00:02:28", "title": "The Peruvian Anchovy Industry and Climate Disruption" },
{ "start": "00:06:00", "title": "Long-term Economic Scars and Global Projections" }
],
"action_items": []
}
}
}
The audio lasted 609.85 seconds, so 11 started minutes were billed at 6 credits each (5 for the transcript, 1 for the summary): 66 credits. Episodes up to 90 minutes are accepted; the feed's declared duration is checked first, so a longer one is refused with 400 media_too_long before anything is downloaded.
To turn that transcript into YouTube chapters and short clips, the YouTube chapters walkthrough feeds these very segments to another endpoint. For audio files that are not podcasts, see the speech to text tutorial.
A daily podcast monitor in Python
A common job: every morning, list what a set of shows published since yesterday, with a summary of each. One feed call per show, one summary per new episode:
import datetime as dt
FEEDS = [
"https://feeds.npr.org/510289/podcast.xml",
"https://changelog.com/podcast/feed",
]
since = (dt.date.today() - dt.timedelta(days=1)).isoformat()
for feed in FEEDS:
data = requests.get(
f"{API}/episodes",
headers=HEADERS,
params={"feed": feed, "since": since},
timeout=60,
).json()
for episode in data["episodes"]:
r = requests.post(
f"{API}/episode/summary",
headers=HEADERS,
json={"feed": feed, "episode": episode["guid"]},
timeout=60,
)
if r.status_code == 400 and r.json()["error"]["code"] == "notes_too_short":
continue # thin notes: transcribe instead, or skip
r.raise_for_status()
print(data["show"]["title"], "|", episode["title"])
print(" ", r.json()["summary"]["summary"])
Production notes:
- Store GUIDs, poll with
since. Feeds are cached 10 minutes on the API side; polling more often returns the same data. - Retry 503, not 400.
503 source_unavailablemeans Apple, the podcast host or the AI did not answer; it is not billed and worth a retry with backoff.400 site_unreachablemeans the feed itself is gone (404) and will not come back on retry. - Spotify links get
400 unsupported_feed. The real message: "Spotify links have no public feed: search the podcast by name (/search) and use its feed_url." Most shows on Spotify also publish an RSS feed.
Without code: the Apify actor
The same engine runs as an Apify Actor, Podcast Transcript & Episode Scraper: paste feeds or Apple links, choose summaries or transcripts, and export a dataset to CSV, Excel or JSON. It costs $0.0004 per episode returned, $0.006 per AI summary and $0.0025 per minute transcribed; the Apify free plan covers 50 episodes, 3 summaries and one 10-minute transcript per run.
What it costs
Search and feed calls use 1 credit, a summary 10, a transcribed minute 5 (+2 with speaker labels, +1 with the summary). Failed calls (4xx, 5xx) use none.
| Plan | Price per month | Credits | In practice |
|---|---|---|---|
| BASIC | Free | 25 per day | 25 searches, or 2 summaries, or one 5-minute episode a day |
| PRO | $4.99 | 10,000 | $0.0005 a call, $0.005 a summary, $0.0025 a minute |
| ULTRA | $14.99 | 30,000 | same unit prices, 3x the volume |
| MEGA | $49.99 | 100,000 | same unit prices, 10x the volume |
Beyond the quota, paid plans continue at $0.005 per credit. For comparison, Listen Notes charges $200 a month for 5,000 requests, about $0.04 a request.
What the podcast API does not do
- No Spotify exclusives. Without a public feed there is nothing to read; shows with a feed work whatever app they are on.
- No semantic search. Search is the Apple directory's keyword search; rank and filter results yourself.
- No audio hosting or downloads for you. The API returns the publisher's audio URL; it does not re-serve files.
- Summaries follow the notes. The summary endpoint reads show notes, not audio. Thin notes are refused, not padded; use the transcript.
- Transcripts up to 90 minutes per call (5 minutes on the free plan). Longer episodes need splitting on your side.
- No listener statistics. Download counts and rankings beyond Apple's public charts are private to podcasters.
Frequently asked questions
Is there a free podcast API?
Apple's iTunes Search API is free for directory search, and RSS feeds are public, so you can build on them directly if you handle rate limits and feed parsing. This API wraps both, adds summaries and transcripts, and has a free BASIC plan of 25 credits a day.
How do I get a podcast's RSS feed URL?
Search the show by name with /v1/podcasts/search and read feed_url. An Apple Podcasts link or Apple ID also works directly in every endpoint's feed parameter.
Can I get a podcast transcript with an API?
Yes. Some podcasters publish one (the API returns it from the podcast:transcript tag); for the rest, /v1/podcasts/episode/transcribe transcribes the audio with timestamps and subtitles, at 5 credits per minute.
Does it work with Spotify podcasts?
Spotify links are refused because Spotify publishes no feed. Most shows on Spotify are also distributed by RSS: search them by name and use the feed_url returned.
Does the summary invent guests or sponsors?
It is written only from the show notes and lists guests, resources and sponsors only when the notes name them. In the Changelog example, the five sponsors returned are the five the notes list.
Get started
Podcast API
Podcast search, RSS episodes as JSON, show notes, chapters, AI summaries and audio transcripts.
- Podcasting
- RSS
- Speech to Text
- Python
- LLM


