Sarang
Sarang

Reputation: 51

Is it possible to set the category of a live stream via the YouTube Live Streaming API?

This is not shown anywhere in the API documentation, but seeing as it is the youtube developers who are making the API, there must be a way.

Upvotes: 0

Views: 608

Answers (1)

stvar
stvar

Reputation: 6955

The category of a live stream can be set using the Videos.update API endpoint invoked with a request body that has:

  • its property id set to that broadcast's ID, and
  • its property snippet.categoryId set to the desired video category ID.

Be aware that, according to the official doc referenced above, snippet.title must also be set:

snippet.title - This property is only required if the request updates the video resource's snippet.

Upvotes: 2

Related Questions