Skip to content

YouTube no longer responds with xml or json body on private videos #79

@bascht

Description

@bascht

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 😖)

Screenshot-2020-12-19-203412

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

Screenshot-2020-12-19-203423


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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions