YouTube Streaming API says user is not enabled for live streaming

前端 未结 2 1320
挽巷
挽巷 2021-01-19 04:22

I\'m using Google\'s YouTube API Explorer (alternate) to look up information on an arbitrary streaming broadcast.

No matter what I put into the id field

相关标签:
2条回答
  • 2021-01-19 04:59

    The Errors heading of the API documentation has this interesting chart:

    Error Type | Error Detail                | Description
    -----------+-----------------------------+------------------------------------------
    insuf...ns | insufficientLivePermissions | The request is not authorized to retrieve
               |                             | the live broadcast.
    -----------+-----------------------------+------------------------------------------
    insuf...ns | liveStreamingNotEnabled     | The user that authorized the request is not
               |                             | enabled to stream live video on YouTube.
               |             ^               | The user can find more information at
               |   (I'm getting this one)    | https://www.youtube.com/features.
    

    which implies that because my account is not enabled for live streaming, I can't look at anyone else's live stream information in the API, even if I can pull it up in the browser.

    This seems kind of arbitrary, but it turned out to be the permissions problem.

    Note that I still can't get useful data.

    0 讨论(0)
  • 2021-01-19 04:59

    I had the same error message when trying to get Youtube Livestream status.

    In my case I'm using 'Youtube Brand Account' and it's worth trying to switch the brand account as the authorized user. That worked fine. HTH

    0 讨论(0)
提交回复
热议问题