# Apple Podcasts Scraper - Search & RSS Metadata (`pellucid_bird/podcast-directory-lens`) Actor

Your podcast discovery toolkit for research and outreach planning. Search Apple Podcasts by keyword, show ID or country chart. Export show metadata, available public RSS owner emails and optional recent episode metadata. Direct RSS feeds supported.

- **URL**: https://apify.com/pellucid_bird/podcast-directory-lens.md
- **Developed by:** [O M](https://apify.com/pellucid_bird) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 podcast returneds

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 Directory Lens

Find shows for guest research, sponsorship planning and podcast market analysis. **Podcast Directory Lens returns one row per show**, combining Apple Podcasts discovery with metadata from the publisher's public RSS feed.

- **Discover relevant shows:** search topics, titles or publishers in selected Apple storefronts, look up known shows, or collect country and genre charts.
- **Assess recent activity:** inspect observed episode dates and publishing cadence, or filter for shows active within a chosen time window.
- **Prepare a research list:** include the owner contact published in RSS, when available, plus optional recent episode metadata. Email availability and deliverability are not guaranteed.

No Apple account or API key is required. You can also provide public RSS feeds directly. Episodes are nested inside their show; the Actor links media and transcripts without downloading their contents.

### Example result

Real example collected on November 10, 2026; current values and availability may differ.

```json
{
  "appleId": "1806632774",
  "title": "B2B Marketing Futures",
  "publisher": "Adzact",
  "feedUrl": "https://api.riverside.fm/hosting/lgb8Ohe4.rss",
  "rssEpisodeCount": 165,
  "latestEpisodeDate": "2026-10-14T09:55:34.000Z"
}
```

### Quick start

1. Paste the input below into Apify Console and select **Start**.
2. Open the dataset to preview and export the returned records.
3. Check the Run report when a source fails or the collection stops early.

```json
{
  "searchTerms": ["B2B marketing"],
  "maxItems": 5,
  "maxEstimatedCostUsd": 0.1
}
```

The default mode searches Apple Podcasts and enriches public RSS metadata. Export one row per show as JSON, CSV or Excel; optional episodes stay nested inside their show.

### Pricing

**$0.49 per 1,000 saved podcasts + $0.015 per run start. Apify resources used during the run are included.**

`total = $0.015 + ($0.00049 × saved podcasts)`

For 100 saved podcasts, the total is **$0.064**. A started run with no results costs the **$0.015 startup fee**. Check the active **Pricing** tab and set your run spending limit before starting.

Compute, transfer, storage operations and supported Apify proxy use during the run are included. Your Apify subscription, taxes and storage access after the run are outside this run price. [Billing details](#billing-details) follow below.

### Before you start

- Apple search returns a ranked subset, not every matching podcast. Country storefronts do not establish where a publisher lives.
- Contact details must be published in RSS. A saved Apple metadata record remains billable if its RSS enrichment is unavailable.
- This Actor returns metadata and media links; it does not download audio or transcript contents.

### Detailed reference

Field definitions, optional modes, source behavior, billing details and developer settings follow.

#### More input examples and setup

1. Enter a search term, Apple Podcasts show ID or URL, public RSS URL, or chart country.
2. Set the maximum number of shows and your estimated spending allowance.
3. Run the Actor. Open **Podcasts** for records and **Run report** for source errors and completeness.
4. Export the dataset as JSON, CSV or Excel, or retrieve it through the Apify API. JSON preserves nested episodes and chart positions.

The Console prefill collects up to five B2B marketing shows with up to three episodes each:

```json
{
  "searchTerms": ["B2B marketing"],
  "countries": ["us"],
  "maxResultsPerTerm": 5,
  "maxItems": 5,
  "enrichFromRss": true,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 3,
  "maxEstimatedCostUsd": 0.1,
  "maxRetries": 1
}
```

Apple search returns a ranked subset, without pagination. Five results are a limit, not a guarantee or a complete inventory of all matching podcasts. Rankings, feed availability and contact details can change.

#### Output

The source package includes a real output example in `examples/podcast.json` and its provenance in `examples/podcast-provenance.json`. The sample was checked against Apple and the publisher feed on November 10, 2026.

Excerpt from that dated result (other fields and two episodes omitted here):

```json
{
  "appleId": "1806632774",
  "title": "B2B Marketing Futures",
  "publisher": "Adzact",
  "rssStatus": "OK",
  "rssEpisodeCount": 165,
  "latestEpisodeDate": "2026-10-14T09:55:34.000Z",
  "episodesIncluded": 3,
  "episodes": [
    {
      "title": "E165: Sales and Marketing Alignment When AI Sits in Both Seats",
      "publishedAt": "2026-10-14T09:55:34.000Z",
      "durationSeconds": 1857
    }
  ]
}
```

Each dataset row is one podcast show. A repeated Apple ID or an observed shared feed URL is deduplicated within the run, including feed redirects. A fresh run creates a new snapshot and can create new charges. Independent feeds that cannot be linked by their identifiers may remain separate.

| Fields                                                     | Meaning                                                                                                                                                          |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `schemaVersion`, `source`, `podcastKey`                    | Record format and identity. `source` is `apple-podcasts-rss`; keys use an Apple ID or a hash of a direct feed URL.                                               |
| `appleId`, `appleUrl`                                      | Apple show identity and source link, when known.                                                                                                                 |
| `title`, `publisher`, `descriptionText`, `language`        | Published show metadata. Successful RSS enrichment prefers the feed's current title and publisher. Descriptions are plain text.                                  |
| `feedUrl`, `resolvedFeedUrl`, `websiteUrl`                 | Original feed, final feed after redirects and publisher website link.                                                                                            |
| `genres`, `genreIds`, `explicit`, `artworkUrl`             | Published categories, Apple category IDs, explicit-content flag and artwork link. RSS genre labels may differ from Apple IDs.                                    |
| `ownerName`, `ownerEmail`, `ownerEmailSource`              | Public iTunes owner contact from RSS. The source marker is `rss-itunes-owner` when an email is present.                                                          |
| `appleEpisodeCount`, `rssEpisodeCount`                     | Apple-reported count and number of entries observed in the fetched feed, respectively.                                                                           |
| `latestEpisodeDate`, `firstObservedEpisodeDate`            | Latest and oldest valid, non-future episode timestamps observed in the feed, in UTC.                                                                             |
| `daysSinceLatestEpisode`, `episodesLast90Days`, `isActive` | Whole elapsed days, recent episode count and whether the latest observed episode is within 90 days.                                                              |
| `medianDaysBetweenEpisodes`, `publishingFrequency`         | Cadence calculated from up to the ten latest gaps between distinct observed publication timestamps.                                                              |
| `countries`, `matchedSearchTerms`, `charts`                | Discovery provenance. Chart entries contain `country`, original `rank` and requested `genreId`. Countries indicate storefronts, not verified publisher location. |
| `episodes`, `episodesIncluded`                             | Optional nested episode sample and its actual size.                                                                                                              |
| `rssStatus`, `rssError`, `warnings`, `scrapedAt`           | Enrichment outcome, explanatory diagnostics and collection timestamp.                                                                                            |

Each episode contains `guid`, `title`, `publishedAt`, `durationSeconds`, `season`, `episode`, `episodeType`, `explicit`, `audioUrl`, `audioType`, `audioBytes`, `episodeUrl`, `descriptionText` and `transcriptUrls`. Audio length is bytes as declared by the feed; duration is normalized to seconds. Audio, artwork and transcripts are linked, never downloaded.

Episodes are ordered by parsed publication time, newest first, with unknown dates last. Duplicate episode identifiers are omitted from the sample. Future-dated entries can appear in the sample but are excluded from activity and cadence calculations. Missing values remain null or empty arrays.

`publishingFrequency` is a descriptive estimate: daily for a median gap up to 1.5 days, multiple-per-week up to 4, weekly up to 9, biweekly up to 18, monthly up to 45, otherwise infrequent. It is null without enough dated entries. `isActive` always uses 90 days even if a different activity filter was requested; the filter uses its own exact time window from the original run start.

**Feed history is not necessarily complete.** Publishers may retain only recent episodes, reuse identifiers, remove old entries or supply inaccurate dates. `firstObservedEpisodeDate` is not a verified launch date. `rssEpisodeCount` counts feed entries before duplicate removal, so it can exceed the unique episode sample and differ from Apple's count.

Owner email is copied only from the published RSS owner element. It is not guessed from a website, verified for deliverability or proof of the host's identity or consent to outreach. Missing owner contacts stay null.

#### FAQ

##### Which mode should I start with?

Use `searchTerms` for a topic, `podcastIds` for known Apple shows, `chartCountries` for current chart positions, or `feedUrls` when you already have publisher feeds. These modes can be combined within the run limits.

##### Does every result include a contact email?

No. `ownerEmail` comes only from a valid email in the feed's iTunes owner element. It is not guessed or checked for deliverability and does not establish permission to contact someone. Set `onlyWithOwnerEmail: true` to filter before paid output; feed fetching still uses resources.

##### Can I get every episode or download the audio?

You can attach up to 100 episodes per show, limited to what the current feed exposes. Publishers may omit older episodes. The Actor returns audio and transcript URLs, not the media files or transcript text. Nested episodes do not incur another result fee.

##### Does an Apple country code identify where the publisher lives?

No. It selects an Apple storefront. Returned `countries` and chart positions describe discovery, not verified publisher location.

##### Why is RSS enrichment missing on a billed result?

A show discovered through Apple can still be saved with useful directory metadata when its feed is broken or unavailable. That saved show is billable and its `rssStatus` explains the limitation. A failed direct RSS input produces no show row. RSS-dependent filters exclude records lacking the required data.

##### Will this find all podcasts matching my topic?

Apple returns a ranked subset without offset pagination, with a requested maximum of 200 per term and country. Narrower terms or additional storefronts can broaden your research, but do not establish complete coverage. The Actor also enforces a maximum of 500 saved shows and resource limits per run.

##### Can I track new shows or episodes each week?

Use an Apify Schedule for fresh snapshots, then compare show and episode identities in your workflow. Built-in cross-run change detection and automatic outreach are not included.

#### Input

Supply at least one of `searchTerms`, `podcastIds`, `feedUrls` or `chartCountries`. You may combine these modes in one run. Unknown fields and conflicting canonical names/aliases are rejected.

| Field                  | Default when omitted | Behavior                                                                                                                       |
| ---------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `searchTerms`          | `[]`                 | Up to 20 topic, title or publisher queries, each at most 200 characters.                                                       |
| `countries`            | `["us"]`             | Up to 10 two-letter Apple storefront codes. Search runs once per term and country. Explicit ID lookups use the first country.  |
| `searchAttribute`      | `"any"`              | `any`, `title` or `author`; passed to Apple search.                                                                            |
| `maxResultsPerTerm`    | `50`                 | Apple discovery limit per term/country, 1–200. Filtering may leave fewer saved shows.                                          |
| `podcastIds`           | `[]`                 | Up to 100 numeric IDs as strings or full HTTPS Apple Podcasts **show** URLs. Episode URLs containing `?i=` are rejected.       |
| `feedUrls`             | `[]`                 | Up to 100 public RSS or Atom URLs. Standard HTTP/HTTPS ports only; no credentials, fragments or private hosts.                 |
| `chartCountries`       | `[]`                 | Up to 10 two-letter storefront codes for current top-podcast charts.                                                           |
| `chartLimit`           | `50`                 | Up to 1–200 chart positions per country.                                                                                       |
| `genreId`              | Empty                | Integer Apple genre ID. Filters Apple search/lookup results and selects the genre chart. It does not filter direct RSS inputs. |
| `maxItems`             | `50`                 | Total saved-show limit, 1–500, including rows already saved before a supported resume.                                         |
| `enrichFromRss`        | `true`               | Fetch publisher RSS metadata. Required for direct feeds, episode output, activity filters and the owner-email filter.          |
| `includeEpisodes`      | `false`              | Attach an episode sample to each show.                                                                                         |
| `maxEpisodesPerShow`   | `10`                 | Maximum attached episodes, 0–100. **0 means no episode output**, not unlimited.                                                |
| `onlyActiveWithinDays` | `0`                  | Keep shows with an observed episode in the last 1–3,650 days. 0 disables this filter.                                          |
| `onlyWithOwnerEmail`   | `false`              | Keep only shows with a syntactically valid email published in the feed's iTunes owner element.                                 |
| `requestTimeoutSecs`   | `15`                 | Per-request timeout, 1–30 seconds.                                                                                             |
| `maxRetries`           | `1`                  | Additional attempts for transient network/server errors, 0–2.                                                                  |
| `maxEstimatedCostUsd`  | `1`                  | Estimated collection allowance, $0–$100. The platform maximum run charge also applies.                                         |

All active filters must match. RSS filters run after a feed has been downloaded, so excluded shows still consume resources. Setting `enrichFromRss: false` avoids RSS requests when Apple metadata is sufficient. Reducing the episode sample changes the output size; it does not avoid downloading the feed.

The combined discovery input is limited to 100 planned operations, counted as `searchTerms × countries + podcastIds + chartCountries`. Actual requests also include feed downloads, chart lookups, redirects and retries. Unsupported storefronts or unavailable charts are reported as source failures.

##### Specific show or RSS feed

Retrieve a show by its Apple ID:

```json
{
  "podcastIds": ["1806632774"],
  "countries": ["us"],
  "maxItems": 1,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 5,
  "maxEstimatedCostUsd": 0.1
}
```

Or retrieve the publisher's feed directly:

```json
{
  "feedUrls": ["https://api.riverside.fm/hosting/lgb8Ohe4.rss"],
  "maxItems": 1,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 5,
  "maxEstimatedCostUsd": 0.1
}
```

These inputs identified **B2B Marketing Futures** in a source check on November 10, 2026. Direct-feed mode does not reverse-search Apple: `appleId`, `appleUrl`, `appleEpisodeCount` and Apple genre IDs remain unavailable unless the same show was discovered through Apple in the run.

##### Charts and filters

```json
{
  "chartCountries": ["us"],
  "genreId": 1318,
  "chartLimit": 20,
  "maxItems": 20,
  "onlyActiveWithinDays": 90,
  "onlyWithOwnerEmail": true,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 3,
  "maxEstimatedCostUsd": 0.1
}
```

This selects the US Technology podcast chart and keeps shows with a recent observed episode and a published owner email. Chart ranks are the source positions before filtering. A rank of 12 does not mean the twelfth saved row.

##### Compatibility aliases

Use either the canonical name or its alias:

| Canonical field      | Alias                                        |
| -------------------- | -------------------------------------------- |
| `searchTerms`        | `searchQuery` — a single string is accepted. |
| `countries`          | `country` — a single string is accepted.     |
| `podcastIds`         | `podcasts`                                   |
| `maxItems`           | `maxPodcasts`                                |
| `maxEpisodesPerShow` | `maxEpisodesPerPodcast`                      |

`onlyActive: true` selects a 90-day activity filter when `onlyActiveWithinDays` is omitted. An explicit `onlyActiveWithinDays` takes precedence, including 0 to disable filtering.

#### Completeness and limits

Open **Run report** (`OUTPUT` in the key-value store) before treating a dataset as complete. It reports `podcasts`, `requests`, `discovered`, `filtered`, `duplicateInputs`, `feedFailures`, per-source outcomes, any stop reason and resource usage. Diagnostic records are outside the paid dataset.

| Status                                              | Meaning                                                                                                                                                   |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Run `SUCCEEDED`                                     | Requested work finished without a reported failure or limit. Search results still represent Apple's ranked subset.                                        |
| Run `PARTIAL`                                       | A result/resource limit, capped search, failed source or failed RSS enrichment prevented full completion. Valid saved rows remain available.              |
| Run `FAILED`                                        | Collection failed or a fatal processing/storage error occurred. Earlier saved rows may exist.                                                             |
| Run `INTERRUPTED`                                   | The run was stopped before normal completion.                                                                                                             |
| Source `OK`, `EMPTY`, `FAILED`, `CAPPED`, `SKIPPED` | Discovery succeeded, returned no eligible source records, failed, reached its discovery cap, or was prevented by a run limit. Inspect the source message. |
| RSS `OK`, `NOT_REQUESTED`, `MISSING`, `FAILED`      | Enrichment succeeded, was disabled, lacked a usable feed URL, or could not fetch/parse the feed.                                                          |

Apple metadata can still be saved when its RSS feed fails. A direct feed that does not yield a valid show is not saved. Activity and owner-email filters exclude records whose required data is unavailable. A successful platform run may therefore contain a `PARTIAL` report; use the report, not only the platform status.

Runs use 512 MB and are bounded to 300 seconds, 1,000 physical HTTP attempts, 256 MiB of accounted source transfer and 256 MiB of dataset output. Each encoded and decoded response is limited to 8 MiB, each saved show to 512 KiB, each feed to 10,000 episode entries and discovery to 5,000 unique candidate shows. Result and spending limits can stop work earlier.

Requests are sequential. Apple calls are paced, transient retries are bounded and server-requested delays must fit the remaining run time. Public DNS addresses are checked for every request and redirect; private hosts, custom ports, credentialed URLs, unsafe redirects and unsupported XML are rejected. Proxies and browser fallback are not supported. Large feeds or long episode descriptions can exceed bounds; reducing included episodes may reduce output size but cannot shrink the source feed.

If a dataset append has an uncertain outcome, the Actor stops rather than automatically repeating it. The `WRITE_UNCERTAIN` diagnostic blocks automatic resurrection pending reconciliation. `OUTPUT.fatalError.datasetMayContainAdditionalRows` marks uncertainty, not proof of an extra row. Inspect the dataset and diagnostics before resuming. Resource and result accounting remains cumulative for a supported resume; a new run is a new collection.

#### API, schedules and support

```bash
curl --fail-with-body --request POST \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header "Content-Type: application/json" \
  'https://api.apify.com/v2/acts/pellucid_bird~podcast-directory-lens/runs?memory=512&timeout=300&maxTotalChargeUsd=0.10' \
  --data '{"searchTerms":["B2B marketing"],"countries":["us"],"maxResultsPerTerm":5,"maxItems":5,"includeEpisodes":true,"maxEpisodesPerShow":3,"maxEstimatedCostUsd":0.1}'
```

Poll the returned run ID, then read its default dataset and `OUTPUT`. Reuse inputs through Apify Tasks, Schedules and integrations. Each run is a fresh snapshot; historical chart tracking, cross-run change detection and automatic outreach are outside this release.

This independent Actor accesses public Apple metadata and publisher feeds. It does not retrieve Spotify data, listener counts, private subscriber episodes, audio files or transcript text. Podcast descriptions, artwork and episodes belong to their publishers. Public access does not grant unrestricted rights to republish content; respect source terms and publisher rights when reusing results. Podcast Directory Lens is not affiliated with Apple or podcast publishers.

For support, open the Actor's **Issues** tab with a run ID, source URL and expected outcome. Never include credentials. Source references: [Apple Search API](https://performance-partners.apple.com/search-api), [Apple podcast feed requirements](https://podcasters.apple.com/support/823-podcast-requirements), and [RSS specification](https://www.rssboard.org/rss-specification).

#### Billing details

total = $0.015 + ($0.00049 × saved podcasts). The Actor runs at 512 MB, so one startup event applies. The minimum selectable spending ceiling is $0.02; this is a budget setting, not a minimum bill.

Only successfully saved podcasts create result charges. Unsaved duplicates, filtered-out items, failed sources, retries and diagnostic reports create no result event. The startup fee still applies to a started run that fails or returns no results. A fresh run has a new startup fee.

Each row is one podcast show; attached episode metadata has no separate event fee. An Apple metadata row saved with `rssStatus: FAILED` or `MISSING` is still a delivered show and is billable.

The input allowance and Apify run spending limit can stop collection early. A cap is an upper bound on requested output, not a promise of complete coverage. Source availability and operational limits can also stop work; inspect the Run report and saved dataset.

Apify resources used during execution are included in these event prices. Subsequent storage access, your subscription and taxes follow Apify’s applicable terms. The active Store Pricing tab determines the tariff for a new run.

# Actor input Schema

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

Keywords, show titles or publisher names. Up to 20 terms; each term is at most 200 characters. Apple returns a ranked subset, not an exhaustive search. Use searchTerms or searchQuery, not both.

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

Two-letter Apple storefront country codes. Default us; up to 10. Exact show lookups use the first country. Search term-country combinations, explicit IDs and chart countries together are limited to 100 discovery inputs.

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

Numeric Apple Podcasts IDs or HTTPS Apple show URLs. Episode links are rejected. Up to 100; lookup requests batch up to 50 IDs. Use podcastIds or podcasts, not both.

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

Direct public HTTP(S) podcast feeds on default ports. URLs with credentials, fragments, nonpublic addresses or unsafe redirects are rejected. RSS enrichment must be on.

## `chartCountries` (type: `array`):

Two-letter country codes for official Apple top-podcast charts. Genre selection is supported.

## `chartLimit` (type: `integer`):

Default 50, maximum 200. Actual availability may be lower; lookup enriches chart identities.

## `genreId` (type: `integer`):

Optional positive Apple genre identifier, for example 1318 Technology. Searches and exact lookups filter Apple genreIds; charts request the genre directly. Direct RSS inputs have no Apple genre IDs and are not filtered by this field.

## `searchAttribute` (type: `string`):

any searches Apple default fields; title and author use Apple titleTerm and authorTerm.

## `maxResultsPerTerm` (type: `integer`):

Default 50; requested maximum 200. Apple may return fewer results. There is no offset pagination. Genre filtering can further reduce the returned set.

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

Default 50; hard maximum 500 including saved rows on resume. Runtime, transfer, request, size and spending limits can stop a run earlier. Reaching a cap does not establish a complete directory export.

## `enrichFromRss` (type: `boolean`):

Default true. Adds owner contacts, language, site, activity, description and episodes. Broken Apple-associated feeds can produce a charged metadata-only show explicitly marked FAILED/MISSING; failed direct RSS inputs produce no row.

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

Default false in API input. Episodes are nested in each show record and included in its price. Only the current RSS feed is observed; feeds often omit older episodes. No audio is downloaded.

## `maxEpisodesPerShow` (type: `integer`):

Default 10, maximum 100. Zero attaches no episodes; it does not mean unlimited. Episodes sort newest first; invalid dates sort last. RSS is still read fully within the response limit.

## `onlyActiveWithinDays` (type: `integer`):

Zero disables this filter. Otherwise, return only shows with a valid nonfuture episode published within this exact number of 24-hour days at the original run start. Requires RSS enrichment.

## `onlyWithOwnerEmail` (type: `boolean`):

Requires RSS enrichment. Reads the owner email that the feed publisher declares; no guessed address or deliverability verification. Shows without an address are filtered before paid output.

## `requestTimeoutSecs` (type: `integer`):

Default 15 seconds; includes DNS and body transfer. Redirects are separate requests and all consume the cumulative run budget.

## `maxRetries` (type: `integer`):

Default 1. Retries selected network/HTTP failures; respects bounded Retry-After waits. Redirects and retries count toward the 1000-request and 300-second run limits.

## `maxEstimatedCostUsd` (type: `number`):

Planning allowance in USD. A smaller allowance can stop collection early; set the Apify run spending limit too. Zero prevents source requests. A started run can still incur its startup fee. Consult the active Pricing tab for charges; this is not a guaranteed final invoice cap.

## `searchQuery` (type: `string`):

API alias for searchTerms; supply one alias only.

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

API alias for countries; supply one alias only.

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

API alias for podcastIds; Apple show IDs or URLs, not direct RSS URLs. Use feedUrls for RSS.

## `maxPodcasts` (type: `integer`):

API alias for maxItems; supply one alias only.

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

API alias for maxEpisodesPerShow; supply one alias only.

## `onlyActive` (type: `boolean`):

When true, defaults onlyActiveWithinDays to 90. An explicit onlyActiveWithinDays value takes precedence.

## Actor input object example

```json
{
  "searchTerms": [
    "B2B marketing"
  ],
  "countries": [
    "us"
  ],
  "chartLimit": 50,
  "searchAttribute": "any",
  "maxResultsPerTerm": 5,
  "maxItems": 5,
  "enrichFromRss": true,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 3,
  "onlyActiveWithinDays": 0,
  "onlyWithOwnerEmail": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 0.1
}
```

# Actor output Schema

## `podcasts` (type: `string`):

One saved podcast show per default dataset row.

## `report` (type: `string`):

Discovery outcomes, RSS failures, limits and billing context.

# 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": [
        "B2B marketing"
    ],
    "countries": [
        "us"
    ],
    "chartLimit": 50,
    "searchAttribute": "any",
    "maxResultsPerTerm": 5,
    "maxItems": 5,
    "enrichFromRss": true,
    "includeEpisodes": true,
    "maxEpisodesPerShow": 3,
    "onlyActiveWithinDays": 0,
    "onlyWithOwnerEmail": false,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "maxEstimatedCostUsd": 0.1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pellucid_bird/podcast-directory-lens").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": ["B2B marketing"],
    "countries": ["us"],
    "chartLimit": 50,
    "searchAttribute": "any",
    "maxResultsPerTerm": 5,
    "maxItems": 5,
    "enrichFromRss": True,
    "includeEpisodes": True,
    "maxEpisodesPerShow": 3,
    "onlyActiveWithinDays": 0,
    "onlyWithOwnerEmail": False,
    "requestTimeoutSecs": 15,
    "maxRetries": 1,
    "maxEstimatedCostUsd": 0.1,
}

# Run the Actor and wait for it to finish
run = client.actor("pellucid_bird/podcast-directory-lens").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": [
    "B2B marketing"
  ],
  "countries": [
    "us"
  ],
  "chartLimit": 50,
  "searchAttribute": "any",
  "maxResultsPerTerm": 5,
  "maxItems": 5,
  "enrichFromRss": true,
  "includeEpisodes": true,
  "maxEpisodesPerShow": 3,
  "onlyActiveWithinDays": 0,
  "onlyWithOwnerEmail": false,
  "requestTimeoutSecs": 15,
  "maxRetries": 1,
  "maxEstimatedCostUsd": 0.1
}' |
apify call pellucid_bird/podcast-directory-lens --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pellucid_bird/podcast-directory-lens"
        }
    }
}
```

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/sFmZfdH3qwiGsHlQg/builds/LdDFWeOrXp3hmLOIr/openapi.json
