# Apple Podcasts Scraper - Podcast Search & Episode Feeds (`captainhandsome/apple-podcasts-scraper`) Actor

Search the Apple Podcasts directory by keyword, or read exact shows by Apple id, Podcasts URL or RSS feed URL, and return each show plus its newest episodes: titles, numbers, dates, durations, audio URLs and optional descriptions. Uses Apple's public search API and each podcast's own public RSS feed

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

## Pricing

from $1.50 / 1,000 results

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

## Apple Podcasts Scraper — podcast search & episode feeds

Find podcasts in Apple's public podcast directory and read each show's own public RSS
feed to return its newest episodes. No API key, no login, no browser.

### What you can do

1. **Keyword search** — enter keywords and a country; the Actor returns the shows Apple
   ranks for that keyword, each with its Apple id, publisher, genre, artwork and RSS feed.
2. **Exact shows** — pass Apple podcast ids (`1236907421`), `podcasts.apple.com` URLs or any
   public RSS feed URL to read those shows directly.
3. **Episodes** — for every show, the Actor reads the feed and returns the newest N
   episodes: title, episode/season number, publication date, duration, audio file URL,
   episode page URL and GUID.
4. **Multi-country** — pass several country codes (`us`, `gb`, `de`, …); each is searched
   separately and tagged on the row.

### Output

`rowType` tells you what a row is: `podcast` (one per show) or `episode` (one per episode).

| Field | Meaning |
| --- | --- |
| `rowType` | `podcast` or `episode` |
| `podcastId`, `name`, `artist` | Apple collection id, show name, publisher (podcast rows) |
| `feedUrl`, `itunesUrl` | Public RSS feed and Apple Podcasts page |
| `genre`, `artworkUrl`, `country` | Apple genre, artwork URL, store country |
| `searchTerm` | Keyword that found the show, when found by search |
| `reportedEpisodeCount`, `latestReleaseDate` | What Apple reports for the show |
| `episodesInFeed` | How many episodes the RSS feed currently lists |
| `podcastName`, `title` | Show and episode title (episode rows) |
| `episodeNumber`, `seasonNumber` | Episode and season numbers, when the feed states them |
| `publishedAt`, `durationSeconds` | Publication date (ISO 8601) and duration in seconds |
| `audioUrl`, `episodeUrl`, `guid` | Audio file URL, episode web page, feed GUID |
| `description` | Episode description — only when "Include episode descriptions" is on |
| `scrapedAt` | When the row was collected |

### Input examples

Search a keyword and take the 10 newest episodes of each of the top 5 shows:

```json
{ "searchTerms": ["startup"], "countries": ["us"], "maxPodcastsPerTerm": 5, "maxEpisodesPerPodcast": 10 }
```

Read exact shows (Apple id, Apple URL and any RSS feed):

```json
{ "searchTerms": [], "podcastRefs": ["1236907421", "https://podcasts.apple.com/us/podcast/id570060128", "https://example.com/feed.xml"], "maxEpisodesPerPodcast": 50 }
```

Show metadata only, no episodes:

```json
{ "searchTerms": ["climate tech"], "maxPodcastsPerTerm": 20, "maxEpisodesPerPodcast": 0 }
```

### Pricing

Pay per result: **$0.0015 per row** (about $1.50 per 1,000 rows), plus a small per-run start
fee. Podcast and episode rows are each one result. Runs that return nothing are not billed
per result.

### Honest limits

- Apple's directory search is capped at 200 results per keyword; `maxPodcastsPerTerm` never
  exceeds that.
- Episodes come from each show's public RSS feed, so the data is exactly what the publisher
  publishes: some feeds give no duration, no episode numbers, or only the most recent few
  hundred episodes. Missing values are returned as `null` rather than invented.
- A feed that is unreachable or password-protected is logged and skipped; if nothing at all
  could be read, the run fails loudly instead of charging for an empty dataset.
- Podcasts that Apple lists but that publish no public RSS feed cannot produce episode rows;
  they are logged and skipped.
- The Actor reads only public data. Apple Podcasts ratings and reviews are not included:
  Apple does not publish them in a form this Actor can fetch reliably.

# Actor input Schema

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

Keyword searches against the Apple Podcasts directory. Each keyword returns up to 'Max podcasts per keyword' shows per country. Defaults to a sample keyword so a run with no input still returns data.

## `podcastRefs` (type: `array`):

Exact shows to read instead of (or as well as) searching: a numeric Apple id like 1236907421, a podcasts.apple.com URL, or any public RSS feed URL.

## `countries` (type: `array`):

Two-letter Apple Podcasts country codes (us, gb, de, fr, jp, ...). Each country is searched separately and tagged on the row.

## `maxPodcastsPerTerm` (type: `integer`):

How many shows to take from each keyword search. Apple caps directory searches at 200.

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

How many of the newest episodes to return from each show's RSS feed. Set 0 to return podcast rows only. Each episode is one billed result.

## `includeDescription` (type: `boolean`):

Attach the episode description text to each episode row. Makes the dataset larger.

## Actor input object example

```json
{
  "searchTerms": [
    "startup"
  ],
  "podcastRefs": [],
  "countries": [
    "us"
  ],
  "maxPodcastsPerTerm": 3,
  "maxEpisodesPerPodcast": 20,
  "includeDescription": false
}
```

# Actor output Schema

## `items` (type: `string`):

Podcast and episode rows in the default dataset. rowType tells you which is which.

# 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": [
        "startup"
    ],
    "podcastRefs": [],
    "countries": [
        "us"
    ],
    "maxPodcastsPerTerm": 3,
    "maxEpisodesPerPodcast": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("captainhandsome/apple-podcasts-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": ["startup"],
    "podcastRefs": [],
    "countries": ["us"],
    "maxPodcastsPerTerm": 3,
    "maxEpisodesPerPodcast": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("captainhandsome/apple-podcasts-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": [
    "startup"
  ],
  "podcastRefs": [],
  "countries": [
    "us"
  ],
  "maxPodcastsPerTerm": 3,
  "maxEpisodesPerPodcast": 20
}' |
apify call captainhandsome/apple-podcasts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,captainhandsome/apple-podcasts-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/Y6fzv3s95FCvyCNh2/builds/VWc5uLGM7bc8yhIfh/openapi.json
