# YouTube Channel Live Streams: live now, upcoming and past (`steadydata/youtube-channel-live`) Actor

Every stream on a YouTube channel's Live tab, up to 100 channels per run: live now with viewers watching, scheduled with the start time, and past streams with views and duration. One row per stream, in YouTube's order. No viewer or chat data. Pay per delivered stream.

- **URL**: https://apify.com/steadydata/youtube-channel-live.md
- **Developed by:** [Steadydata Team](https://apify.com/steadydata) (community)
- **Categories:** Videos, Marketing, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.55 / 1,000 stream listeds

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

## YouTube Channel Live Streams: live now, upcoming and past

Every stream on a YouTube channel's Live tab, up to 100 channels per run: live now with viewers watching, scheduled with the start time, and past streams with views and duration. One row per stream, in YouTube's order. No viewer or chat data. Pay per delivered stream.

### Why this scraper

- **Only delivered results are charged.** Inputs that fail come back as clear error
  records at no cost.
- **Measured on a real channel** (@NASA, 15 September 2026): 20 streams in one run, one
  scheduled with its start time, two live with viewers watching, seventeen past with views
  and duration, for a platform cost of a twentieth of a cent.
- **The Live tab only.** The other YouTube actors in the Store return uploads or search
  results; this one reads the channel's Live tab, so you get streams and nothing else, with
  the state YouTube shows on the card.
- **Slim route, no browser.** The same lightweight endpoint as our Shorts actor: about 30
  streams per page, a few kilobytes each.

### Who this is for

Monitoring channels that stream: which broadcasts are live right now and how many are
watching, what is scheduled and when, and what past streams drew. Newsrooms, sports and
esports analysts, agencies tracking clients' channels, and anyone building a live-stream
calendar. Up to 100 channels per run, up to 500 streams each, filterable by state.

### Who this is not for

- **Chat messages or viewer identities.** Not delivered; only counts.
- **Channels without a Live tab.** They return a `NO_STREAMS` error record at no cost.
- **Exact concurrent-viewer history.** `viewerCount` is the number on the card at run time,
  not a time series.

### Input example

```json
{
    "channels": [
        "@NASA"
    ],
    "maxStreamsPerChannel": 30,
    "statuses": [],
    "language": "en",
    "country": "US"
}
```

### Output fields

- `channelId`
- `channelUrl`
- `channelName`
- `position`
- `videoId`
- `url`
- `title`
- `streamStatus`
- `viewerCount`
- `viewCount`
- `scheduledStartAt`
- `streamedText`
- `durationSeconds`
- `thumbnailUrl`

### Output example

```json
{
    "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "channelUrl": "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ",
    "channelName": "NASA",
    "position": 2,
    "videoId": "M3HKLzjvKPc",
    "url": "https://www.youtube.com/watch?v=M3HKLzjvKPc",
    "title": "Live Video from the International Space Station (Official NASA Stream)",
    "streamStatus": "live",
    "viewerCount": 173,
    "viewCount": null,
    "scheduledStartAt": null,
    "streamedText": null,
    "durationSeconds": null,
    "thumbnailUrl": "https://i.ytimg.com/vi/M3HKLzjvKPc/hqdefault.jpg",
    "status": "ok"
}
```

Error codes: `INVALID_CHANNEL`, `CHANNEL_NOT_FOUND`, `NO_STREAMS` (no Live tab, or nothing in
the states you asked for), `BLOCKED` (after retries on fresh exits). None is charged.

### Related actors from steadydata

- [youtube-channel-videos](https://apify.com/steadydata/youtube-channel-videos): the regular uploads of the same channel
- [youtube-video-details](https://apify.com/steadydata/youtube-video-details): full metadata for a stream you found
- [youtube-channel-details](https://apify.com/steadydata/youtube-channel-details): the channel profile: subscribers, total views, country

### Pricing

Pay per event: one `stream-listed` event per delivered result. No charge for inputs
that fail, no separate platform-usage surcharge.

**Free Apify plan:** this actor delivers up to 25 rows per run for accounts on the Apify free
plan, and then stops with a message. That limit is set by us, not by Apify. It exists so the
actor keeps paying for itself for the people who do pay. Any paid Apify plan runs it at full
size, billed per delivered row, with failed rows never charged.

**Reviews:** if this actor saves you time, a short review on this page is the one thing that
helps most. Ratings are what other buyers look at first, and we have no other way to ask.

### FAQ

**Which fields are filled for which state?** `viewerCount` is set for `live` (watching) and
`upcoming` (waiting); `scheduledStartAt` only for `upcoming` (ISO-8601, UTC); `viewCount`,
`durationSeconds` and `streamedText` only for `past`. The other fields are empty on purpose.

**Can I get only what is live now?** Set `statuses` to `live`; `upcoming` and `past` work the
same way, and any combination is allowed.

**In what order do streams come?** YouTube's own order on the Live tab, newest first;
`position` counts from 1 after the filter.

**What happens with a handle that does not exist?** A `CHANNEL_NOT_FOUND` error record and
no charge.

**Is personal data collected?** No. Stream titles, states, counts and times; no chat, no
viewers, no commenters.

**Is personal data collected?**
No. Stream titles, states, counts and times only; no chat, no viewers.

**What happens when the source changes?**
Sources change from time to time; that is the nature of this work. The actor is
monitored daily and fixed fast, and while it is broken you are not charged, because
only delivered results cost anything.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadydata/youtube-channel-live/changelog.md

# Actor input Schema

## `channels` (type: `array`):

One per row, up to 100: an @handle, a channel id (UC...) or a channel URL.

## `maxStreamsPerChannel` (type: `integer`):

Cost ceiling per channel; YouTube lists newest first.

## `statuses` (type: `array`):

Any of live, upcoming, past. Empty includes all three.

## `language` (type: `string`):

Two-letter code for labels.

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

Two-letter code.

## Actor input object example

```json
{
  "channels": [
    "@NASA"
  ],
  "maxStreamsPerChannel": 30,
  "statuses": [],
  "language": "en",
  "country": "US"
}
```

# 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 = {
    "channels": [
        "@NASA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadydata/youtube-channel-live").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 = { "channels": ["@NASA"] }

# Run the Actor and wait for it to finish
run = client.actor("steadydata/youtube-channel-live").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 '{
  "channels": [
    "@NASA"
  ]
}' |
apify call steadydata/youtube-channel-live --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadydata/youtube-channel-live"
        }
    }
}
```

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/t1LbxKzcgO8IBT3aK/builds/EiA52g7Q1O23mbIbr/openapi.json
