# Apple Podcasts Scraper: Shows, Episodes and RSS (`joesimo/apple-podcasts`) Actor

Search and look up Apple Podcasts through the official iTunes Search and Lookup APIs, then read public episode metadata from podcast RSS feeds. No login. Failed or empty inputs are free.

- **URL**: https://apify.com/joesimo/apple-podcasts.md
- **Developed by:** [Joe Simo](https://apify.com/joesimo) (community)
- **Categories:** Social media, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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: Shows, Episodes and RSS

Search and look up Apple Podcasts through the official public iTunes Search and Lookup APIs, then optionally read episode metadata from each show's public RSS feed. Get clean rows for podcast catalogs and episode lists with titles, artists, genres, artwork, feed URLs, durations and publish dates. No login and no API key.

Empty input runs a short demo search for "technology" (10 podcasts) so you can try the Actor from the Store without filling in a form.

**$0.0015 per result** ($1.50 per 1,000). Invalid inputs, missing podcasts and empty results are saved as free status rows. You are not charged for errors.

### What you get

Each paid row has `status: ok` and a `kind` of `podcast` or `episode`, with:

- `collectionId`, `trackId`, `title`, `artist`, `podcastTitle` (on episodes)
- `appleUrl`, `feedUrl`, `artworkUrl`, `genres`, `trackCount`, `country`
- `releaseDate`, `contentAdvisory`, `description`
- For episodes: `episodeGuid`, `episodeUrl`, `audioUrl` (public enclosure URL as metadata only), `durationMs`, `durationSecs`, `seasonNumber`, `episodeNumber`
- `scrapedAt`

### How to run it

| Goal | Input |
| --- | --- |
| Keyword search | `"queries": ["npr", "true crime"]` |
| One show by id | `"podcastIds": ["121493675"]` |
| Apple Podcasts URL | `"podcastUrls": ["https://podcasts.apple.com/us/podcast/id121493675"]` |
| Show plus episodes | `"podcastIds": ["121493675"], "includeEpisodes": true, "maxEpisodesPerPodcast": 10` |
| Direct public RSS | `"feedUrls": ["https://feeds.npr.org/500005/podcast.xml"]` |
| Other storefront | `"country": "GB"` |

Use **Max items** to cap paid rows. 0 means no extra cap (the run still stops at your max cost).

### How it works

- Catalog search and id lookup use `https://itunes.apple.com/search` and `https://itunes.apple.com/lookup` (Apple's public iTunes Search API). About 20 calls per minute; the Actor spaces requests and caches lookups.
- Episode lists prefer the publisher `feedUrl` (public RSS), then fall back to iTunes Lookup with `entity=podcastEpisode`.
- The Actor does not open podcasts.apple.com HTML pages and does not use a browser or a proxy.
- Catalog metadata is from Apple. Episode audio URLs are public enclosure links. Preview audio is not downloaded or streamed. Attribution for promo previews is documented by Apple as "provided courtesy of iTunes" when those assets are used for promotion; this Actor returns metadata fields only.

### Pricing

| Event | Price | When it is charged |
| --- | --- | --- |
| `result` | $0.0015 | One podcast or episode row with `status: ok` |
| (free) | $0 | `failed`, `not_found`, `invalid_input`, `empty` |

Apify keeps 20% of pay-per-event revenue as its commission.

### Input example

```json
{
  "queries": ["npr"],
  "includeEpisodes": true,
  "maxEpisodesPerPodcast": 5,
  "maxItems": 30,
  "country": "US"
}
```

### Output example

```json
{
  "status": "ok",
  "kind": "podcast",
  "source": "search",
  "collectionId": 121493675,
  "title": "NPR News Now",
  "artist": "NPR",
  "appleUrl": "https://podcasts.apple.com/us/podcast/npr-news-now/id121493675",
  "feedUrl": "https://feeds.npr.org/500005/podcast.xml",
  "genres": ["News"]
}
```

### Limits and notes

- Personal data is limited to public show and episode listing fields Apple and the publisher feed already publish. No emails and no listener data.
- iTunes Search is rate limited (about 20 calls per minute). Large multi-query runs take longer by design.
- Default memory is 256 MB. No proxy is required.
- Data source: Apple iTunes Search and Lookup APIs plus public podcast RSS feeds.

### Support

Questions or feature requests: joesimo@mail.grokbot.com

Docs for every Joe Simo Actor: [github.com/Joe-Simo/apify-actors](https://github.com/Joe-Simo/apify-actors)

# Actor input Schema

## `queries` (type: `array`):

Terms to search in the Apple Podcasts catalog via the official iTunes Search API (media=podcast). The form is prefilled with "technology". Clear the list (and leave ids and feeds empty) to run the 10-podcast demo.

## `query` (type: `string`):

Optional single search term. Merged with Search queries.

## `podcastIds` (type: `array`):

Apple Podcasts collection ids. Example: 121493675 for NPR News Now.

## `podcastUrls` (type: `array`):

podcasts.apple.com or itunes.apple.com links that contain /idNNNN. Mixed with Podcast IDs.

## `feedUrls` (type: `array`):

Publisher podcast RSS feeds (the feedUrl Apple returns, or any public feed). Episode metadata only.

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

Two-letter ISO country code for the iTunes storefront (default US).

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

Also fetch episode metadata for each podcast (public RSS preferred, then iTunes Lookup). Each episode is its own paid row.

## `preferRss` (type: `boolean`):

When Include episodes is on, try the podcast feedUrl first (richer lists). Falls back to iTunes episode lookup.

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

Cap episodes fetched per show. 0 means 20. Ignored when Include episodes is off.

## `searchLimit` (type: `integer`):

Max podcasts returned per search query (1 to 200). Apple Search default is 50.

## `maxItems` (type: `integer`):

Stop after this many paid rows (podcasts + episodes). 0 means no extra cap (the run still stops at your max cost). The form is prefilled at 10 so a first Try stays small. Empty input also uses 10 for the demo.

## `timeoutSecs` (type: `integer`):

Per-request timeout for iTunes and RSS calls.

## Actor input object example

```json
{
  "queries": [
    "technology"
  ],
  "podcastIds": [],
  "podcastUrls": [],
  "feedUrls": [],
  "country": "US",
  "includeEpisodes": false,
  "preferRss": true,
  "maxEpisodesPerPodcast": 20,
  "searchLimit": 25,
  "maxItems": 10,
  "timeoutSecs": 25
}
```

# Actor output Schema

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

One item per podcast or episode, plus free status rows for failed, empty or invalid inputs.

## `runSummary` (type: `string`):

JSON summary: results saved, sources used, requests, stop reason and attribution note.

# 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 = {
    "queries": [
        "technology"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("joesimo/apple-podcasts").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 = {
    "queries": ["technology"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("joesimo/apple-podcasts").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 '{
  "queries": [
    "technology"
  ],
  "maxItems": 10
}' |
apify call joesimo/apple-podcasts --silent --output-dataset

```

## MCP server setup

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

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/sO2Guy0mDF0CtI7ac/builds/wdEeffKfgVaIo1UfF/openapi.json
