# Cnbc Video Stream Scraper (`romy/cnbc-video-stream-scraper`) Actor

Get a direct playable HLS stream URL for CNBC video — no other actor returns this from Cnbc. Talks directly to CNBC's own mobile app API, no login needed. Split from the mature, published cnbc-all-in-one-api for a focused, single-purpose workflow.

- **URL**: https://apify.com/romy/cnbc-video-stream-scraper.md
- **Developed by:** [Romy](https://apify.com/romy) (community)
- **Categories:** News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.80 / 1,000 video chargeds

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

### What does CNBC Video Stream Scraper do?

**CNBC Video Stream Scraper** takes one or more CNBC video ids (`vcpID`) and pushes full video detail — headline, duration, section — for each, one dataset row per video.

It talks directly to the same internal API the official [CNBC](https://www.cnbc.com/) Android app uses (`webql.cnbcfm.com`), reverse-engineered by live MITM capture against a real device — a real Apollo-style GraphQL persisted query the app itself sends (exact query hash captured live, never guessed). No CNBC account, no API key, no scraping setup. This is the `/video` slice of [CNBC All-in-One API](https://apify.com/romy/cnbc-all-in-one-api), split out as its own focused Actor.

### Why use CNBC Video Stream Scraper?

**Its standout feature: every result includes a direct, unauthenticated Akamai HLS `playbackURL`** — a real `.m3u8` master playlist URL you can hand straight to any HLS player (hls.js, ffmpeg, VLC, a `<video>` element with an HLS-capable browser). No token, no signature, no expiry baked into the URL — confirmed playable as-is. No need to scrape or render CNBC's video player page to get a working stream link.

- **Real stream URLs, not just metadata** — most video-metadata scrapers stop at a thumbnail and a title; this one hands back the actual playable stream
- **No account needed** — the request works fully anonymously, confirmed by inspecting real captured request headers (no Authorization header, no cookie, no session token)
- **Batch-friendly** — pass any number of `vcpID`s in one run, get one dataset row per video
- **Use cases:** building a video player around CNBC content, archiving/monitoring specific segments, feeding a downstream HLS transcoder, media pipelines that need a real stream link rather than a webpage to scrape

### How it connects to the parent

This Actor is a narrow spin-off of [CNBC All-in-One API](https://apify.com/romy/cnbc-all-in-one-api), which exposes CNBC's full reverse-engineered API surface (news, quotes, articles, TV schedule, and more) as an always-on Standby REST API. `/video` was pulled out into its own Actor because it's the parent's standout endpoint — the only one that hands back a directly playable stream link instead of just metadata — for users who only need video, not the whole surface.

### Input

| Field    | Type      | Description                                                                                                         |
| -------- | --------- | ------------------------------------------------------------------------------------------------------------------- |
| `vcpIds` | integer\[] | **Required.** One or more CNBC video `vcpID` values (from a CNBC video page URL or the parent CNBC All-in-One API). |

Example:

```json
{
    "vcpIds": [7000422401]
}
```

### Output

One dataset row per `vcpId`:

```json
{
    "vcpId": 7000422401,
    "video": {
        "headline": "Watch CNBC's full interview with Treasury Secretary Scott Bessent",
        "duration": 1148,
        "playbackURL": "//cnbcawsmpvod.akamaized.net/out/v1/6629fb.../master.m3u8",
        "section": { "shortestHeadline": "Squawk on the Street" }
    }
}
```

### Known limitations

- Video-only. News, quotes, articles, and every other CNBC surface live in the parent [CNBC All-in-One API](https://apify.com/romy/cnbc-all-in-one-api) — use that Actor if you need more than video.
- This is an unofficial, reverse-engineered integration, not affiliated with or endorsed by CNBC or NBCUniversal. Behavior may change if CNBC changes its API.
- `playbackURL` is CNBC/Akamai's own link — its lifetime and availability are controlled entirely by CNBC, not by this Actor.

### Pricing

Pay per event. Charged `video` ($0.01 on the FREE plan) once per video id successfully fetched (includes the direct playable HLS `playbackURL`). See the Actor's Pricing tab for current rates.

Found a bug or have a feature request? Use the Issues tab on this Actor's page.

# Actor input Schema

## `vcpIds` (type: `array`):

CNBC numeric video vcpID values (from a CNBC video page URL or the parent CNBC All-in-One API).

## Actor input object example

```json
{
  "vcpIds": [
    7000422401
  ]
}
```

# Actor output Schema

## `dataset` (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 = {
    "vcpIds": [
        7000422401
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/cnbc-video-stream-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 = { "vcpIds": [7000422401] }

# Run the Actor and wait for it to finish
run = client.actor("romy/cnbc-video-stream-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 '{
  "vcpIds": [
    7000422401
  ]
}' |
apify call romy/cnbc-video-stream-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/cnbc-video-stream-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/5ntbNkVLcLFyK8go4/builds/WTu9xB1tYgm5Gf94k/openapi.json
