How to determine which live broadcasts have been released and booked via YouTube Data API.

Asked 2 years ago, Updated 2 years ago, 95 views

The current Youtube Data API provides the same format for Premier Published/Reserved Live Distribution (data obtained below), and the values of liveBroadcastContent are the same as upcoming, none, live, etc., so it seems impossible to distinguish.

There was a similar question on stackoverflow.com (those who are not jp) and it has not been resolved yet, so I asked you a question.

I would appreciate it if you could reply if anyone knows how to make a decision based on the current API specification that has been released or reserved for Premier.

Thank you for your cooperation.

Live Distribution Before Start

"liveStreamingDetails": {
    "scheduledStartTime": "2020-10-30T 12:00:00Z",
    "activeLiveChatId": "XXXXXXX"
  }

Closed Live Distribution

"liveStreamingDetails": {
    "actualStartTime": "2020-09-17T13:25:08Z",
    "actualEndTime": "2020-09-17T15:40:29Z"
  }

Pre-launch Premier

"liveStreamingDetails": {
    "scheduledStartTime": "2020-10-30T09:00:00Z",
    "activeLiveChatId": "XXXXXXX"
  }

Finished premiere video

"liveStreamingDetails": {
    "actualStartTime": "2020-10-19T 12:00:13Z",
    "actualEndTime": "2020-10-19T 12:04:25Z",
    "scheduledStartTime": "2020-10-19T 12:00:00Z"
  }

youtube-data-api

2022-09-30 18:17

1 Answers

If liveBroadcastContent is 'upcoming' or 'live',
If status.uploadStatus is live, 'uploaded'
It says 'processed' in the premiere, so
So I discovered that I can distinguish it.

Both will be 'processed' after the distribution ends, so
We are looking for a way to determine after the distribution is finished.


2022-09-30 18:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.