If you’ve ever displayed a YouTube video or a Spotify playlist on your WordPress site, chances are that the content was displayed with the oEmbed format. Using oEmbeds with WordPress is easy. Simply paste the URL to the content you want to embed in the content of your post or page, and the oEmbed implementation in WordPress will handle the rest. For instance, adding the following YouTube URL in your content:
https://www.youtube.com/watch?v=XOY3ZUO6P0k
Will give you the following:
In the block editor, the URL is turned into an Embed block when you paste it, and the video is shown while you’re editing. You can find a full list of supported oEmbed providers in WordPress here.