# Apple Podcasts & RSS Scraper (Host Emails & Shows) (`tsun_tsun/apple-podcasts-rss-scraper`) Actor

Query Apple Podcasts by keyword or collection ID, or parse RSS 2.0 and Atom feeds directly. Extracts host emails, artwork, audio enclosure URLs, durations, and plain-text episode show notes over plain HTTP.

- **URL**: https://apify.com/tsun_tsun/apple-podcasts-rss-scraper.md
- **Developed by:** [tsun tsun](https://apify.com/tsun_tsun) (community)
- **Categories:** Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 podcast show profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apple Podcasts & RSS Scraper (Host Emails & Shows)

Query Apple's iTunes Search API, iTunes Lookup API, and raw podcast RSS 2.0 or Atom XML feeds over native Node.js HTTP/HTTPS sockets. Pass search terms, Apple Podcasts show URLs, numeric collection IDs, or direct feed URLs to retrieve normalized `podcast` show records (including `<itunes:email>`, artwork, categories, and homepage links) plus optional `episode` records with entity-decoded MP3/M4A enclosure URLs and plain-text show notes.

Three discovery channels can run alone or together: `podcastInputs` batches up to 50 lookups per call against `itunes.apple.com/lookup` (inferring regional storefronts like `/gb/podcast/...` from Apple URLs), `searchTerms` queries `itunes.apple.com/search`, and `rssFeedUrls` downloads feeds directly. Duplicate feeds merge by normalized feed URL so direct RSS entries still inherit Apple collection IDs, artwork, and primary genres.

A streaming XML parser reads channel metadata once and streams only as many `<item>` or `<entry>` blocks as `maxEpisodesPerPodcast` requests. When Apple already provides `trackCount`, the HTTP response stream terminates early right after the requested episodes are parsed, avoiding buffering 10 MB+ back-catalog feeds in RAM. Host email extraction checks `<itunes:owner><itunes:email>`, `<itunes:email>`, `<managingEditor>`, `<podcast:email>`, and Atom `<author><email>` in order, normalizes valid addresses to lowercase, and rejects HTML parking pages before billing.

### Use cases

- Build B2B podcast guest-booking lists by searching niche topics with `requireHostEmail: true` and `includeEpisodes: false`, paying only for shows that publish a contact address.
- Track specific competitor or industry shows via `podcastInputs` and `postedWithinDays: 7` to capture new episode releases and show notes on a weekly schedule.
- Feed entity-decoded `audioUrl` MP3/M4A links and plain-text `showNotesText` into Whisper transcription pipelines or vector search indexes.
- Enrich spreadsheets of raw RSS URLs with normalized owner names, categories, artwork URLs, and episode counts without maintaining a custom XML parser.

### Input reference

Supply at least one value in `podcastInputs`, `searchTerms`, or `rssFeedUrls`.

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `podcastInputs` | `string[]` | *(none)* | Apple Podcasts URLs, `id`-prefixed tokens (`id396900791`), or numeric collection IDs. |
| `searchTerms` | `string[]` | *(none)* | Keywords sent to the Apple Podcasts catalog search API. |
| `rssFeedUrls` | `string[]` | *(none)* | Direct public HTTP(S) RSS 2.0 or Atom podcast XML feed URLs. |
| `country` | `string` | `"US"` | Two-letter Apple storefront code (`UK` maps to `GB`). |
| `requireHostEmail` | `boolean` | `false` | Drop shows that omit a public RSS email before billing (`$0` charged). |
| `maxPodcastsPerQuery` | `integer` | `10` | Maximum shows returned per search term (`1-100`). |
| `includeEpisodes` | `boolean` | `true` | Emit `episode` items alongside each `podcast` record. |
| `maxEpisodesPerPodcast` | `integer` | `5` | Maximum matching episodes extracted per show (`0-50`). |
| `postedWithinDays` | `integer` | `0` | Only keep episodes published within the last N days (`0-3650`; `0` disables). |
| `concurrency` | `integer` | `4` | Parallel feed downloads (`1-10`). |

#### Example input

```json
{
  "podcastInputs": [
    "https://podcasts.apple.com/us/podcast/founders-talk-startups-ceos-leadership/id396900791"
  ],
  "searchTerms": ["b2b saas marketing"],
  "rssFeedUrls": ["https://changelog.com/founderstalk/feed"],
  "country": "US",
  "requireHostEmail": false,
  "includeEpisodes": true,
  "maxPodcastsPerQuery": 10,
  "maxEpisodesPerPodcast": 5,
  "postedWithinDays": 30
}
```

### Output schema & sample records

Show profiles (`recordType: "podcast"`) and episodes (`recordType: "episode"`) write to the default dataset (with episodes batched in chunks of 25), and a structured run summary saves to Key-Value Store record `OUTPUT`.

#### Podcast show profile

```json
{
  "recordType": "podcast",
  "appleCollectionId": "396900791",
  "podcastTitle": "Founders Talk",
  "hostEmail": "editors@changelog.com",
  "ownerName": "Changelog Media",
  "author": "Changelog Media",
  "description": "In-depth, one-on-one conversations with founders, CEOs, and makers.",
  "feedUrl": "https://changelog.com/founderstalk/feed",
  "websiteUrl": "https://changelog.com/founderstalk",
  "appleUrl": "https://podcasts.apple.com/us/podcast/founders-talk-startups-ceos-leadership/id396900791?uo=4",
  "language": "en-us",
  "primaryGenre": "Technology",
  "categories": ["Business", "Technology"],
  "artworkUrl": "https://cdn.changelog.com/uploads/covers/founders-talk-original.png",
  "episodeCount": 112,
  "scrapedAt": "2026-11-24T19:14:22.618Z"
}
```

#### Podcast episode

```json
{
  "recordType": "episode",
  "appleCollectionId": "396900791",
  "podcastTitle": "Founders Talk",
  "hostEmail": "editors@changelog.com",
  "feedUrl": "https://changelog.com/founderstalk/feed",
  "episodeGuid": "https://changelog.com/founderstalk/112",
  "episodeTitle": "Building Developer Tools & Autonomous Agents",
  "publishedAt": "2026-11-18T16:05:00.000Z",
  "duration": "42:10",
  "audioUrl": "https://cdn.changelog.com/uploads/founderstalk/112/founders-talk-112.mp3",
  "episodeUrl": "https://changelog.com/founderstalk/112",
  "showNotesText": "Episode notes covering developer distribution, pricing, and agent reliability.",
  "scrapedAt": "2026-11-24T19:14:22.618Z"
}
```

#### Field reference

| Field | Type | Description |
| :--- | :--- | :--- |
| `recordType` | `string` | `"podcast"` or `"episode"`. |
| `appleCollectionId` | `string \| null` | Apple Podcasts numeric collection ID. |
| `podcastTitle` | `string` | Show title from RSS/Atom XML or Apple metadata. |
| `hostEmail` | `string \| null` | Normalized lowercase host/owner email. |
| `ownerName` / `author` | `string \| null` | Show owner and author/network names (`podcast`). |
| `description` | `string` | Plain-text show summary (`podcast`). |
| `feedUrl` / `websiteUrl` / `appleUrl` | `string \| null` | RSS feed, show homepage, and Apple Podcasts listing URLs. |
| `language` / `primaryGenre` | `string \| null` | Feed language code and primary genre (`podcast`). |
| `categories` | `string[]` | Deduplicated iTunes/Atom category names (`podcast`). |
| `artworkUrl` | `string \| null` | Cover artwork URL (`podcast`). |
| `episodeCount` | `number \| null` | Apple `trackCount` or streamed XML item count (`podcast`). |
| `episodeGuid` / `episodeTitle` | `string` | Episode GUID/ID and title (`episode`). |
| `publishedAt` / `duration` | `string \| null` | ISO 8601 publish date and `<itunes:duration>` (`episode`). |
| `audioUrl` / `episodeUrl` | `string \| null` | Entity-decoded audio enclosure URL and episode page link (`episode`). |
| `showNotesText` | `string` | Plain-text episode show notes (`episode`). |
| `scrapedAt` | `string` | ISO 8601 UTC extraction timestamp. |

### Pay-Per-Event pricing

Split Pay-Per-Event billing with **$0 actor-start fee** and **$0 proxy fees**. Shows excluded by `requireHostEmail`, episodes excluded by `postedWithinDays`, and invalid feeds cost `$0`.

| Event (Apify Store Label) | Free / 1k | Bronze (-10%) | Silver (-20%) | Gold+ (-30%) |
| :--- | :--- | :--- | :--- | :--- |
| Podcast show profile (`podcast-scraped`) | `$4.00` | `$3.60` | `$3.20` | `$2.80` |
| Podcast episode (`episode-scraped`) | `$0.80` | `$0.72` | `$0.64` | `$0.56` |

`Gold+` covers Gold, Platinum, and Diamond plans (all `-30%`). Apify's **$5 monthly free credit** covers **1,250 podcast show profiles/month** (`includeEpisodes: false`) or **625 shows + 3,125 episodes/month** on the Free plan.

### Calling from MCP, SDKs & cURL

#### Claude Code (MCP)

```bash
claude mcp add --transport http apify-podcasts \
  "https://mcp.apify.com/?tools=tsun_tsun/apple-podcasts-rss-scraper" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

#### Claude Desktop, Cursor & Windsurf (MCP)

```json
{
  "mcpServers": {
    "apify-podcasts": {
      "url": "https://mcp.apify.com/?tools=tsun_tsun/apple-podcasts-rss-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### JavaScript / TypeScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('tsun_tsun/apple-podcasts-rss-scraper').call({
  podcastInputs: ['396900791'],
  searchTerms: ['b2b saas marketing'],
  requireHostEmail: true,
  includeEpisodes: false,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((x) => `${x.podcastTitle}: ${x.hostEmail}`));
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("tsun_tsun/apple-podcasts-rss-scraper").call(
    run_input={
        "rssFeedUrls": ["https://changelog.com/founderstalk/feed"],
        "maxEpisodesPerPodcast": 5,
        "postedWithinDays": 30,
    }
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items), items[0]["podcastTitle"])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/tsun_tsun~apple-podcasts-rss-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "podcastInputs": ["396900791"],
    "maxEpisodesPerPodcast": 3
  }'
```

### Benchmarks, limits & scope

On Apify Cloud (256 MB memory), a quick RSS check finished in `2.17 s` at `44.1 MB` peak RAM (`4` records). On the full 11-show + 55-episode default prefill benchmark (which hits multiple 4-10 MB+ back-catalog feeds), switching from full-XML buffering to the native streaming HTTP/XML parser cut peak JS heap from `87.0 MB` down to `33.0 MB` (`88.7 MB` Windows RSS, `4.0 s` wall time, `0` feed errors). The Actor runs down to `128 MB` minimum memory.

Every HTTP request enforces a 16-second per-hop timeout, a 10 MB streaming RSS cap, `Retry-After` backoff on `403`/`429`/`5xx`, cross-origin `Cookie`/`Authorization` stripping on redirects, linear O(N) XML scanning, and DNS-pinned SSRF checks covering private IPv4/IPv6, metadata hosts, NAT64/Teredo/6to4, and `.local`/`.internal` suffixes.

#### Scope boundaries

This Actor does not transcribe audio (it outputs `audioUrl` links and text show notes rather than running Whisper), cannot read Spotify-exclusive feeds or private listener/download analytics, and makes direct unauthenticated HTTP(S) requests without proxies or login cookies.

### Frequently asked questions

#### How does the streaming parser handle 10 MB+ back-catalog feeds?

When `trackCount` is supplied by Apple Search or Lookup, the parser terminates the HTTP response stream immediately after extracting `maxEpisodesPerPodcast` matching entries (often reading under 60 KB instead of 10 MB). For direct `rssFeedUrls` without an Apple `trackCount`, each `<item>` is discarded as soon as it is parsed or counted so RAM stays bounded.

#### Why did an Apple numeric ID in `podcastInputs` return zero shows?

Apple's lookup filter requires `kind === "podcast"` or a non-empty `feedUrl`, which intentionally rejects music tracks, albums, and audiobooks that share numeric iTunes IDs. Verify that the ID comes from a `podcasts.apple.com/.../id<digits>` show URL.

#### What happens if a show's RSS feed omits `<itunes:email>`?

Some publishers hide email tags for privacy. Those shows return `hostEmail: null` by default; turn on `requireHostEmail: true` to drop them before `Actor.pushData` at `$0`.

#### Can I query non-US Apple Podcasts storefronts?

Yes. Set `country` to any two-letter ISO storefront code (`GB`, `DE`, `AU`, `JP`, `SG`; `UK` normalizes to `GB`). If `country` is omitted, `podcastInputs` URLs with regional paths like `/gb/podcast/...` are looked up under that URL's storefront automatically.

### Related Actors

Companion lightweight API Actors and free workflow starters in the [Apify Automation Toolkit](https://pie527645-cloud.github.io/apify-automation-toolkit/):

| Actor | Best paired for |
| :--- | :--- |
| [Website Contact, Email MX/DMARC & Tech Stack Enricher](https://apify.com/tsun_tsun/website-lead-tech-enricher) | Verify show domains from `websiteUrl` with MX/SPF/DMARC checks and extra contacts. |
| [Substack Newsletter & Archive Scraper (Markdown)](https://apify.com/tsun_tsun/substack-intelligence-scraper) | Pull creator newsletters and outbound links alongside their podcasts. |
| [Google News & Universal RSS/Atom Feed Scraper](https://apify.com/tsun_tsun/google-news-rss-intelligence) | Monitor press mentions for podcast hosts, guests, and sponsors. |
| [Fast Website & Sitemap Markdown Crawler for AI/RAG](https://apify.com/tsun_tsun/fast-website-markdown-crawler) | Crawl show websites and episode landing pages into Markdown. |
| [Apple App Store & Reviews Scraper (iOS Apps & Ratings)](https://apify.com/tsun_tsun/app-store-reviews-scraper) | Track iOS app listings and reviews for media and audio apps. |
| [Wikipedia Knowledge & RAG Markdown Scraper (API)](https://apify.com/tsun_tsun/wikipedia-rag-knowledge-scraper) | Pull structured infoboxes and Wikidata IDs for notable hosts and guests. |

# Changelog

This Actor's version history is a separate document: https://apify.com/tsun_tsun/apple-podcasts-rss-scraper/changelog.md

# Actor input Schema

## `podcastInputs` (type: `array`):

Direct Apple Podcasts show URLs (e.g. 'https://podcasts.apple.com/us/podcast/founders-talk-startups-ceos-leadership/id396900791'), id-prefixed IDs ('id396900791'), or bare numeric Apple collection IDs ('396900791'). Looked up via Apple's iTunes Lookup API and enriched from their RSS feed.

## `searchTerms` (type: `array`):

Keywords to search in the Apple Podcasts catalog (e.g. 'artificial intelligence startup', 'b2b saas marketing'). Provide podcastInputs, searchTerms, rssFeedUrls, or any combination.

## `rssFeedUrls` (type: `array`):

Direct public http(s) RSS 2.0 or Atom podcast XML feed URLs to enrich with host emails, show metadata, and episode show notes.

## `country` (type: `string`):

Two-letter Apple storefront country code (e.g. US, GB, DE, AU, SG). Automatically maps 'UK' to 'GB'.

## `requireHostEmail` (type: `boolean`):

Skip podcasts whose RSS/Atom feed does not disclose an owner/host email. Skipped shows cost $0.

## `maxPodcastsPerQuery` (type: `integer`):

Maximum shows fetched per Apple Podcasts search term (1 to 100).

## `includeEpisodes` (type: `boolean`):

Also emit individual episode records with audio enclosure URLs, duration, GUID, and clean plain-text show notes.

## `maxEpisodesPerPodcast` (type: `integer`):

Maximum recent episodes extracted per podcast when Extract Recent Episodes is enabled (0 to 50).

## `postedWithinDays` (type: `integer`):

Only emit episodes published within the last N days (filtered before billing). Set 0 to disable episode age filtering.

## `concurrency` (type: `integer`):

Concurrent RSS/Atom feed downloads executed in parallel (1 to 10).

## Actor input object example

```json
{
  "podcastInputs": [
    "https://podcasts.apple.com/us/podcast/founders-talk-startups-ceos-leadership/id396900791"
  ],
  "searchTerms": [
    "artificial intelligence startup"
  ],
  "rssFeedUrls": [
    "https://changelog.com/founderstalk/feed"
  ],
  "country": "US",
  "requireHostEmail": false,
  "maxPodcastsPerQuery": 10,
  "includeEpisodes": true,
  "maxEpisodesPerPodcast": 5,
  "postedWithinDays": 30,
  "concurrency": 4
}
```

# Actor output Schema

## `summary` (type: `string`):

JSON summary with podcasts discovered, shows and episodes pushed/charged, skipped shows without host email, and feed errors.

## `records` (type: `string`):

Combined dataset of podcast show profile records (with hostEmail and artwork) and episode records (with audioUrl and show notes).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [
        "artificial intelligence startup"
    ],
    "rssFeedUrls": [
        "https://changelog.com/founderstalk/feed"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tsun_tsun/apple-podcasts-rss-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": ["artificial intelligence startup"],
    "rssFeedUrls": ["https://changelog.com/founderstalk/feed"],
}

# Run the Actor and wait for it to finish
run = client.actor("tsun_tsun/apple-podcasts-rss-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "artificial intelligence startup"
  ],
  "rssFeedUrls": [
    "https://changelog.com/founderstalk/feed"
  ]
}' |
apify call tsun_tsun/apple-podcasts-rss-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tsun_tsun/apple-podcasts-rss-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/C9dUJ8KbathjUh7KF/builds/F2iluQHH4Yiz43LZb/openapi.json
