YouTube data

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.

$1.00per 1,000 · Stream listed

One stream delivered. Channels that fail or have no Live tab are never charged.

Call it from your code

curl
ACTOR=steadydata~youtube-channel-live
URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items"

curl -X POST "$URL?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"channels": ["@NASA"], "maxStreamsPerChannel": 30, "language": "en"}'
python
import os, requests

ACTOR = "steadydata~youtube-channel-live"
URL = f"https://api.apify.com/v2/acts/{ACTOR}/run-sync-get-dataset-items"

rows = requests.post(
    URL,
    params={"token": os.environ["APIFY_TOKEN"]},
    json={'channels': ['@NASA'], 'maxStreamsPerChannel': 30, 'language': 'en'},
    timeout=900,
).json()

# every row carries a status; failures are records, not exceptions
ok = [r for r in rows if r.get("status") == "ok"]
print(len(ok), "rows delivered")
javascript
const ACTOR = "steadydata~youtube-channel-live";
const url =
  `https://api.apify.com/v2/acts/${ACTOR}/run-sync-get-dataset-items` +
  `?token=${process.env.APIFY_TOKEN}`;

const rows = await fetch(url, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"channels": ["@NASA"], "maxStreamsPerChannel": 30, "language": "en"}),
}).then((r) => r.json());

// one object per delivered row, same shape every time
console.log(rows.filter((r) => r.status === "ok").length, "rows");

Use it in an agent

Point an MCP client at Apify's hosted server with this dataset in the tools list, or run our own server locally. The field explanations in the table below travel with the schema, so your agent reads them straight from the platform instead of from this page.

mcp url
https://mcp.apify.com?tools=steadydata/youtube-channel-live

# the tool arrives in your agent as steadydata--youtube-channel-live

Input

FieldTypeNameWhat it does
channels
required
array of stringChannelsOne per row, up to 100: an @handle, a channel id (UC...) or a channel URL.
maxStreamsPerChannelintegerMax streams per channelCost ceiling per channel; YouTube lists newest first.
statusesarray of stringStatuses to includeAny of live, upcoming, past. Empty includes all three.
languagestringLanguageTwo-letter code for labels.
countrystringCountryTwo-letter code.

What you get back

output schema, one object per delivered row
{
  "channelId": string | null,
  "channelUrl": string | null,
  "channelName": string | null,
  "position": integer | null,
  "videoId": string | null,
  "url": string | null,
  "title": string | null,
  "status": string | null,
  "viewerCount": integer | null,
  "viewCount": integer | null,
  "scheduledStartAt": string | null,
  "streamedText": string | null,
  "durationSeconds": integer | null,
  "thumbnailUrl": string | null,
  "input": string | null,
  "errorCode": string | null,
  "error": string | null,
  "streamStatus": string | null
}
FieldTypeWhen it is filled
channelIdstring, null
channelUrlstring, null
channelNamestring, null
positioninteger, null
videoIdstring, null
urlstring, null
titlestring, null
statusstring, nullEither 'ok' or 'error'. An error row carries errorCode and error, and leaves the data fields empty; it is never charged.
viewerCountinteger, null
viewCountinteger, null
scheduledStartAtstring, null
streamedTextstring, null
durationSecondsinteger, null
thumbnailUrlstring, null
inputstring, nullThe input this row was built from, so a row can always be traced back.
errorCodestring, nullFilled on an error row only; a delivered row leaves it empty.
errorstring, nullFilled on an error row only; a delivered row leaves it empty.
streamStatusstring, null

Related datasets

Already using this one? Ratings are the first thing other buyers look at, and this dataset has none yet. If it does a job for you, a rating on its Apify page is the one thing that helps. It takes a minute and it is the only thing we ask for.

Open the Apify page