Youtube Oembed not being recognised

Hi there,

I am currently trying to embed a Youtube video in a slice using the oembed field and from what I understand I have the correct URL to render a json response, but the editor is complaining the url is not valid. Some help would be appreciated! :slight_smile:

For the record I have tried the following URLs:

https://youtube.com/oembed?url=https://www.youtube.com/watch?v=z3RcHLhk17U&format=json
https://youtube.com/oembed?url=https%3A//www.youtube.com/watch%3Fv%3Dz3RcHLhk17U&format=json

Thanks in advance

Hey Andrew, thanks for reaching out. That is happening because the Embed field only accepts valid oEmbed URLs. It isn't the case with the URLs that you shared here. You can check if a link is valid or not in many online checkers like this one.

As a workaround, you can set up a field for custom HTML/embed code and inject that into your page.

Thanks Paulina,

May I suggest that a couple of these tools be linked to in your User Guides for Embeds?

Of course, feedback is always welcomed. I'll add a note in our backlog to include this in the docs.

Let me know if you can whelp you with anything else.
Thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.