# Pocket FM Media URL Scraper - Audio & Video Links (`spider_studio/pocket-fm-media-resolver`) Actor

Resolve available Pocket FM audio and video links for every episode in a show. Export episode IDs, titles, durations, and media URLs for your content workflow.

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

## Pricing

from $2.00 / 1,000 episode media resolveds

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 Media URL Scraper do?

**Pocket FM media URL scraper** helps you work with [Pocket FM](https://www.pocketfm.com/) content. Resolve available Pocket FM audio and video links for selected episode numbers, ranges, or an attempted full catalog.

**Only episodes with at least one playback link are returned. The entire run stops at the first episode without a playback link or a failed resolution request.** Later episodes and shows are not attempted, and no unsuccessful or empty-link rows are written. Previously saved results remain available. The run summary records the stop reason with complete=false.

**This Actor does not guarantee media links for every episode in a full series.** For full-series downloads, use [Pocket FM Downloader](https://apify.com/spider_studio/pocket-fm-media-download).

Choose episode numbers and inclusive ranges independently for each show, using the same shows and episodes format as the Downloader. Omit episodes or leave it blank to attempt the full catalog until the first unavailable episode. Audio and video links in the same episode count as one result. Links may expire or become unavailable.

### 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?

- Create an episode media inventory with consistent show and episode identifiers.
- Compare the audio and video options available for individual episodes.
- Refresh media links before using them in an authorized content workflow.

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 Media URL Scraper

1. Open the Input tab. Add one object per show in shows. Set show_id and optional episodes, such as 3, 5-10, or 2,5-10,20. Each show has its own selection.
2. Start the run and follow its progress in the run overview.
3. Open the Output tab to inspect successful results with playback links; check the run summary for any stop reason.
4. Export your results or connect the Actor through the API tab.

See the Input tab for the full configuration options. The prefilled input below uses real sample values and can be run as shown. You can replace them with your own keywords, IDs, or settings. Repeated identical entries in a single input list are processed once.

The example attempts episodes 1-3 of The Duke's Masked Bride. Full-series media links are not guaranteed. Use Pocket FM Downloader for full-series downloads.

```json
{
  "shows": [
    {
      "show_id": "cd532605283eb73524e7a93c4f887f670a980c19",
      "episodes": "1-3"
    }
  ]
}
```

### Choose episode numbers and ranges

Use `shows` with the same per-show selection syntax as Pocket FM Downloader:

```json
{
  "shows": [
    {"show_id": "SHOW_ID_A", "episodes": "3"},
    {"show_id": "SHOW_ID_B", "episodes": "2,5-10,20"},
    {"show_id": "SHOW_ID_C", "episodes": ""}
  ]
}
```

`3` selects episode 3; `5-10` includes both endpoints; commas combine numbers
and ranges. Omit `episodes` or use an empty string to attempt all available
episodes. Each show has its own selection. Repeated numbers and overlapping
ranges are processed once. List a show once and combine its ranges.
Only episodes with at least one playback link are returned. At the first episode
without a playback link or a failed resolution request, the entire run stops,
including any later episodes and shows. No unsuccessful or empty-link record is
written. Previously saved results remain available and are charged individually.
Missing requested episode numbers also stop the run without an error record.
The run summary records the stop reason with `complete=false`.

**Full-series media links are not guaranteed.** Use
[Pocket FM Downloader](https://apify.com/spider_studio/pocket-fm-media-download)
for full-series downloads. This Actor returns available links; it does not save
audio or video files.

### 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. |
| `seq_number` | Episode sequence number. |
| `duration` | Episode duration in seconds. |
| `audio` | Available audio links. |
| `video` | Available video links. |
| `success` | Whether this result completed successfully. |

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,
    "audio": {},
    "video": {}
  },
  {
    "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,
    "audio": {},
    "video": {}
  }
]
```

You can download the dataset in formats such as JSON, CSV, Excel, or HTML. Choose JSON to preserve media options. 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**.

| Apify account | Price per successful successfully resolved episode |
| --- | --- |
| Free plan | **$0.003** ($3 per 1,000) |
| Any paid plan | **$0.002** ($2 per 1,000) |

An episode with at least one available audio or video link is charged once, even when it includes both formats.

A result event is charged only after a successful result is written to the output.
Failed results, empty responses, and error records have no result event fee.
There is no Actor startup fee. Duplicate retries within the run are not charged
again for the same logical result.

**Apify platform usage is charged separately to the user**, including compute,
data transfer, and storage operations. Platform usage can still
be incurred when no results succeed. The event spending limit does not include
separately billed platform usage. The Actor stops when its result-event budget
is exhausted. See the Pricing tab for effective prices.

### Frequently asked questions

#### Does this save the audio or video files?

This Actor returns media links and episode information. Pocket FM Downloader saves available media files.

#### Will every episode have both audio and video?

No. Each returned episode has at least one available audio or video link. The entire run stops at the first episode with no playback link or a failed resolution request, preserving successful results without writing failed records.

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

Only episodes with playback links are saved. The entire run stops at the first unavailable episode or failed resolution request; later episodes and shows are not attempted. No failed or empty-link records are output or charged. Previously saved results remain available. The run summary records the reason with complete=false. Full-series media links are not guaranteed; use [Pocket FM Downloader](https://apify.com/spider_studio/pocket-fm-media-download) for full-series downloads.

#### 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 optional episodes. Only results with playback links are returned. The entire run stops at the first unavailable episode or resolution failure, including all later shows. Full-series media links are not guaranteed. The example attempts episodes 1-3 of The Duke's Masked Bride. Full-series media links are not guaranteed. Use Pocket FM Downloader for full-series downloads.

## Actor input object example

```json
{
  "shows": [
    {
      "show_id": "cd532605283eb73524e7a93c4f887f670a980c19",
      "episodes": "1-3"
    }
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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": "cd532605283eb73524e7a93c4f887f670a980c19",
            "episodes": "1-3"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("spider_studio/pocket-fm-media-resolver").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": "cd532605283eb73524e7a93c4f887f670a980c19",
            "episodes": "1-3",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("spider_studio/pocket-fm-media-resolver").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": "cd532605283eb73524e7a93c4f887f670a980c19",
      "episodes": "1-3"
    }
  ]
}' |
apify call spider_studio/pocket-fm-media-resolver --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-resolver"
        }
    }
}
```

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/icT0QS2egBantL3Nb/builds/rawybuKIYzu2npGlI/openapi.json
