{
  "data": {
    "id": "kpIkd831Nm8wUUgb9",
    "actId": "FgEPpxp5gb6oXRIwM",
    "userId": "4BicJNfmk8uEe3GtT",
    "startedAt": "2026-11-27T14:12:04.001Z",
    "finishedAt": "2026-11-27T14:12:07.700Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "inputSchema": "{\n  \"title\": \"YouTube Live Stream Tracker Input\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to track: discover live streams, upcoming or recent streams from YouTube's Live destination, run a Live-filtered keyword search, read channel Live tabs, or monitor specific stream URLs.\",\n      \"editor\": \"select\",\n      \"default\": \"liveNow\",\n      \"enum\": [\n        \"liveNow\",\n        \"upcoming\",\n        \"recent\",\n        \"search\",\n        \"channels\",\n        \"streams\"\n      ],\n      \"enumTitles\": [\n        \"Live now - discover live streams\",\n        \"Upcoming - scheduled streams\",\n        \"Recent - recently ended streams\",\n        \"Search - live streams by keyword\",\n        \"Channels - live, upcoming and past per channel\",\n        \"Stream URLs - monitor specific streams\"\n      ],\n      \"sectionCaption\": \"Mode and targets\",\n      \"sectionDescription\": \"Pick a mode, then fill the matching target list: searchQueries for Search, channels for Channels, streamUrls for Stream URLs.\"\n    },\n    \"searchQueries\": {\n      \"title\": \"Search queries\",\n      \"type\": \"array\",\n      \"description\": \"Keywords for mode=search. Each query uses YouTube's Live filter. Example: breaking news live, esports tournament live.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"minItems\": 1\n    },\n    \"channels\": {\n      \"title\": \"Channel URLs, handles or IDs\",\n      \"type\": \"array\",\n      \"description\": \"Channels for mode=channels. Accepts https://www.youtube.com/@handle, /channel/UC..., /c/name or a bare @handle.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"minItems\": 1\n    },\n    \"streamUrls\": {\n      \"title\": \"Stream URLs or video IDs\",\n      \"type\": \"array\",\n      \"description\": \"Streams for mode=streams. Accepts watch, youtu.be, /live/, /embed/ or /shorts/ URLs and bare 11-character video IDs.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"minItems\": 1\n    },\n    \"maxItems\": {\n      \"title\": \"Maximum stream rows\",\n      \"type\": \"integer\",\n      \"description\": \"Upper bound on stream rows in the dataset. Status rows explain empty or failed sources separately.\",\n      \"editor\": \"number\",\n      \"default\": 30,\n      \"prefill\": 2,\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"sectionCaption\": \"Limits and market\",\n      \"sectionDescription\": \"Every row is one stream. Country and language drive YouTube's market and UI language; category and minimum viewers filter the result.\"\n    },\n    \"maxPerChannel\": {\n      \"title\": \"Maximum rows per channel\",\n      \"type\": \"integer\",\n      \"description\": \"For mode=channels, how many streams to keep per channel after the live/upcoming/past filter.\",\n      \"editor\": \"number\",\n      \"default\": 20,\n      \"prefill\": 5,\n      \"minimum\": 1,\n      \"maximum\": 200\n    },\n    \"country\": {\n      \"title\": \"Country (market)\",\n      \"type\": \"string\",\n      \"description\": \"YouTube market code used for results, localisation and region availability. Default US.\",\n      \"editor\": \"select\",\n      \"default\": \"US\",\n      \"enum\": [\n        \"US\",\n        \"GB\",\n        \"CA\",\n        \"AU\",\n        \"NZ\",\n        \"IE\",\n        \"DE\",\n        \"FR\",\n        \"IT\",\n        \"ES\",\n        \"PT\",\n        \"NL\",\n        \"BE\",\n        \"CH\",\n        \"AT\",\n        \"SE\",\n        \"NO\",\n        \"DK\",\n        \"FI\",\n        \"PL\",\n        \"CZ\",\n        \"SK\",\n        \"HU\",\n        \"RO\",\n        \"BG\",\n        \"GR\",\n        \"UA\",\n        \"RU\",\n        \"TR\",\n        \"IL\",\n        \"SA\",\n        \"AE\",\n        \"QA\",\n        \"KW\",\n        \"BH\",\n        \"OM\",\n        \"JO\",\n        \"LB\",\n        \"EG\",\n        \"MA\",\n        \"DZ\",\n        \"TN\",\n        \"NG\",\n        \"KE\",\n        \"GH\",\n        \"ET\",\n        \"ZA\",\n        \"PK\",\n        \"BD\",\n        \"LK\",\n        \"NP\",\n        \"IN\",\n        \"SG\",\n        \"MY\",\n        \"TH\",\n        \"PH\",\n        \"ID\",\n        \"VN\",\n        \"HK\",\n        \"TW\",\n        \"JP\",\n        \"KR\",\n        \"CN\",\n        \"BR\",\n        \"MX\",\n        \"AR\",\n        \"CO\",\n        \"CL\",\n        \"PE\",\n        \"VE\",\n        \"EC\",\n        \"GT\",\n        \"CR\",\n        \"PA\",\n        \"DO\",\n        \"PR\"\n      ],\n      \"enumTitles\": [\n        \"United States\",\n        \"United Kingdom\",\n        \"Canada\",\n        \"Australia\",\n        \"New Zealand\",\n        \"Ireland\",\n        \"Germany\",\n        \"France\",\n        \"Italy\",\n        \"Spain\",\n        \"Portugal\",\n        \"Netherlands\",\n        \"Belgium\",\n        \"Switzerland\",\n        \"Austria\",\n        \"Sweden\",\n        \"Norway\",\n        \"Denmark\",\n        \"Finland\",\n        \"Poland\",\n        \"Czechia\",\n        \"Slovakia\",\n        \"Hungary\",\n        \"Romania\",\n        \"Bulgaria\",\n        \"Greece\",\n        \"Ukraine\",\n        \"Russia\",\n        \"Türkiye\",\n        \"Israel\",\n        \"Saudi Arabia\",\n        \"United Arab Emirates\",\n        \"Qatar\",\n        \"Kuwait\",\n        \"Bahrain\",\n        \"Oman\",\n        \"Jordan\",\n        \"Lebanon\",\n        \"Egypt\",\n        \"Morocco\",\n        \"Algeria\",\n        \"Tunisia\",\n        \"Nigeria\",\n        \"Kenya\",\n        \"Ghana\",\n        \"Ethiopia\",\n        \"South Africa\",\n        \"Pakistan\",\n        \"Bangladesh\",\n        \"Sri Lanka\",\n        \"Nepal\",\n        \"India\",\n        \"Singapore\",\n        \"Malaysia\",\n        \"Thailand\",\n        \"Philippines\",\n        \"Indonesia\",\n        \"Vietnam\",\n        \"Hong Kong\",\n        \"Taiwan\",\n        \"Japan\",\n        \"South Korea\",\n        \"China\",\n        \"Brazil\",\n        \"Mexico\",\n        \"Argentina\",\n        \"Colombia\",\n        \"Chile\",\n        \"Peru\",\n        \"Venezuela\",\n        \"Ecuador\",\n        \"Guatemala\",\n        \"Costa Rica\",\n        \"Panama\",\n        \"Dominican Republic\",\n        \"Puerto Rico\"\n      ]\n    },\n    \"language\": {\n      \"title\": \"Interface language\",\n      \"type\": \"string\",\n      \"description\": \"YouTube UI language. It localises labels and date text; it is not a stream-language filter.\",\n      \"editor\": \"select\",\n      \"default\": \"en\",\n      \"enum\": [\n        \"en\",\n        \"es\",\n        \"fr\",\n        \"de\",\n        \"pt\",\n        \"it\",\n        \"nl\",\n        \"pl\",\n        \"ru\",\n        \"ja\",\n        \"ko\",\n        \"zh\",\n        \"hi\",\n        \"ar\",\n        \"tr\",\n        \"id\",\n        \"th\",\n        \"vi\",\n        \"sv\",\n        \"no\",\n        \"da\",\n        \"fi\",\n        \"cs\",\n        \"el\",\n        \"he\",\n        \"uk\",\n        \"ro\",\n        \"hu\",\n        \"ms\",\n        \"bn\",\n        \"ur\",\n        \"fa\",\n        \"sw\",\n        \"ta\",\n        \"te\"\n      ],\n      \"enumTitles\": [\n        \"English\",\n        \"Spanish\",\n        \"French\",\n        \"German\",\n        \"Portuguese\",\n        \"Italian\",\n        \"Dutch\",\n        \"Polish\",\n        \"Russian\",\n        \"Japanese\",\n        \"Korean\",\n        \"Chinese\",\n        \"Hindi\",\n        \"Arabic\",\n        \"Turkish\",\n        \"Indonesian\",\n        \"Thai\",\n        \"Vietnamese\",\n        \"Swedish\",\n        \"Norwegian\",\n        \"Danish\",\n        \"Finnish\",\n        \"Czech\",\n        \"Greek\",\n        \"Hebrew\",\n        \"Ukrainian\",\n        \"Romanian\",\n        \"Hungarian\",\n        \"Malay\",\n        \"Bengali\",\n        \"Urdu\",\n        \"Persian\",\n        \"Swahili\",\n        \"Tamil\",\n        \"Telugu\"\n      ]\n    },\n    \"category\": {\n      \"title\": \"Category\",\n      \"type\": \"string\",\n      \"description\": \"Keep streams in one YouTube category. Categories are known from YouTube's Live shelves and hubs; streams whose category YouTube does not expose on your egress are excluded when a category is selected.\",\n      \"editor\": \"select\",\n      \"default\": \"all\",\n      \"enum\": [\n        \"all\",\n        \"news\",\n        \"gaming\",\n        \"sports\",\n        \"music\",\n        \"entertainment\",\n        \"education\",\n        \"film\",\n        \"autos\",\n        \"travel\",\n        \"science\",\n        \"howto\",\n        \"people\",\n        \"comedy\",\n        \"pets\",\n        \"nonprofit\",\n        \"other\"\n      ],\n      \"enumTitles\": [\n        \"All categories\",\n        \"News & Politics\",\n        \"Gaming\",\n        \"Sports\",\n        \"Music\",\n        \"Entertainment\",\n        \"Education\",\n        \"Film & Animation\",\n        \"Autos & Vehicles\",\n        \"Travel & Events\",\n        \"Science & Technology\",\n        \"Howto & Style\",\n        \"People & Blogs\",\n        \"Comedy\",\n        \"Pets & Animals\",\n        \"Nonprofits & Activism\",\n        \"Other\"\n      ]\n    },\n    \"minViewers\": {\n      \"title\": \"Minimum concurrent viewers\",\n      \"type\": \"integer\",\n      \"description\": \"Drop live streams below this concurrent-viewer count. Upcoming streams have no viewers yet, so a non-zero value removes them.\",\n      \"editor\": \"number\",\n      \"default\": 0,\n      \"minimum\": 0,\n      \"maximum\": 2000000000\n    },\n    \"channelStreams\": {\n      \"title\": \"Channel stream status\",\n      \"type\": \"string\",\n      \"description\": \"For mode=channels, keep all streams or only live, upcoming or past ones.\",\n      \"editor\": \"select\",\n      \"default\": \"all\",\n      \"enum\": [\n        \"all\",\n        \"live\",\n        \"upcoming\",\n        \"past\"\n      ],\n      \"enumTitles\": [\n        \"All streams\",\n        \"Live now\",\n        \"Upcoming\",\n        \"Past\"\n      ]\n    },\n    \"includeDetails\": {\n      \"title\": \"Include per-stream details\",\n      \"type\": \"boolean\",\n      \"description\": \"Read each stream's player and watch-next data for exact concurrent viewers, tags, likes, chat availability, subscriber count and broadcast dates. Turn off for a cheaper list-only run.\",\n      \"editor\": \"checkbox\",\n      \"default\": true,\n      \"prefill\": false\n    },\n    \"pollIntervalMinutes\": {\n      \"title\": \"Polling interval (minutes)\",\n      \"type\": \"integer\",\n      \"description\": \"For mode=streams, re-read live streams every N minutes and record a viewer sample each time. 0 reads each stream once.\",\n      \"editor\": \"number\",\n      \"default\": 0,\n      \"minimum\": 0,\n      \"maximum\": 60\n    },\n    \"pollDurationMinutes\": {\n      \"title\": \"Polling duration (minutes)\",\n      \"type\": \"integer\",\n      \"description\": \"For mode=streams, how long to keep polling. 0 uses 10 minutes when polling is enabled. Polling stops early when a stream ends.\",\n      \"editor\": \"number\",\n      \"default\": 0,\n      \"minimum\": 0,\n      \"maximum\": 60\n    }\n  }\n}",
    "readme": "# YouTube Live Stream Tracker: Live, Upcoming & Viewer History\n\nTrack YouTube live streams from six angles: what is live right now across YouTube's Live\ndestination and its News, Gaming and Sports hubs; what is scheduled next; what recently ended;\nwhat matches a keyword with YouTube's Live filter; every live, upcoming and past stream of the\nchannels you follow; and a minute-by-minute viewer history for specific stream URLs.\n\nEvery run returns one row per stream with the exact concurrent-viewer count, a viewer peak and\naverage when polling is on, scheduled and actual start times, duration, tags, likes, chat\navailability, channel identity, verification and subscriber count. No YouTube account, cookie,\nAPI key or proxy setup is required.\n\n## Modes\n\n| `mode` | What it reads | Best for |\n|---|---|---|\n| `liveNow` | YouTube's Live destination, News/Gaming/Sports live hubs and the paginated Live-filtered search index | \"Who is live now\", live dashboards, go-live monitoring |\n| `upcoming` | The Live destination's Upcoming shelf | Scheduled-stream calendars and reminders |\n| `recent` | The Live destination's Recent Live Streams shelf | What just ended, with duration and audience |\n| `search` | Each query through YouTube's Live filter, with continuation | Niche live monitoring by keyword |\n| `channels` | Each channel's Live tab, with continuation | Creator and brand rosters, past-stream archives |\n| `streams` | Specific watch URLs or video IDs, optionally polled | Viewer-count time series, sponsor and event verification |\n\n## Input\n\n| Field | Type | Default | What it does |\n|---|---|---|---|\n| `mode` | select | `liveNow` | One of `liveNow`, `upcoming`, `recent`, `search`, `channels`, `streams` |\n| `searchQueries` | string list | - | Keywords for `mode=search`; each uses the Live filter |\n| `channels` | string list | - | Channel URLs, `@handles`, `/channel/UC...`, `/c/name` or IDs for `mode=channels` |\n| `streamUrls` | string list | - | Watch/live/embed/shorts URLs or 11-character IDs for `mode=streams` |\n| `maxItems` | integer | 30 | Maximum stream rows (1-1000) |\n| `maxPerChannel` | integer | 20 | Maximum rows kept per channel in `mode=channels` (1-200) |\n| `country` | select | `US` | YouTube market code used for results and localisation |\n| `language` | select | `en` | YouTube interface language; localises labels and date text |\n| `category` | select | `all` | Keep one YouTube category when the source exposes it |\n| `minViewers` | integer | 0 | Drop live streams below this concurrent-viewer count |\n| `channelStreams` | select | `all` | For `mode=channels`: `all`, `live`, `upcoming` or `past` |\n| `includeDetails` | boolean | true | Read the per-stream player and watch-next data for viewers, tags, likes and chat |\n| `pollIntervalMinutes` | integer | 0 | For `mode=streams`: sample viewers every N minutes (0 = one snapshot) |\n| `pollDurationMinutes` | integer | 0 | For `mode=streams`: polling window; 0 uses 10 minutes when polling is on |\n\nThe prefilled form (`liveNow`, two rows, details off) is the smallest run with output. Turn on `includeDetails` when you need per-stream viewers, tags, likes and chat.\n\n## Output\n\nOne row per stream (`recordType: \"stream\"`) plus status rows (`recordType: \"status\"`) that\nexplain an empty source, invalid target or failed request.\n\nStream identity and timing:\n\n- `position` - order in the dataset\n- `videoId`, `url` - stable YouTube identity and watch URL\n- `title`, `description` - stream title and description (description capped at 2,000 characters)\n- `status` - `live`, `upcoming` or `ended`\n- `isLive`, `isUpcoming`, `isEnded`, `isPremiere` - normalised flags where the source makes them clear\n- `scheduledStartTime`, `scheduledStartPrecision`, `scheduledStartText` - scheduled start and its precision\n- `actualStartTime`, `actualStartPrecision`, `actualStartText` - broadcast start and its precision\n- `durationSeconds`, `durationText` - duration for ended streams\n- `elapsedSeconds` - how long a live stream has been running\n- `publishedTimeText`, `relativeDateText`, `dateText` - the site's own timing text\n\nAudience:\n\n- `concurrentViewers`, `concurrentViewersText`, `concurrentViewersIsRounded` - live audience\n- `viewerPeak`, `viewerAverage`, `viewerSampleCount`, `viewerSamples` - polling history\n- `viewCount`, `viewCountText`, `viewCountIsRounded` - lifetime views where published\n- `likeCount`, `likeCountText`, `likeCountIsRounded` - likes; rounded values are marked\n- `waitingCount` - people waiting on an upcoming stream\n- `isLiveChatEnabled` - whether live chat is enabled on a live stream\n\nChannel and classification:\n\n- `channelId`, `channelName`, `channelHandle`, `channelUrl`, `channelAvatarUrl`\n- `isVerified`, `subscriberCount`, `subscriberCountText`, `subscriberCountIsRounded`\n- `category`, `categorySlug`, `categorySource` - category when YouTube exposes it\n- `tags` - keywords published by the player\n- `language` - audio language when the player publishes one\n- `region`, `availableInRegion`, `isFamilySafe` - requested market and region flags when exposed\n- `thumbnailUrl`, `thumbnails`, `badges`\n\nProvenance:\n\n- `source`, `sources`, `sourceUrl` - where the row came from\n- `searchQuery`, `inputChannel`, `inputUrl` - the target that produced it\n- `scrapedAt`, `fetchedAt`, `pollStartedAt`, `pollEndedAt`\n\nEvery field is omitted when the source does not publish it. No `null`, blank string or empty\narray is written to the dataset.\n\n## Examples\n\nDiscover live streams in the United States:\n\n```json\n{\n  \"mode\": \"liveNow\",\n  \"maxItems\": 50,\n  \"includeDetails\": true,\n  \"country\": \"US\",\n  \"language\": \"en\"\n}\n```\n\nLive streams in the News category with at least 1,000 viewers:\n\n```json\n{\n  \"mode\": \"liveNow\",\n  \"category\": \"news\",\n  \"minViewers\": 1000,\n  \"maxItems\": 100\n}\n```\n\nSearch with the Live filter:\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQueries\": [\"breaking news live\", \"esports tournament live\"],\n  \"maxItems\": 40\n}\n```\n\nEvery live, upcoming and past stream of two channels:\n\n```json\n{\n  \"mode\": \"channels\",\n  \"channels\": [\"@LofiGirl\", \"https://www.youtube.com/@NASA\"],\n  \"maxPerChannel\": 20,\n  \"channelStreams\": \"all\"\n}\n```\n\nTrack one stream's viewers every two minutes for ten minutes:\n\n```json\n{\n  \"mode\": \"streams\",\n  \"streamUrls\": [\"https://www.youtube.com/watch?v=t3fvgmDDmdc\"],\n  \"pollIntervalMinutes\": 2,\n  \"pollDurationMinutes\": 10\n}\n```\n\n## How it works\n\nThe actor reads YouTube's public web data through its public InnerTube endpoints. It never logs\nin and never uses a user cookie.\nRequests go direct first; if YouTube answers with a block or rate limit, the actor uses Apify's\nincluded datacenter proxy as a bounded fallback. You do not configure a proxy.\n\nExact concurrent viewers come from YouTube's watch-next data. When the list view only shows a\nshortened count such as `7.7K watching`, the rounded flag is set and the next request replaces it\nwith the exact number unless details are turned off.\n\n## Limits and FAQ\n\n**Why is `category` sometimes missing?** YouTube's player publishes a video's category,\nexact likes, exact start/end timestamps and region availability only to some clients. From\nApify's datacenter network the web player answers a login gate for live and ended streams. The\nactor keeps the fields it can prove: category from YouTube's Live shelves and hubs, tags and\nduration from the public player, exact viewers and chat from watch-next, and rounded likes and\nday- or hour-level broadcast dates when the exact values are gated. It does not guess. When an\nexact player value is available, the rounded fallback is never used.\n\n**Why does `upcoming` return fewer rows than my `maxItems`?** YouTube's Live destination shows a\nfixed number of upcoming streams. For a complete schedule, use `mode=channels` with the channels\nyou follow.\n\n**Why is there no language filter?** YouTube does not publish a stream's spoken language in any\ncookieless endpoint. `language` in this actor selects the interface language (which changes\nlocalised labels and date text), not the stream language. A `language` output field appears only\nwhen the player publishes an audio language.\n\n**Why are some viewer counts marked rounded?** Channel Live tabs sometimes show a shortened label\nlike `7.7K watching`. The actor flags it; with `includeDetails` on, the exact number replaces it.\nViewer peaks are the highest sampled value, not a value YouTube publishes. Likes use the same\nflag: `likeCountIsRounded` is true when YouTube only showed a shortened label.\n\n**Where does channel metadata come from?** From the channel's Live-tab response, so a channel\nrun does not fetch its multi-megabyte home page. A channel with a public Live tab is enough.\n\n**Why is `actualStartTime` day- or hour-level sometimes?** Without the gated player metadata,\nYouTube shows a broadcast date or relative age such as \"Started streaming on Jun 23, 2026\" or\n\"Started streaming 11 hours ago\" rather than a timestamp. The actor records the best available\nvalue, prefers the absolute date for ended streams, and sets `actualStartPrecision` so downstream\njobs know how exact it is.\n\n**Do I need a proxy or API key?** No. The actor works without either. A proxy is only used\ninternally as a fallback if YouTube blocks a request.\n\n**Does this download video or audio?** No. It tracks public stream metadata and audience counts.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "youtube-live-streams-tracker",
      "title": "YouTube Live Stream Tracker: Live, Upcoming & Viewer History",
      "description": "Track YouTube live streams across the Live destination, News, Gaming and Sports hubs, keyword searches and channel Live tabs. Get live, upcoming and past streams with exact concurrent viewers, viewer peaks and samples from polling, tags, likes, chat availability, channel verification and broadcast dates.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# YouTube Live Stream Tracker: Live, Upcoming & Viewer History\n\nTrack YouTube live streams from six angles: what is live right now across YouTube's Live\ndestination and its News, Gaming and Sports hubs; what is scheduled next; what recently ended;\nwhat matches a keyword with YouTube's Live filter; every live, upcoming and past stream of the\nchannels you follow; and a minute-by-minute viewer history for specific stream URLs.\n\nEvery run returns one row per stream with the exact concurrent-viewer count, a viewer peak and\naverage when polling is on, scheduled and actual start times, duration, tags, likes, chat\navailability, channel identity, verification and subscriber count. No YouTube account, cookie,\nAPI key or proxy setup is required.\n\n## Modes\n\n| `mode` | What it reads | Best for |\n|---|---|---|\n| `liveNow` | YouTube's Live destination, News/Gaming/Sports live hubs and the paginated Live-filtered search index | \"Who is live now\", live dashboards, go-live monitoring |\n| `upcoming` | The Live destination's Upcoming shelf | Scheduled-stream calendars and reminders |\n| `recent` | The Live destination's Recent Live Streams shelf | What just ended, with duration and audience |\n| `search` | Each query through YouTube's Live filter, with continuation | Niche live monitoring by keyword |\n| `channels` | Each channel's Live tab, with continuation | Creator and brand rosters, past-stream archives |\n| `streams` | Specific watch URLs or video IDs, optionally polled | Viewer-count time series, sponsor and event verification |\n\n## Input\n\n| Field | Type | Default | What it does |\n|---|---|---|---|\n| `mode` | select | `liveNow` | One of `liveNow`, `upcoming`, `recent`, `search`, `channels`, `streams` |\n| `searchQueries` | string list | - | Keywords for `mode=search`; each uses the Live filter |\n| `channels` | string list | - | Channel URLs, `@handles`, `/channel/UC...`, `/c/name` or IDs for `mode=channels` |\n| `streamUrls` | string list | - | Watch/live/embed/shorts URLs or 11-character IDs for `mode=streams` |\n| `maxItems` | integer | 30 | Maximum stream rows (1-1000) |\n| `maxPerChannel` | integer | 20 | Maximum rows kept per channel in `mode=channels` (1-200) |\n| `country` | select | `US` | YouTube market code used for results and localisation |\n| `language` | select | `en` | YouTube interface language; localises labels and date text |\n| `category` | select | `all` | Keep one YouTube category when the source exposes it |\n| `minViewers` | integer | 0 | Drop live streams below this concurrent-viewer count |\n| `channelStreams` | select | `all` | For `mode=channels`: `all`, `live`, `upcoming` or `past` |\n| `includeDetails` | boolean | true | Read the per-stream player and watch-next data for viewers, tags, likes and chat |\n| `pollIntervalMinutes` | integer | 0 | For `mode=streams`: sample viewers every N minutes (0 = one snapshot) |\n| `pollDurationMinutes` | integer | 0 | For `mode=streams`: polling window; 0 uses 10 minutes when polling is on |\n\nThe prefilled form (`liveNow`, two rows, details off) is the smallest run with output. Turn on `includeDetails` when you need per-stream viewers, tags, likes and chat.\n\n## Output\n\nOne row per stream (`recordType: \"stream\"`) plus status rows (`recordType: \"status\"`) that\nexplain an empty source, invalid target or failed request.\n\nStream identity and timing:\n\n- `position` - order in the dataset\n- `videoId`, `url` - stable YouTube identity and watch URL\n- `title`, `description` - stream title and description (description capped at 2,000 characters)\n- `status` - `live`, `upcoming` or `ended`\n- `isLive`, `isUpcoming`, `isEnded`, `isPremiere` - normalised flags where the source makes them clear\n- `scheduledStartTime`, `scheduledStartPrecision`, `scheduledStartText` - scheduled start and its precision\n- `actualStartTime`, `actualStartPrecision`, `actualStartText` - broadcast start and its precision\n- `durationSeconds`, `durationText` - duration for ended streams\n- `elapsedSeconds` - how long a live stream has been running\n- `publishedTimeText`, `relativeDateText`, `dateText` - the site's own timing text\n\nAudience:\n\n- `concurrentViewers`, `concurrentViewersText`, `concurrentViewersIsRounded` - live audience\n- `viewerPeak`, `viewerAverage`, `viewerSampleCount`, `viewerSamples` - polling history\n- `viewCount`, `viewCountText`, `viewCountIsRounded` - lifetime views where published\n- `likeCount`, `likeCountText`, `likeCountIsRounded` - likes; rounded values are marked\n- `waitingCount` - people waiting on an upcoming stream\n- `isLiveChatEnabled` - whether live chat is enabled on a live stream\n\nChannel and classification:\n\n- `channelId`, `channelName`, `channelHandle`, `channelUrl`, `channelAvatarUrl`\n- `isVerified`, `subscriberCount`, `subscriberCountText`, `subscriberCountIsRounded`\n- `category`, `categorySlug`, `categorySource` - category when YouTube exposes it\n- `tags` - keywords published by the player\n- `language` - audio language when the player publishes one\n- `region`, `availableInRegion`, `isFamilySafe` - requested market and region flags when exposed\n- `thumbnailUrl`, `thumbnails`, `badges`\n\nProvenance:\n\n- `source`, `sources`, `sourceUrl` - where the row came from\n- `searchQuery`, `inputChannel`, `inputUrl` - the target that produced it\n- `scrapedAt`, `fetchedAt`, `pollStartedAt`, `pollEndedAt`\n\nEvery field is omitted when the source does not publish it. No `null`, blank string or empty\narray is written to the dataset.\n\n## Examples\n\nDiscover live streams in the United States:\n\n```json\n{\n  \"mode\": \"liveNow\",\n  \"maxItems\": 50,\n  \"includeDetails\": true,\n  \"country\": \"US\",\n  \"language\": \"en\"\n}\n```\n\nLive streams in the News category with at least 1,000 viewers:\n\n```json\n{\n  \"mode\": \"liveNow\",\n  \"category\": \"news\",\n  \"minViewers\": 1000,\n  \"maxItems\": 100\n}\n```\n\nSearch with the Live filter:\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQueries\": [\"breaking news live\", \"esports tournament live\"],\n  \"maxItems\": 40\n}\n```\n\nEvery live, upcoming and past stream of two channels:\n\n```json\n{\n  \"mode\": \"channels\",\n  \"channels\": [\"@LofiGirl\", \"https://www.youtube.com/@NASA\"],\n  \"maxPerChannel\": 20,\n  \"channelStreams\": \"all\"\n}\n```\n\nTrack one stream's viewers every two minutes for ten minutes:\n\n```json\n{\n  \"mode\": \"streams\",\n  \"streamUrls\": [\"https://www.youtube.com/watch?v=t3fvgmDDmdc\"],\n  \"pollIntervalMinutes\": 2,\n  \"pollDurationMinutes\": 10\n}\n```\n\n## How it works\n\nThe actor reads YouTube's public web data through its public InnerTube endpoints. It never logs\nin and never uses a user cookie.\nRequests go direct first; if YouTube answers with a block or rate limit, the actor uses Apify's\nincluded datacenter proxy as a bounded fallback. You do not configure a proxy.\n\nExact concurrent viewers come from YouTube's watch-next data. When the list view only shows a\nshortened count such as `7.7K watching`, the rounded flag is set and the next request replaces it\nwith the exact number unless details are turned off.\n\n## Limits and FAQ\n\n**Why is `category` sometimes missing?** YouTube's player publishes a video's category,\nexact likes, exact start/end timestamps and region availability only to some clients. From\nApify's datacenter network the web player answers a login gate for live and ended streams. The\nactor keeps the fields it can prove: category from YouTube's Live shelves and hubs, tags and\nduration from the public player, exact viewers and chat from watch-next, and rounded likes and\nday- or hour-level broadcast dates when the exact values are gated. It does not guess. When an\nexact player value is available, the rounded fallback is never used.\n\n**Why does `upcoming` return fewer rows than my `maxItems`?** YouTube's Live destination shows a\nfixed number of upcoming streams. For a complete schedule, use `mode=channels` with the channels\nyou follow.\n\n**Why is there no language filter?** YouTube does not publish a stream's spoken language in any\ncookieless endpoint. `language` in this actor selects the interface language (which changes\nlocalised labels and date text), not the stream language. A `language` output field appears only\nwhen the player publishes an audio language.\n\n**Why are some viewer counts marked rounded?** Channel Live tabs sometimes show a shortened label\nlike `7.7K watching`. The actor flags it; with `includeDetails` on, the exact number replaces it.\nViewer peaks are the highest sampled value, not a value YouTube publishes. Likes use the same\nflag: `likeCountIsRounded` is true when YouTube only showed a shortened label.\n\n**Where does channel metadata come from?** From the channel's Live-tab response, so a channel\nrun does not fetch its multi-megabyte home page. A channel with a public Live tab is enough.\n\n**Why is `actualStartTime` day- or hour-level sometimes?** Without the gated player metadata,\nYouTube shows a broadcast date or relative age such as \"Started streaming on Jun 23, 2026\" or\n\"Started streaming 11 hours ago\" rather than a timestamp. The actor records the best available\nvalue, prefers the absolute date for ended streams, and sets `actualStartPrecision` so downstream\njobs know how exact it is.\n\n**Do I need a proxy or API key?** No. The actor works without either. A proxy is only used\ninternally as a fallback if YouTube blocks a request.\n\n**Does this download video or audio?** No. It tracks public stream metadata and audience counts.\n",
      "input": {
        "title": "YouTube Live Stream Tracker Input",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to track: discover live streams, upcoming or recent streams from YouTube's Live destination, run a Live-filtered keyword search, read channel Live tabs, or monitor specific stream URLs.",
            "editor": "select",
            "default": "liveNow",
            "enum": [
              "liveNow",
              "upcoming",
              "recent",
              "search",
              "channels",
              "streams"
            ],
            "enumTitles": [
              "Live now - discover live streams",
              "Upcoming - scheduled streams",
              "Recent - recently ended streams",
              "Search - live streams by keyword",
              "Channels - live, upcoming and past per channel",
              "Stream URLs - monitor specific streams"
            ],
            "sectionCaption": "Mode and targets",
            "sectionDescription": "Pick a mode, then fill the matching target list: searchQueries for Search, channels for Channels, streamUrls for Stream URLs."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords for mode=search. Each query uses YouTube's Live filter. Example: breaking news live, esports tournament live.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "channels": {
            "title": "Channel URLs, handles or IDs",
            "type": "array",
            "description": "Channels for mode=channels. Accepts https://www.youtube.com/@handle, /channel/UC..., /c/name or a bare @handle.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "streamUrls": {
            "title": "Stream URLs or video IDs",
            "type": "array",
            "description": "Streams for mode=streams. Accepts watch, youtu.be, /live/, /embed/ or /shorts/ URLs and bare 11-character video IDs.",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "maxItems": {
            "title": "Maximum stream rows",
            "type": "integer",
            "description": "Upper bound on stream rows in the dataset. Status rows explain empty or failed sources separately.",
            "editor": "number",
            "default": 30,
            "prefill": 2,
            "minimum": 1,
            "maximum": 1000,
            "sectionCaption": "Limits and market",
            "sectionDescription": "Every row is one stream. Country and language drive YouTube's market and UI language; category and minimum viewers filter the result."
          },
          "maxPerChannel": {
            "title": "Maximum rows per channel",
            "type": "integer",
            "description": "For mode=channels, how many streams to keep per channel after the live/upcoming/past filter.",
            "editor": "number",
            "default": 20,
            "prefill": 5,
            "minimum": 1,
            "maximum": 200
          },
          "country": {
            "title": "Country (market)",
            "type": "string",
            "description": "YouTube market code used for results, localisation and region availability. Default US.",
            "editor": "select",
            "default": "US",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "NZ",
              "IE",
              "DE",
              "FR",
              "IT",
              "ES",
              "PT",
              "NL",
              "BE",
              "CH",
              "AT",
              "SE",
              "NO",
              "DK",
              "FI",
              "PL",
              "CZ",
              "SK",
              "HU",
              "RO",
              "BG",
              "GR",
              "UA",
              "RU",
              "TR",
              "IL",
              "SA",
              "AE",
              "QA",
              "KW",
              "BH",
              "OM",
              "JO",
              "LB",
              "EG",
              "MA",
              "DZ",
              "TN",
              "NG",
              "KE",
              "GH",
              "ET",
              "ZA",
              "PK",
              "BD",
              "LK",
              "NP",
              "IN",
              "SG",
              "MY",
              "TH",
              "PH",
              "ID",
              "VN",
              "HK",
              "TW",
              "JP",
              "KR",
              "CN",
              "BR",
              "MX",
              "AR",
              "CO",
              "CL",
              "PE",
              "VE",
              "EC",
              "GT",
              "CR",
              "PA",
              "DO",
              "PR"
            ],
            "enumTitles": [
              "United States",
              "United Kingdom",
              "Canada",
              "Australia",
              "New Zealand",
              "Ireland",
              "Germany",
              "France",
              "Italy",
              "Spain",
              "Portugal",
              "Netherlands",
              "Belgium",
              "Switzerland",
              "Austria",
              "Sweden",
              "Norway",
              "Denmark",
              "Finland",
              "Poland",
              "Czechia",
              "Slovakia",
              "Hungary",
              "Romania",
              "Bulgaria",
              "Greece",
              "Ukraine",
              "Russia",
              "Türkiye",
              "Israel",
              "Saudi Arabia",
              "United Arab Emirates",
              "Qatar",
              "Kuwait",
              "Bahrain",
              "Oman",
              "Jordan",
              "Lebanon",
              "Egypt",
              "Morocco",
              "Algeria",
              "Tunisia",
              "Nigeria",
              "Kenya",
              "Ghana",
              "Ethiopia",
              "South Africa",
              "Pakistan",
              "Bangladesh",
              "Sri Lanka",
              "Nepal",
              "India",
              "Singapore",
              "Malaysia",
              "Thailand",
              "Philippines",
              "Indonesia",
              "Vietnam",
              "Hong Kong",
              "Taiwan",
              "Japan",
              "South Korea",
              "China",
              "Brazil",
              "Mexico",
              "Argentina",
              "Colombia",
              "Chile",
              "Peru",
              "Venezuela",
              "Ecuador",
              "Guatemala",
              "Costa Rica",
              "Panama",
              "Dominican Republic",
              "Puerto Rico"
            ]
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "YouTube UI language. It localises labels and date text; it is not a stream-language filter.",
            "editor": "select",
            "default": "en",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "pt",
              "it",
              "nl",
              "pl",
              "ru",
              "ja",
              "ko",
              "zh",
              "hi",
              "ar",
              "tr",
              "id",
              "th",
              "vi",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "el",
              "he",
              "uk",
              "ro",
              "hu",
              "ms",
              "bn",
              "ur",
              "fa",
              "sw",
              "ta",
              "te"
            ],
            "enumTitles": [
              "English",
              "Spanish",
              "French",
              "German",
              "Portuguese",
              "Italian",
              "Dutch",
              "Polish",
              "Russian",
              "Japanese",
              "Korean",
              "Chinese",
              "Hindi",
              "Arabic",
              "Turkish",
              "Indonesian",
              "Thai",
              "Vietnamese",
              "Swedish",
              "Norwegian",
              "Danish",
              "Finnish",
              "Czech",
              "Greek",
              "Hebrew",
              "Ukrainian",
              "Romanian",
              "Hungarian",
              "Malay",
              "Bengali",
              "Urdu",
              "Persian",
              "Swahili",
              "Tamil",
              "Telugu"
            ]
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Keep streams in one YouTube category. Categories are known from YouTube's Live shelves and hubs; streams whose category YouTube does not expose on your egress are excluded when a category is selected.",
            "editor": "select",
            "default": "all",
            "enum": [
              "all",
              "news",
              "gaming",
              "sports",
              "music",
              "entertainment",
              "education",
              "film",
              "autos",
              "travel",
              "science",
              "howto",
              "people",
              "comedy",
              "pets",
              "nonprofit",
              "other"
            ],
            "enumTitles": [
              "All categories",
              "News & Politics",
              "Gaming",
              "Sports",
              "Music",
              "Entertainment",
              "Education",
              "Film & Animation",
              "Autos & Vehicles",
              "Travel & Events",
              "Science & Technology",
              "Howto & Style",
              "People & Blogs",
              "Comedy",
              "Pets & Animals",
              "Nonprofits & Activism",
              "Other"
            ]
          },
          "minViewers": {
            "title": "Minimum concurrent viewers",
            "type": "integer",
            "description": "Drop live streams below this concurrent-viewer count. Upcoming streams have no viewers yet, so a non-zero value removes them.",
            "editor": "number",
            "default": 0,
            "minimum": 0,
            "maximum": 2000000000
          },
          "channelStreams": {
            "title": "Channel stream status",
            "type": "string",
            "description": "For mode=channels, keep all streams or only live, upcoming or past ones.",
            "editor": "select",
            "default": "all",
            "enum": [
              "all",
              "live",
              "upcoming",
              "past"
            ],
            "enumTitles": [
              "All streams",
              "Live now",
              "Upcoming",
              "Past"
            ]
          },
          "includeDetails": {
            "title": "Include per-stream details",
            "type": "boolean",
            "description": "Read each stream's player and watch-next data for exact concurrent viewers, tags, likes, chat availability, subscriber count and broadcast dates. Turn off for a cheaper list-only run.",
            "editor": "checkbox",
            "default": true,
            "prefill": false
          },
          "pollIntervalMinutes": {
            "title": "Polling interval (minutes)",
            "type": "integer",
            "description": "For mode=streams, re-read live streams every N minutes and record a viewer sample each time. 0 reads each stream once.",
            "editor": "number",
            "default": 0,
            "minimum": 0,
            "maximum": 60
          },
          "pollDurationMinutes": {
            "title": "Polling duration (minutes)",
            "type": "integer",
            "description": "For mode=streams, how long to keep polling. 0 uses 10 minutes when polling is enabled. Polling stops early when a stream ends.",
            "editor": "number",
            "default": 0,
            "minimum": 0,
            "maximum": 60
          }
        }
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "YouTube Live Stream Tracker Output",
        "description": "Live, upcoming and past YouTube streams with exact concurrent viewers, viewer samples and peaks, schedule and broadcast dates, tags, likes, chat availability, channel identity and status rows.",
        "properties": {
          "streams": {
            "type": "string",
            "title": "YouTube live streams",
            "description": "Dataset with one row per stream and status rows for empty or failed sources.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "defaultMemoryMbytes": 512,
      "minMemoryMbytes": 256,
      "maxMemoryMbytes": 1024,
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Live Streams",
              "transformation": {
                "fields": [
                  "position",
                  "status",
                  "title",
                  "channelName",
                  "concurrentViewers",
                  "viewerPeak",
                  "scheduledStartTime",
                  "category",
                  "source",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "position": {
                    "label": "#",
                    "format": "number"
                  },
                  "status": {
                    "label": "Status",
                    "format": "text"
                  },
                  "title": {
                    "label": "Title",
                    "format": "text"
                  },
                  "channelName": {
                    "label": "Channel",
                    "format": "text"
                  },
                  "concurrentViewers": {
                    "label": "Watching",
                    "format": "number"
                  },
                  "viewerPeak": {
                    "label": "Peak",
                    "format": "number"
                  },
                  "scheduledStartTime": {
                    "label": "Scheduled",
                    "format": "text"
                  },
                  "category": {
                    "label": "Category",
                    "format": "text"
                  },
                  "source": {
                    "label": "Source",
                    "format": "text"
                  },
                  "url": {
                    "label": "URL",
                    "format": "link"
                  }
                }
              }
            },
            "full": {
              "title": "Full Details",
              "transformation": {
                "fields": [
                  "position",
                  "recordType",
                  "videoId",
                  "url",
                  "title",
                  "status",
                  "isLive",
                  "isUpcoming",
                  "isEnded",
                  "isPremiere",
                  "channelId",
                  "channelName",
                  "channelHandle",
                  "channelUrl",
                  "channelAvatarUrl",
                  "isVerified",
                  "subscriberCount",
                  "subscriberCountText",
                  "subscriberCountIsRounded",
                  "concurrentViewers",
                  "concurrentViewersText",
                  "concurrentViewersIsRounded",
                  "viewerPeak",
                  "viewerAverage",
                  "viewerSampleCount",
                  "viewerSamples",
                  "viewCount",
                  "viewCountText",
                  "viewCountIsRounded",
                  "likeCount",
                  "likeCountText",
                  "likeCountIsRounded",
                  "waitingCount",
                  "scheduledStartTime",
                  "scheduledStartPrecision",
                  "scheduledStartText",
                  "actualStartTime",
                  "actualStartPrecision",
                  "actualStartText",
                  "durationSeconds",
                  "durationText",
                  "elapsedSeconds",
                  "category",
                  "categorySlug",
                  "categorySource",
                  "tags",
                  "language",
                  "isLiveChatEnabled",
                  "region",
                  "availableInRegion",
                  "isFamilySafe",
                  "thumbnailUrl",
                  "thumbnails",
                  "badges",
                  "source",
                  "sources",
                  "sourceUrl",
                  "searchQuery",
                  "inputChannel",
                  "inputUrl",
                  "publishedTimeText",
                  "relativeDateText",
                  "dateText",
                  "description",
                  "pollStartedAt",
                  "pollEndedAt",
                  "scrapedAt",
                  "fetchedAt",
                  "message"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "position": {
                    "label": "#",
                    "format": "number"
                  },
                  "videoId": {
                    "label": "Video ID",
                    "format": "text"
                  },
                  "title": {
                    "label": "Title",
                    "format": "text"
                  },
                  "status": {
                    "label": "Status",
                    "format": "text"
                  },
                  "channelName": {
                    "label": "Channel",
                    "format": "text"
                  },
                  "concurrentViewers": {
                    "label": "Watching",
                    "format": "number"
                  },
                  "viewerPeak": {
                    "label": "Peak",
                    "format": "number"
                  },
                  "viewerAverage": {
                    "label": "Average",
                    "format": "number"
                  },
                  "scheduledStartTime": {
                    "label": "Scheduled Start",
                    "format": "text"
                  },
                  "actualStartTime": {
                    "label": "Actual Start",
                    "format": "text"
                  },
                  "durationSeconds": {
                    "label": "Duration (s)",
                    "format": "number"
                  },
                  "category": {
                    "label": "Category",
                    "format": "text"
                  },
                  "likeCount": {
                    "label": "Likes",
                    "format": "number"
                  },
                  "isLiveChatEnabled": {
                    "label": "Chat",
                    "format": "boolean"
                  },
                  "source": {
                    "label": "Source",
                    "format": "text"
                  },
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "scrapedAt": {
                    "label": "Scraped At",
                    "format": "text"
                  }
                }
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.11",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}