# Pocket FM Downloader - Full Series Audio & Video (`spider_studio/pocket-fm-media-download`) Actor

Download complete Pocket FM series as M4A audio or highest-quality MP4 video. Batch download multiple shows, select episode ranges, and get individual file links.

- **URL**: https://apify.com/spider_studio/pocket-fm-media-download.md
- **Developed by:** [Tarique](https://apify.com/spider_studio) (community)
- **Features:** Limited permissions
- **Stats:** 12 total users, 2 monthly users, 46.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 audio file downloadeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

### What does Pocket FM Downloader do?

**Pocket FM downloader** helps you work with [Pocket FM](https://www.pocketfm.com/) content. Download complete Pocket FM series in one run, with an individual audio or video download link for every successful file.

**Full-series downloads are the default.** Add one or more Pocket FM show IDs, leave episodes blank, and the Actor walks each show's complete episode catalog and downloads its available media. You do not need to supply individual story IDs.

Each object in shows pairs a show_id with its own optional episodes selection, so one show can download a range while another downloads its full catalog. Audio is saved as M4A. Video is saved as MP4 at the highest available quality. Choosing both saves two separate files per episode, each with its own download link and result record.

**Automatic decryption** prepares supported media as playable files, so you can download complete series without manually processing encrypted media.

### Explore more Pocket FM Actors 📚

| Actor | Use it for |
| --- | --- |
| [🔎 Search](https://apify.com/spider_studio/pocket-fm-show-search) | Find Pocket FM audio series by keyword and export matching titles with the IDs you need for further research. |
| [📚 Show Details](https://apify.com/spider_studio/pocket-fm-show-details) | Collect Pocket FM show metadata with one result per successfully fetched show ID. |
| [📋 Episodes](https://apify.com/spider_studio/pocket-fm-show-episodes) | Export complete available Pocket FM episode lists, with one record per episode for straightforward analysis and monitoring. |
| [💬 Comments](https://apify.com/spider_studio/pocket-fm-comments) | Collect Pocket FM comments and available replies for shows or episodes, ready for audience feedback analysis. |
| [🔗 Media Links](https://apify.com/spider_studio/pocket-fm-media-resolver) | Resolve available Pocket FM audio and video links for selected episode numbers, ranges, or an attempted full catalog. |
| [⬇️ Downloader](https://apify.com/spider_studio/pocket-fm-media-download) | Download complete Pocket FM series in one run, with an individual audio or video download link for every successful file. |
| [📝 Transcripts](https://apify.com/spider_studio/pocket-fm-transcript) | Turn episode audio into searchable text with speaker labels and timestamps. |

### ✨ Why use this Pocket FM Actor?

- Download full Pocket FM series by providing their show IDs; no need to enter episode IDs individually.
- Batch download several complete shows, or choose a different episode range for each show.
- Save M4A audio, highest-quality MP4 video, or both files for every episode.
- Pay the download fee only for successfully saved files, with audio and video counted separately.

Run a single request or build a recurring workflow with Apify scheduling and API access. Results stay attached to each run, making it easier to compare collections over time and connect them to reporting tools. You can also use the related Pocket FM Actors to continue from discovery to episode research.

### How to use Pocket FM Downloader

1. Open the Input tab. Add one object per show in shows. Set its show_id and optionally episodes for that show. Choose audio, video, or both for the run. See the per-show input guide below for examples.
2. Start the run and follow its progress in the run overview.
3. Open the Output tab to inspect results and any unsuccessful items.
4. Export your results or connect the Actor through the API tab.

The prefilled input below uses a real show ID. Replace it with your own IDs and set each show's episodes separately, or leave that field blank for its full available catalog.

The sample is Short, a one-episode show with episode number 1. Its complete audio has been verified. Leaving episodes blank downloads the full available catalog, which is one episode for this sample.

```json
{
  "shows": [
    {
      "show_id": "9caa9dca7c51a0f9cf072138346ce1e80d5a7420",
      "episodes": ""
    }
  ],
  "media_type": "audio"
}
```

### Configure each show independently

Put each show's ID and episode selection together in one object inside `shows`.
The `media_type` setting applies to every show in the run.

| Input | Required | Description |
| --- | --- | --- |
| `shows` | Yes | A nonempty array of show objects. |
| `shows[].show_id` | Yes | The Pocket FM show ID for this object. |
| `shows[].episodes` | No | Episode numbers or inclusive ranges for this show. Omit it or use `""` for the full available catalog. |
| `media_type` | No | `audio` (default), `video`, or `both`, shared by all listed shows. |

#### Episode selection syntax

| `episodes` value | Episodes downloaded from that show |
| --- | --- |
| Omitted or `""` | All available episodes. |
| `"3"` | Episode 3. |
| `"5-10"` | Episodes 5 through 10, including both endpoints. |
| `"2,5-10,20"` | Episode 2, episodes 5 through 10, and episode 20. |

Use positive episode numbers from the show's catalog. Numbers refer to the
source episode sequence, rather than a story ID or a position in the returned
list. Repeated numbers and overlapping ranges are downloaded once. List each
`show_id` once and combine its selections in the same `episodes` string.

#### Different ranges for multiple shows

Replace the placeholder IDs below with actual Pocket FM show IDs:

```json
{
  "shows": [
    {"show_id": "SHOW_ID_A", "episodes": "1-3"},
    {"show_id": "SHOW_ID_B", "episodes": "10,15-20"},
    {"show_id": "SHOW_ID_C"}
  ],
  "media_type": "both"
}
```

- Show A downloads episodes 1–3.
- Show B downloads episode 10 and episodes 15–20.
- Show C downloads its full available catalog because its object omits `episodes`.

Episode selections are independent: leaving Show C's selection empty does not
change the selections for A or B. Put `episodes` inside the corresponding show
object.

#### Output formats

| `media_type` | Files produced for each selected episode |
| --- | --- |
| `audio` | One M4A audio file. |
| `video` | One MP4 video file with available audio, at the highest available video quality. |
| `both` | Two separate files: an M4A audio file and an MP4 video file. |

Each file has its own download link and dataset record. With `both`, an episode
produces an audio record and a video record, connected by the same `show_id`
and `story_id`. Video quality is chosen automatically; there is no quality input.

Supported media is decrypted automatically and saved as playable files.
Leave a show's episodes blank to download its complete available series.

#### Missing episodes and result order

If a requested episode number is absent from the available catalog, the run
adds an unsuccessful record identifying the missing selection. Available
selected episodes and other shows continue, and completed files remain in the
output. Invalid selection syntax fails input validation before downloading.

When the upstream response provides no video source or video track, the video
record has `skipped: true`, `success: false`, an explanatory `skip_reason`, and
`error: null`. It is not retried, counted as a failure, or charged a download
event. `success` means a file was saved; skipped records do not represent saved
files. Filter failures with `success: false` and `skipped: false`.

The run summary counts these records separately in `skipped_count`; they do not
increase `failed_count` or cause `partial_success`. A video-only run with all
videos unavailable completes successfully with zero downloads and zero failures.

The run succeeds when at least one requested file downloads successfully, or
when there are no actual failures. Actual failures stay visible in the dataset
and run summary. If no file succeeds and any actual failure occurs, the run is
marked failed. With both formats selected, one successful audio or video file
is sufficient for the run to succeed.

Results appear as files finish. Use `show_id`, `story_id`, `seq_number`, and
`media_type` to group or sort them.

### What data does this Pocket FM Actor return?

| Field | What it contains |
| --- | --- |
| `show_id` | Pocket FM show identifier. |
| `story_id` | Pocket FM episode identifier. |
| `title` | Show or episode title. |
| `media_type` | Requested audio or video format. |
| `file_size` | Saved file size in bytes. |
| `download_url` | Address of the saved episode file. |
| `success` | Whether this result completed successfully. |
| `skipped` | Whether unavailable video was skipped without counting as a failed download. |
| `skip_reason` | Why this requested video was skipped; no download event is charged. |
| `error` | Explanation when this result is unsuccessful. |

Every record also includes a collection time and a success status. Missing source fields may be empty. The examples below illustrate the output format and are not claims about a particular show or listener.

```json
[
  {
    "success": true,
    "error": null,
    "fetched_at": "2026-01-15T12:00:00Z",
    "show_id": "example_show_id",
    "title": "Episode 1",
    "story_id": "example_episode_1",
    "seq_number": 1,
    "duration": 600,
    "media_type": "audio",
    "file_name": "episode-example_show_id-example_episode_1.m4a",
    "file_size": 12000000,
    "content_type": "audio/mp4",
    "download_url": "https://example.com/downloads/episode_1.m4a"
  },
  {
    "success": true,
    "error": null,
    "fetched_at": "2026-01-15T12:00:00Z",
    "show_id": "example_show_id",
    "title": "Episode 2",
    "story_id": "example_episode_2",
    "seq_number": 2,
    "duration": 600,
    "media_type": "audio",
    "file_name": "episode-example_show_id-example_episode_2.m4a",
    "file_size": 12000000,
    "content_type": "audio/mp4",
    "download_url": "https://example.com/downloads/episode_2.m4a"
  }
]
```

Export file metadata as JSON, CSV, Excel, or HTML. Use each row's download_url to retrieve its media file. The run summary shows how many records were saved and whether any items failed.

### How much does a Pocket FM collection run cost?

This Actor uses **pay per event + platform usage**. Audio and video have the same
per-file download price and are counted independently.

| Apify account | Successfully saved M4A audio | Successfully saved MP4 video |
| --- | --- | --- |
| Free plan | **$0.009 per file** ($9 per 1,000) | **$0.009 per file** ($9 per 1,000) |
| Any paid plan | **$0.004 per file** ($4 per 1,000) | **$0.004 per file** ($4 per 1,000) |

A download event is charged only after the file is successfully saved and its
download link is written to the output. Failed downloads and error records have
no download event fee. There is no Actor startup fee.

With `both`, each episode produces two independently counted files. If both
succeed, that episode costs **$0.018 on the Free plan** or **$0.008 on a paid
plan**, plus platform usage. If only one file succeeds, only that file incurs a
download fee. For example, 100 episodes with both formats successfully saved
produce 200 charged files: **$1.80 Free / $0.80 paid**, plus platform usage.

**Apify platform usage is charged separately to the user.** This includes compute,
data transfer, and storage operations. Platform usage can still
be incurred for failed attempts. Full-series video downloads can use substantially
more resources than audio. The download event budget does not include separately
billed platform usage. The run stops when its download event budget is exhausted.
See the Pricing tab for the effective prices and your Apify billing page for
platform usage.

### Frequently asked questions

#### Can each show use a different episode selection?

Yes. Set episodes inside each shows object. For example, one show can use 1-3, another can use 10,15-20, and a third can omit episodes to download its full available catalog.

#### Does both combine everything into one file?

Each selected episode produces two separate files: an M4A audio file and an MP4 video file with available audio. Each file has its own dataset record and download link. The same media_type applies to all shows in the run.

#### What happens if some content is unavailable?

Videos without an upstream source or video track are skipped and counted separately; they do not count as failures or incur download event fees. Available audio still downloads with both formats selected. Actual download errors remain visible in the output and run summary.

#### Where can I get help?

Use the Issues tab with a clear description of your request and the affected run. Use the API tab for integrations and scheduled workflows. Only collect or download content you are entitled to use, and handle any public comment data responsibly. This Actor is an independent tool and is not affiliated with Pocket FM.

# Actor input Schema

## `shows` (type: `array`):

One object per show, with show_id and an optional episodes string. Each show has its own selection. Omit episodes or leave it blank for that show's full catalog. The sample is Short, a one-episode show with episode number 1. Its complete audio has been verified. Leaving episodes blank downloads the full available catalog, which is one episode for this sample.

## `media_type` (type: `string`):

Save M4A audio, highest-quality MP4 video, or both as separate files for all listed shows.

## Actor input object example

```json
{
  "shows": [
    {
      "show_id": "9caa9dca7c51a0f9cf072138346ce1e80d5a7420",
      "episodes": ""
    }
  ],
  "media_type": "audio"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `files` (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 = {
    "shows": [
        {
            "show_id": "9caa9dca7c51a0f9cf072138346ce1e80d5a7420",
            "episodes": ""
        }
    ],
    "media_type": "audio"
};

// Run the Actor and wait for it to finish
const run = await client.actor("spider_studio/pocket-fm-media-download").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 = {
    "shows": [{
            "show_id": "9caa9dca7c51a0f9cf072138346ce1e80d5a7420",
            "episodes": "",
        }],
    "media_type": "audio",
}

# Run the Actor and wait for it to finish
run = client.actor("spider_studio/pocket-fm-media-download").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 '{
  "shows": [
    {
      "show_id": "9caa9dca7c51a0f9cf072138346ce1e80d5a7420",
      "episodes": ""
    }
  ],
  "media_type": "audio"
}' |
apify call spider_studio/pocket-fm-media-download --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,spider_studio/pocket-fm-media-download"
        }
    }
}
```

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/tdB8bcxrew32Qnq85/builds/LCI1cv2XfEj5M6oON/openapi.json
