How to get stream name/key of YouTube Live "Stream Now" service
<p>YouTube added "Stream now (beta)" service last July which makes live streaming much easier.</p>

<p>Using Youtube verified programs like "XSplit Broadcaster" you can stream to "Stream now" after authorization.</p>

<p>I'm also doing a streaming application and what I'm looking for is the API to get the stream name of the default "Stream now" stream. With the stream name I can stream content to YouTube.</p>

<p>YouTube documentation <a href="https://developers.google.com/youtube/v3/live/docs/" rel="nofollow">https://developers.google.com/youtube/v3/live/docs/</a> doesn't mention anything about it, and the default broadcast is not included in the result of youtube.liveBroadcasts.list.</p>

<p>If XSplit Broadcaster can do it, I think there must have an API for it. Anyone knows it?</p>

<p>====================================
Update:</p>

<p>Form the documentation here <a href="https://developers.google.com/youtube/v3/live/docs/liveBroadcasts" rel="nofollow">https://developers.google.com/youtube/v3/live/docs/liveBroadcasts</a>
there should be a isDefault field in a Broadcast (snippet.isDefaultBroadcast). And there should be a default broadcast and default live stream.</p>

<p>But when I ran livebroadcasts.list to get all broadcasts, I got</p>

<pre><code>{
 "kind": "youtube#liveBroadcastListResponse",
 "etag": "\"abQHWywil_AkNqdqji7_FqiK-u4/z2Ncj_KliOCAGV1jEVPYCsHbZn0\"",
 "pageInfo": {
  "totalResults": 4,
  "resultsPerPage": 50
 },
 "items": [
 ]
}
</code></pre>

<p>Although the totalResults = 4, there's nothing in returned items.</p>