# Apple Podcasts Scraper — Charts, Search & Episodes (`istmobot/apple-podcasts-scraper`) Actor

Get Apple Podcasts top charts by country and genre, search shows, and read episodes from public RSS feeds. Input: countries, genres, search terms or show URLs. Output: one JSON row per show or episode with rank, publisher, feed URL, dates, audio and transcript links. No API key.

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

## Pricing

from $1.20 / 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.
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 Scraper — Charts, Search & Episodes

Get **Apple Podcasts top charts, show search, show details and episodes** as clean JSON rows. Charts cover every country where Apple publishes one, with 19 genres and up to 200 places each. Episodes come from each show's own public RSS feed, with audio file, duration, season, and the links of transcripts and chapters when the show publishes them. No API key, no login, no browser, no proxy.

### What is Apple Podcasts Scraper?

Apple publishes its podcast charts and its podcast directory as public JSON. Every podcast also publishes an RSS feed with all its episodes. This Actor reads both and joins them into one flat, predictable table:

- **Top shows**: the Apple Podcasts chart of any country, overall or by genre, with rank, publisher, RSS feed URL, number of episodes and date of the latest episode.
- **Top episodes**: the trending episodes of a country, with their show.
- **Rank changes**: compare each run with the previous one and see who moved up, who fell and who is new.
- **Search**: shows that match a keyword, a topic or a name, in any country's store.
- **Specific shows**: details of a show by Apple URL, Apple id or RSS feed URL.
- **Episodes**: the newest episodes of every show found by any of the above, optionally only those you have not received yet.

Use it to:

- **Track chart positions** of your shows, your clients' shows or your competitors, every day, in every country.
- **Build a list of shows by topic** for sponsorship, guest booking or PR research: name, publisher, genre, activity, website and feed.
- **Monitor new episodes** of the shows you follow and send them to Slack, a sheet or a transcription pipeline.
- **Feed an AI pipeline**: audio URLs and published transcript files are ready for speech-to-text, search or summaries.
- **Study the market**: which genres and publishers hold the charts of a country, and how long they stay.

