-
Notifications
You must be signed in to change notification settings - Fork 67
YouTube no longer responds with xml or json body on private videos #79
Description
Stumbled upon this behaviour via a Drupal bug report but this is slightly different: I was hunting down a OEmbed::ParseError which is probably rooted in a change on YouTubes side: From what I can tell from my own testing, YouTube will no longer respond with a formatted body to oembed requests for private videos.
I tested with https://www.youtube.com/oembed/?scheme=https&url=https://www.youtube.com/watch?v=ejCiG0swM24&format=json which will now respond with just Forbidden as body text (and HTTP 200 😖)
Whereas existing videos can be embedded just fine, since they will responde in their proper format, e.g. https://www.youtube.com/oembed/?scheme=https&url=https://www.youtube.com/watch?v=MPY_EuvimH0&format=json
I am not sure where to go from here. As far as I understand the spec, responses should be either valid json or xml and even the HTTP response doesn't give any hints on the failure mode. 😟
Let me know if I can help to debug this further.

