# Podcast RSS Transcript Extractor (`pecopeko/podcast-rss-transcript-extractor`) Actor

Extract podcast metadata, host contact emails, Apple Podcasts reviews JSON, episodes & Podcasting 2.0 VTT/SRT/JSON transcripts from Apple IDs, search queries or RSS feeds. Zero browser, fair Pay-Per-Event split for RAG & PR leads.

- **URL**: https://apify.com/pecopeko/podcast-rss-transcript-extractor.md
- **Developed by:** [peco](https://apify.com/pecopeko) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 episode extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Podcast RSS, Host Contacts, Apple Reviews & Transcript Extractor

Extract **podcast host/owner contact emails** (`<itunes:owner>`), show categories, Podcasting 2.0 `<podcast:person>` & `<podcast:funding>` tags, **Apple Podcasts customer reviews**, clean HTML-stripped show notes, chapters, and normalized **Podcasting 2.0 transcripts (`.vtt`, `.srt`, `.json`, `.txt`)** directly from RSS XML and official iTunes APIs.

Built for **lightweight HTTP, zero-browser** reliability with strict SSRF IP validation on every RSS, transcript, chapter, and redirect URL.

### Key Features

- **Host Contact & Lead-Gen Show Metadata**:
  - Automatically parses `<itunes:owner>` into `owner_name` and `owner_email` (with `<managingEditor>` email fallback), `<itunes:category>` (including nested subcategories), `<itunes:author>`, `language`, `<podcast:person>` hosts/guests, and `<podcast:funding>` support URLs.
- **Podcasting 2.0 VTT / SRT / JSON / TXT Transcripts**:
  - Prioritizes structured formats (`.json` → `.vtt` → `.srt` → `.txt`), preserves VTT speaker labels (`<v Speaker>`), and outputs uniform timestamped segments (`start_sec`, `end_sec`, `speaker`, `text`) plus a clean `full_transcript` string ready for RAG and LLM summarization.
- **Optional Apple Podcasts Customer Reviews (`includeAppleReviews`)**:
  - Fetches official public Apple Podcasts reviews JSON (`itunes.apple.com/{country}/rss/customerreviews/...`) once per show when an iTunes ID is available, outputting `apple_reviews`, `apple_review_count`, and `apple_average_rating`.
- **Precision Filtering**:
  - `onlyWithTranscripts`: Return only episodes with extracted transcripts.
  - `publishedAfter`: ISO date filter (e.g. `"2026-01-01"`).
  - `keywordFilter`: Case-insensitive filter across episode title, show notes, and transcript text.
- **Hardened XML & SSRF Safety**:
  - Blocks DTD/ENTITY declarations (`<!DOCTYPE`, `<!ENTITY`) against XML billion-laughs attacks.
  - Validates every RSS, transcript, chapter, and redirect hop against loopback, private, link-local, and cloud metadata IPs.

### Fair Split Pricing (Pay-Per-Event)

Pay only for what you actually get:

- **`episode_extracted` (Primary)**: **`$0.002`** per episode record extracted (metadata, host email, show notes, chapters, Apple reviews).
- **`transcript_extracted` (Conditional)**: **`$0.002`** charged **ONLY** when Podcasting 2.0 transcript segments are actually extracted for an episode. Episodes without transcripts are never charged the transcript fee.

### Popular Use Cases

1. **Podcast Guest Booking & Sponsorship Outreach**: Search iTunes niches via `searchQueries` and export `owner_name`, `owner_email`, `categories`, `funding_urls`, and `apple_average_rating`.
2. **AI / RAG Audio Knowledge Bases**: Pull timestamped transcripts (`onlyWithTranscripts: true`) + chapters for podcast search engines and briefing agents.
3. **Brand & Topic Monitoring**: Track mentions via `keywordFilter` + `publishedAfter` across hundreds of RSS feeds without paying for Whisper transcription.

### Input Example

```json
{
  "applePodcastIds": ["1584274529"],
  "rssUrls": ["https://podnews.net/rss"],
  "maxEpisodesPerFeed": 5,
  "country": "US",
  "fetchTranscripts": true,
  "fetchChapters": true,
  "includeTranscriptSegments": true,
  "includeAppleReviews": true,
  "onlyWithTranscripts": false,
  "publishedAfter": "2026-01-01",
  "keywordFilter": ""
}
```

### Output Example

```json
{
  "feed_url": "https://podnews.net/rss",
  "podcast_title": "Podnews Daily",
  "podcast_author": "Podnews",
  "language": "en",
  "owner_name": "James Cridland",
  "owner_email": "editor@podnews.net",
  "categories": ["News", "Tech News", "Technology"],
  "people": [
    {
      "name": "James Cridland",
      "role": "host",
      "group": "cast",
      "href": "https://james.cridland.net/",
      "img": null
    }
  ],
  "funding_urls": ["https://podnews.net/article/support-podnews"],
  "episode_title": "Daily Podcast Industry Briefing",
  "pub_date_iso": "2026-11-19T08:00:00+00:00",
  "transcript_status": "extracted",
  "transcript_format": "vtt",
  "transcript_segment_count": 42,
  "full_transcript": "Welcome to Podnews Daily...",
  "chapters_status": "extracted",
  "chapters": [
    {
      "start_sec": 0.0,
      "title": "Headlines",
      "url": null,
      "img": null
    }
  ],
  "apple_reviews_status": "extracted",
  "apple_review_count": 10,
  "apple_average_rating": 4.9,
  "apple_reviews": [
    {
      "review_id": "1092837465",
      "author": "PodcastListener",
      "rating": 5,
      "title": "Essential daily briefing",
      "content": "Concise, accurate, and always includes full transcripts.",
      "updated_at": "2026-11-12T10:15:00-07:00"
    }
  ]
}
```

# Actor input Schema

## `applePodcastIds` (type: `array`):

List of Apple Podcasts numeric IDs (e.g. '1584274529') or Apple Podcasts URLs to resolve via the iTunes Lookup API.

## `searchQueries` (type: `array`):

Search queries resolved to RSS feeds via the public iTunes Search API.

## `rssUrls` (type: `array`):

Direct HTTP(S) podcast RSS XML URLs to parse (SSRF-protected with safe redirect validation).

## `maxEpisodesPerFeed` (type: `integer`):

Maximum number of newest matching episodes to extract per podcast feed.

## `searchLimitPerQuery` (type: `integer`):

Maximum number of podcast feeds to resolve per search query.

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

Two-letter country code passed to the iTunes Search/Lookup and Apple Reviews APIs (e.g. US, JP, GB).

## `fetchTranscripts` (type: `boolean`):

Fetch Podcasting 2.0 <podcast:transcript> files (SRT, VTT, JSON, TXT) and normalize into segments + full_transcript.

## `fetchChapters` (type: `boolean`):

Fetch and normalize JSON chapters referenced by <podcast:chapters> tags.

## `includeTranscriptSegments` (type: `boolean`):

Include per-cue timestamped segments alongside full_transcript in dataset records.

## `includeAppleReviews` (type: `boolean`):

Fetch official public Apple Podcasts customer reviews JSON when an Apple Podcasts iTunes ID is available.

## `onlyWithTranscripts` (type: `boolean`):

Filter output to episodes that include a Podcasting 2.0 transcript (and successfully extracted transcript segments when fetchTranscripts is enabled).

## `publishedAfter` (type: `string`):

Optional ISO-8601 date or timestamp (e.g. '2026-01-01') to include only episodes published on or after that date.

## `keywordFilter` (type: `string`):

Optional case-insensitive keyword filter matched against episode title, show notes, podcast title, and extracted transcript text.

## Actor input object example

```json
{
  "applePodcastIds": [
    "1584274529"
  ],
  "searchQueries": [],
  "rssUrls": [],
  "maxEpisodesPerFeed": 10,
  "searchLimitPerQuery": 3,
  "country": "US",
  "fetchTranscripts": true,
  "fetchChapters": true,
  "includeTranscriptSegments": true,
  "includeAppleReviews": false,
  "onlyWithTranscripts": false
}
```

# Actor output Schema

## `results` (type: `string`):

Structured JSON records extracted during this Actor run.

# 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 = {
    "applePodcastIds": [
        "1584274529"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pecopeko/podcast-rss-transcript-extractor").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 = { "applePodcastIds": ["1584274529"] }

# Run the Actor and wait for it to finish
run = client.actor("pecopeko/podcast-rss-transcript-extractor").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 '{
  "applePodcastIds": [
    "1584274529"
  ]
}' |
apify call pecopeko/podcast-rss-transcript-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pecopeko/podcast-rss-transcript-extractor"
        }
    }
}
```

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/3unf9MzzaYIsmWD7E/builds/tQX3yRutArSkw9TJB/openapi.json