What it does **not** do: it does not download or transcribe audio, it does not return listener numbers (Apple does not publish them), ratings or reviews, and it does not collect the private contact details that some feeds carry (the owner's name and email in the feed are never read).

### What data can I get?

Every row has a `type`: `podcast` (a show), `episode`, or `error` (free).

#### Show rows (`type: "podcast"`)

| Field | Meaning |
|---|---|
| `rank` | Place in the chart (mode `charts`) |
| `previousRank`, `rankChange`, `isNewEntry` | Movement since the previous tracked run. `rankChange` is positive when the show moved up. Only with `trackChanges` |
| `chartCountry`, `chartGenre`, `chartType`, `chartUpdatedAt` | Which chart, and when Apple updated it |
| `searchTerm`, `position`, `country` | Which search found the show, and its place in the results (mode `search`) |
| `podcastId` | Apple Podcasts id |
| `title`, `publisher` | Name of the show and of its publisher |
| `description` | Plain-text description. Present in charts (Apple's text, which can be short) and whenever the RSS feed is read |
| `url` | Apple Podcasts page |
| `feedUrl` | Public RSS feed, `null` for shows that have none (for example subscriber-only shows) |
| `websiteUrl`, `language` | From the RSS feed, so only when the feed is read (mode `podcasts`, or output with episodes) |
| `primaryGenre`, `genres` | Genres in Apple's directory |
| `episodeCount` | Number of episodes |
| `latestEpisodeAt` | Date of the latest episode |
| `explicit` | `true` or `false`, `null` when not stated |
| `artworkUrl` | Cover image, 600 × 600 for shows in Apple's directory |
| `scrapedAt` | When the row was read |

#### Episode rows (`type: "episode"`)

| Field | Meaning |
|---|---|
| `podcastId`, `podcastTitle`, `publisher`, `feedUrl` | The show |
| `title`, `description` | Title and plain-text show notes (up to 10,000 characters) |
| `publishedAt` | Publication date, ISO 8601 in UTC |
| `durationSeconds` | Length in seconds |
| `season`, `episodeNumber`, `episodeType` | As given by the show (`full`, `trailer`, `bonus`) |
| `audioUrl`, `audioType`, `audioBytes` | Audio (or video) file, its MIME type and size |
| `transcripts` | List of transcript files the show publishes: `url`, `type`, `language`. Empty when it publishes none |
| `chaptersUrl` | Chapters file, if published |
| `guid` | Episode id in the feed |
| `episodeId` | Apple's id of the episode, only when the row comes from Apple (`source: "apple"`) |
| `url` | Page of the episode |
| `explicit`, `artworkUrl` | As above |
| `source` | `feed` (the show's RSS) or `apple` (Apple's directory, used when there is no readable feed) |
| `rank`, `chartCountry`, `searchTerm`, ... | The chart or search the show came from |

Rows of the **top episodes chart** carry rank, show, title, genres and link; they do not carry audio or show notes. To get those, run the show through mode `podcasts` with `output` set to `episodes`.

### How much does it cost?

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| Result (one show or one episode) | $0.0015, so **$1.50 per 1,000 rows** |

Apify plans above Bronze get a discount on each row (Silver 10%, Gold and above 20%).

Worked examples:

- The top 50 technology podcasts in the US: 50 rows = $0.08 including the start.
- The full top 200 of five countries: 1,000 rows = $1.505.
- A daily check of 30 shows for new episodes, about 20 new ones a day: $0.035 per day, about $1 per month.
- A search for five topics with about 100 shows each: up to 500 rows = $0.755.

Error rows, searches with no results and empty charts are **never charged**. On the Apify Store, comparable podcast Actors charged from $1 to $3 per 1,000 shows in November 2026.

You can set a maximum cost per run. The Actor stops cleanly when it is reached and never delivers rows past it.

### How to use Apple Podcasts Scraper

1. Click **Try for free** and sign in to Apify.
2. Choose **What to get**: top charts, search, or specific podcasts.
3. For charts, pick countries and genres. For search, type your terms. For specific podcasts, paste Apple URLs, Apple ids or RSS feeds.
4. Choose whether you want shows, episodes or both.
5. Click **Start**. The prefilled example (top 50 US technology podcasts) takes about 3 seconds.
6. Download the results as JSON, CSV, Excel or XML, or read them through the API.

#### Track a chart every day

Turn on `trackChanges` and create a schedule (Console → Schedules) with a daily cron such as `0 8 * * *`. The first run stores the whole chart. From the second run on, every row says where the show was before:

```json
{
    "mode": "charts",
    "countries": ["us", "gb"],
    "genres": ["business"],
    "maxResults": 100,
    "trackChanges": true,
    "stateKey": "business-daily"
}
```

#### Get only new episodes

Turn on `onlyNew`. The Actor remembers which episodes of each show it has returned and the next run brings only the new ones. A run with nothing new costs only the start:

```json
{
    "mode": "podcasts",
    "podcasts": ["https://podcasts.apple.com/us/podcast/the-daily/id1200361736", "1502871393"],
    "output": "episodes",
    "onlyNew": true,
    "maxEpisodesPerPodcast": 20
}
```

On the first run of a monitor you get the newest episodes up to the limit, and older ones count as already seen. If a run stops at its maximum cost, the episodes it could not deliver come with the next run.

### ⬇️ Input

```json
{
    "mode": "charts",
    "countries": ["us"],
    "genres": ["technology"],
    "maxResults": 50
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `charts` | `charts`, `search` or `podcasts` |
| `countries` | array | `["us"]` | Two-letter Apple store codes. Each one is a separate chart or search. Mode `podcasts` uses the first |
| `maxResults` | integer | 50 | Rows per chart or per search term and country, 1 to 200 |
| `chartType` | string | `shows` | `shows` (up to 200 places) or `episodes` (up to 100 places, all genres together) |
| `genres` | array | `["all"]` | Genres of the shows chart, see below |
| `trackChanges` | boolean | `false` | Add previous rank, change and new-entry flag |
| `searchTerms` | array | | For mode `search`, up to 500 |
| `podcasts` | array | | For mode `podcasts`: Apple URLs, Apple ids or RSS feed URLs, up to 1,000 |
| `output` | string | `podcasts` | `podcasts`, `episodes` or `both` |
| `maxEpisodesPerPodcast` | integer | 10 | Newest episodes per show, 1 to 2000 |
| `publishedAfter` | string | | Keep episodes since a date (`2026-11-01`) or a relative time (`24 hours`, `7 days`) |
| `onlyNew` | boolean | `false` | Only episodes not returned by earlier runs with this option |
| `stateKey` | string | | Name that keeps the memory of one monitor separate from another |

**Genres:** `all`, `arts`, `business`, `comedy`, `education`, `fiction`, `government`, `health-fitness`, `history`, `kids-family`, `leisure`, `music`, `news`, `religion-spirituality`, `science`, `society-culture`, `sports`, `technology`, `true-crime`, `tv-film`.

**Countries:** the code of the Apple store, for example `us`, `gb`, `ca`, `au`, `ie`, `de`, `fr`, `es`, `it`, `nl`, `se`, `mx`, `br`, `ar`, `co`, `jp`, `kr`, `in`. A code that Apple does not know returns a free error row.

Search example:

```json
{
    "mode": "search",
    "searchTerms": ["artificial intelligence", "startup"],
    "countries": ["us", "de"],
    "maxResults": 100
}
```

### ⬆️ Output

A show from the US technology chart (run of 24 November 2026):

```json
{
    "type": "podcast",
    "chartCountry": "us",
    "chartGenre": "technology",
    "chartType": "shows",
    "chartUpdatedAt": "2026-11-24T01:48:43.000Z",
    "rank": 1,
    "podcastId": "1502871393",
    "title": "All-In with Chamath, Jason, Sacks & Friedberg",
    "publisher": "All-In Podcast, LLC",
    "description": "Industry veterans, degenerate gamblers & besties Chamath Palihapitiya, Jason Calacanis, David Sacks & David Friedberg cover all things economic, tech, political, social & poker.",
    "url": "https://podcasts.apple.com/us/podcast/all-in-with-chamath-jason-sacks-friedberg/id1502871393",
    "feedUrl": "https://rss.libsyn.com/shows/254861/destinations/1928300.xml",
    "websiteUrl": null,
    "language": null,
    "primaryGenre": "Technology",
    "genres": ["Technology", "Business", "Entrepreneurship"],
    "episodeCount": 447,
    "latestEpisodeAt": "2026-11-17T21:43:00.000Z",
    "explicit": false,
    "artworkUrl": "https://is1-ssl.mzstatic.com/image/thumb/Podcasts124/v4/c7/d2/92/c7d292ea-44b3-47ff-2f5e-74fa5b23db6c/mza_7005270671777648882.png/600x600bb.jpg",
    "scrapedAt": "2026-11-24T02:48:43.607Z"
}
```

An episode from a show's feed (show notes shortened here):

```json
{
    "type": "episode",
    "chartCountry": "us",
    "chartGenre": "news",
    "chartType": "shows",
    "chartUpdatedAt": "2026-11-24T01:49:16.000Z",
    "rank": 1,
    "podcastId": "1200361736",
    "podcastTitle": "The Daily",
    "publisher": "The New York Times",
    "feedUrl": "https://feeds.simplecast.com/Sl5CSM3S",
    "episodeId": null,
    "guid": "895e35e8-8529-456a-8558-3760a73ec40a",
    "title": "A Thanksgiving Dinner for $100? Yes, It’s Possible (and Delicious).",
    "description": "Thanksgiving might be the most exciting, and stressful, day of the year for home chefs and pros alike. ...",
    "publishedAt": "2026-11-22T11:00:00.000Z",
    "durationSeconds": 1952,
    "season": null,
    "episodeNumber": null,
    "episodeType": "full",
    "explicit": false,
    "url": "https://www.nytimes.com/the-daily",
    "audioUrl": "https://dts.podtrac.com/redirect.mp3/...",
    "audioType": "audio/mpeg",
    "audioBytes": 31233367,
    "artworkUrl": "https://image.simplecastcdn.com/images/...",
    "transcripts": [],
    "chaptersUrl": null,
    "source": "feed",
    "scrapedAt": "2026-11-24T02:50:01.000Z"
}
```

A row of the top episodes chart with `trackChanges` on:

```json
{
    "type": "episode",
    "chartCountry": "us",
    "chartGenre": "all",
    "chartType": "episodes",
    "chartUpdatedAt": "2026-11-24T02:49:35.000Z",
    "rank": 1,
    "previousRank": 1,
    "rankChange": 0,
    "isNewEntry": false,
    "podcastId": "1089022756",
    "podcastTitle": "Pardon My Take",
    "publisher": "Barstool Sports",
    "feedUrl": "https://mcsorleys.barstoolsports.com/feed/pardon-my-take",
    "episodeId": "1000803551912",
    "title": "NFL Week 11, Fastest 2 Minutes, Niners Dominate The Vikings, Remembering Tom Jackson And Who's Back Of The Week",
    "genres": ["Football"],
    "explicit": true,
    "url": "https://podcasts.apple.com/us/podcast/nfl-week-11-fastest-2-minutes-niners-dominate-the/id1089022756?i=1000803551912",
    "source": "apple",
    "scrapedAt": "2026-11-24T02:49:35.310Z"
}
```

### Error items

A show, chart or search that cannot be read becomes a row with `type: "error"`. It says what failed and why, and it is **not charged**:

```json
{
    "type": "error",
    "input": "999999999999",
    "errorCode": "NOT_FOUND",
    "error": "Apple Podcasts has no show 999999999999 in the \"us\" store, or it could not be read.",
    "scrapedAt": "2026-11-24T02:41:53.000Z"
}
```

| `errorCode` | Meaning |
|---|---|
| `INVALID_PODCAST` | Not an Apple id, an Apple Podcasts show URL or a feed URL |
| `NOT_FOUND` | Apple has no such show in that country's store |
| `FEED_ERROR` | The RSS feed URL you gave could not be read (wrong address, not a feed, server error) |
| `NO_EPISODES` | The show has no public episodes |
| `UNKNOWN_COUNTRY` | Not a country code, or Apple has no chart for it |
| `UNKNOWN_GENRE` | Not one of the genres listed above |
| `NO_RESULTS` | The search or the chart came back empty |
| `TIME_LIMIT` | The run read shows for more than 90 seconds and found very few rows to return (for example, hundreds of shows with no new episodes). It stops instead of running on; split the list into several runs |
| `BLOCKED`, `TIMEOUT`, `HTTP_ERROR` | Apple did not answer properly after five tries. Run again in a few minutes |

A problem in the input itself (for example mode `search` with no search terms) fails the run at once with a clear message and charges no rows.

### Integrations & API

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~apple-podcasts-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"charts","countries":["us"],"genres":["true-crime"],"maxResults":25}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("istmobot/apple-podcasts-scraper").call(run_input={
    "mode": "search",
    "searchTerms": ["climate"],
    "countries": ["gb"],
    "maxResults": 50,
})
for show in client.dataset(run["defaultDatasetId"]).iterate_items():
    if show["type"] == "podcast":
        print(show["title"], "|", show["publisher"], "|", show["latestEpisodeAt"], "|", show["feedUrl"])
```

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('istmobot/apple-podcasts-scraper').call({
    mode: 'podcasts',
    podcasts: ['https://podcasts.apple.com/us/podcast/the-daily/id1200361736'],
    output: 'episodes',
    publishedAfter: '7 days',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(items.map((e) => ({ date: e.publishedAt, title: e.title, minutes: Math.round(e.durationSeconds / 60) })));
```

Connect it to Make, Zapier, n8n or Google Sheets with the Apify integrations, or add a webhook to be called when a run finishes.

### 🤖 Use with AI agents (MCP)

`https://mcp.apify.com?tools=istmobot/apple-podcasts-scraper`

Example prompts: "Which business podcasts entered the UK top 50 this week?" "Find 30 active podcasts about climate in Germany and list their publishers and feeds." "Get the episodes The Daily published in the last 7 days with their audio links."

### Want other data?

- [Audio & Video Transcriber](https://apify.com/istmobot/media-transcriber): turn the audio URLs of this Actor into text.
- [RSS Feed Monitor](https://apify.com/istmobot/rss-feed-monitor): any RSS or Atom feed, with only-new mode.
- [Spotify Artist Stats](https://apify.com/istmobot/spotify-artist-stats): monthly listeners, followers and top tracks.
- [App Store Top Charts](https://apify.com/istmobot/app-store-top-charts): the same kind of chart, for iPhone and iPad apps.
- [Metacritic Scraper](https://apify.com/istmobot/metacritic-scraper): scores and reviews of games, movies and TV.

### ❓ FAQ

**Where does the data come from?** Charts, search and show details come from Apple's public iTunes Search API and RSS feeds. Episodes come from the RSS feed that each podcast publishes for podcast players. Shows with no readable feed fall back to the episode list in Apple's directory (up to 200 episodes).

**Is this an official Apple product?** No. It is not affiliated with Apple. Apple Podcasts is a trademark of Apple Inc.

**Is it legal?** The Actor reads public data that needs no login: names of shows, chart places, and feeds published to be read by machines. It does not read the owner contact in feeds. Audio, artwork and show notes belong to their publishers, and Apple's terms for its API limit how promotional content such as artwork may be used. Check both, and your local rules, before you republish them.

**Do I need a proxy?** No. All our test runs from Apify worked without one.

**How fast is it?** On Apify with 512 MB: a chart of 50 shows takes about 3 seconds. Reading episodes takes longer because every show has its own feed, on its own server; six feeds are read at a time. The US top 200 with 20 episodes each (4,096 rows) took 10 seconds.

**Is there a rate limit?** Apple documents about 20 search and lookup calls per minute. The Actor sends the first 15 at once and then one every 3 seconds. This matters only for long lists: one chart of 200 shows needs two calls, and one search term needs one. Shows without a feed need one call each when you ask for episodes, so a chart with many of them is slower.

**Why does the search return about 100 shows at most?** Apple's search returns no more than that per term and country, whatever limit is asked for. Use more specific terms or more countries.

**Are the results the same as in the Apple Podcasts app?** On 24 November 2026 the first 15 places of the US technology chart and the first 7 of the overall chart were the same as on podcasts.apple.com. Apple updates charts through the day, so a later look can differ.

**Why is `episodeCount` different from the number of episodes in the feed?** Apple counts every episode it has indexed. Some feeds list only the newest ones (The Daily's feed had 71 on that date while Apple counted 2,789). For episodes that left the feed there is no public source.

**How many shows publish transcripts?** A minority. In the 20 newest episodes of each show of the US top 200 (24 November 2026), 503 of 3,896 episodes had a transcript link. `transcripts` gives the links as published and does not create any.

**What about very large feeds?** The Actor reads the first 8 MB of a feed, which is the newest episodes. In a feed over that size the oldest ones are left out and `episodeCount` then comes from Apple.

**The same show is in several charts. Am I charged twice?** In the `podcasts` output each chart place is its own row, because the rank is different. When you ask for episodes, each show is read and charged once per run. In search, a show found by several terms is returned once.

**How does the memory of `trackChanges` and `onlyNew` work?** It is kept in a key-value store named `apple-podcasts-scraper-state` in your own account. Delete the store to start again, or use another `stateKey`.

**Which formats can I export?** JSON, CSV, Excel, XML, HTML and RSS, from the dataset page or through the API.

### Your feedback

Missing a field, a genre or a chart? Open an issue on the **Issues** tab and say what you need it for.

# Actor input Schema

## `mode` (type: `string`):

"charts": the Apple Podcasts top charts of the chosen countries and genres. "search": shows that match your search terms. "podcasts": specific shows by Apple id, Apple Podcasts URL or RSS feed URL. E.g. "charts".

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

Two-letter Apple store codes, e.g. \["us", "gb", "mx"]. Each country is a separate chart or search. Mode "podcasts" uses the first one only. Empty = us.

## `maxResults` (type: `integer`):

Rows per chart (country and genre) or per search term and country, e.g. 50. Show charts have up to 200 places, the episode chart up to 100, and a search returns up to about 100 shows.

## `chartType` (type: `string`):

For mode "charts". "shows": top shows, by genre if you like. "episodes": top trending episodes, published by Apple for all genres together. E.g. "shows".

## `genres` (type: `array`):

Genres of the top shows chart, e.g. \["technology", "true-crime"]. "all" is the overall chart. Each genre is a separate chart. Empty = all.

## `trackChanges` (type: `boolean`):

Compare each chart with the previous run that had this option on. Adds previousRank, rankChange (positive = moved up) and isNewEntry to each row. They are null on the first run. E.g. true with a daily schedule.

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

For mode "search": one term per line, e.g. "artificial intelligence", "startup" or "Lex Fridman". A show found by several terms is returned once.

## `podcasts` (type: `array`):

For mode "podcasts": one per line, as an Apple Podcasts URL (https://podcasts.apple.com/us/podcast/the-daily/id1200361736), an Apple id (1200361736) or the URL of an RSS feed (https://feeds.simplecast.com/Sl5CSM3S).

## `output` (type: `string`):

"podcasts": one row per show. "episodes": one row per episode of each show. "both": the show row followed by its episodes. Episodes come from each show's public RSS feed. Not used by the top episodes chart. E.g. "podcasts".

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

The newest episodes to return for each show, e.g. 10.

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

Keep only episodes published since this date: YYYY-MM-DD (e.g. 2026-11-01) or a relative value such as "24 hours" or "7 days". Empty = no limit.

## `onlyNew` (type: `boolean`):

Return (and charge) only episodes that earlier runs with this option did not return. Made for scheduled runs. E.g. true.

## `stateKey` (type: `string`):

Keeps the memory of "Track rank changes" and "Only new episodes" separate for each monitor, e.g. "client-a". Leave empty if you run a single monitor.

## Actor input object example

```json
{
  "mode": "charts",
  "countries": [
    "us"
  ],
  "maxResults": 50,
  "chartType": "shows",
  "genres": [
    "technology"
  ],
  "trackChanges": false,
  "output": "podcasts",
  "maxEpisodesPerPodcast": 10,
  "onlyNew": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "mode": "charts",
    "countries": [
        "us"
    ],
    "maxResults": 50,
    "genres": [
        "technology"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/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 = {
    "mode": "charts",
    "countries": ["us"],
    "maxResults": 50,
    "genres": ["technology"],
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/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 '{
  "mode": "charts",
  "countries": [
    "us"
  ],
  "maxResults": 50,
  "genres": [
    "technology"
  ]
}' |
apify call istmobot/apple-podcasts-scraper --silent --output-dataset

```

## MCP server setup

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