YouTube oEmbed
www.youtube.comYouTube offers a platform to watch and share videos, including music and original content. Developers can embed various content types such as videos, playlists, and shorts using the provided oEmbed URL patterns. Consumers such as WordPress, Slack, and other CMS or chat platforms can call its oEmbed endpoint to turn YouTube URLs into rich embeds — without writing custom integration code. Below are the endpoint details, supported URL patterns, and response formats for YouTube.
1
Endpoint
10
URL patterns
json
Format
Yes
Discovery
Endpoint
https://www.youtube.com/oembed
Supported URL patterns
https://*.youtube.com/watch* https://*.youtube.com/v/* https://youtu.be/* https://*.youtube.com/playlist?list=* https://youtube.com/playlist?list=* https://*.youtube.com/shorts* https://youtube.com/shorts* https://*.youtube.com/embed/* https://*.youtube.com/live* https://youtube.com/live* Formats: json Link-tag discovery enabled
Test a YouTube URL
See the live oEmbed response and a rendered preview.