{"id":521,"date":"2009-09-16T20:29:21","date_gmt":"2009-09-16T19:29:21","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/"},"modified":"2009-09-16T20:29:21","modified_gmt":"2009-09-16T19:29:21","slug":"youtube-is-implementing-oembed","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/","title":{"rendered":"YouTube is implementing OEmbed"},"content":{"rendered":"<p>That&#39;s good news. For once, we were faster than YouTube to implement something :-)<br \/>Anyway, if you look at <a href=\"http:\/\/www.youtube.com\/watch?v=a1Y73sPHKxw\" rel=\"nofollow\">any video page source code<\/a>, you will find something like:<\/p>\n<pre>\r\n&lt;link rel=&quot;alternate&quot; type=&quot;application\/json+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=json&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt;\r\n&lt;link rel=&quot;alternate&quot; type=&quot;text\/xml+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=xml&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt;\r\n<\/pre>\n<p>And, by looking at one of these URLs, for example the JSON one, you can see:<\/p>\n<pre>\r\n{\r\n  &quot;provider_url&quot;: &quot;http:\/\/www.youtube.com\/&quot;,\r\n  &quot;title&quot;: &quot;Dramatic Chipmunk&quot;,\r\n  &quot;html&quot;: &quot;&lt;object width=&quot;384&quot; height=&quot;313&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http:\/\/www.youtube.com\/v\/a1Y73sPHKxw&amp;fs=1&quot;&gt;&lt;\/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;\/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;\/param&gt;&lt;embed src=&quot;http:\/\/www.youtube.com\/v\/a1Y73sPHKxw&amp;fs=1&quot; type=&quot;application\/x-shockwave-flash&quot; width=&quot;384&quot; height=&quot;313&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;&gt;&lt;\/embed&gt;&lt;\/object&gt;&quot;,\r\n  &quot;author_name&quot;: &quot;cregets&quot;,\r\n  &quot;height&quot;: 313,\r\n  &quot;width&quot;: 384,\r\n  &quot;version&quot;: &quot;1.0&quot;,\r\n  &quot;author_url&quot;: &quot;http:\/\/www.youtube.com\/user\/cregets&quot;,\r\n  &quot;provider_name&quot;: &quot;YouTube&quot;,\r\n  &quot;type&quot;: &quot;video&quot;\r\n}\r\n<\/pre>\n<p>So, from now on, you don&#39;t have to guess what&#39;s the HTML code to correctly embed a YouTube video (like we on My Opera did for the <strong>Embed Video button<\/strong> on the new blog post form, but you have the full, and always updated, HTML code in the OEmbed JSON content.<\/p>\n<p>Nice, I think.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>That&#39;s good news. For once, we were faster than YouTube to implement something :-)Anyway, if you look at any video page source code, you will find something like: &lt;link rel=&quot;alternate&quot; type=&quot;application\/json+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=json&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; &lt;link rel=&quot;alternate&quot; type=&quot;text\/xml+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=xml&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; And, by looking at one of these URLs, for example the JSON one, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[487,485,486,456,488,110],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YouTube is implementing OEmbed - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YouTube is implementing OEmbed - Random hacking\" \/>\n<meta property=\"og:description\" content=\"That&#039;s good news. For once, we were faster than YouTube to implement something :-)Anyway, if you look at any video page source code, you will find something like: &lt;link rel=&quot;alternate&quot; type=&quot;application\/json+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=json&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; &lt;link rel=&quot;alternate&quot; type=&quot;text\/xml+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=xml&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; And, by looking at one of these URLs, for example the JSON one, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-16T19:29:21+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"YouTube is implementing OEmbed\",\"datePublished\":\"2009-09-16T19:29:21+00:00\",\"dateModified\":\"2009-09-16T19:29:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\"},\"wordCount\":106,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"content\",\"embedding\",\"json\",\"oembed\",\"video\",\"youtube\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\",\"name\":\"YouTube is implementing OEmbed - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2009-09-16T19:29:21+00:00\",\"dateModified\":\"2009-09-16T19:29:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YouTube is implementing OEmbed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YouTube is implementing OEmbed - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/","og_locale":"en_US","og_type":"article","og_title":"YouTube is implementing OEmbed - Random hacking","og_description":"That&#39;s good news. For once, we were faster than YouTube to implement something :-)Anyway, if you look at any video page source code, you will find something like: &lt;link rel=&quot;alternate&quot; type=&quot;application\/json+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=json&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; &lt;link rel=&quot;alternate&quot; type=&quot;text\/xml+oembed&quot; href=&quot;http:\/\/www.youtube.com\/oembed?url=http%3A\/\/www.youtube.com\/watch?v%3Da1Y73sPHKxw&amp;format=xml&quot; title=&quot;Dramatic Chipmunk&quot; \/&gt; And, by looking at one of these URLs, for example the JSON one, [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/","og_site_name":"Random hacking","article_published_time":"2009-09-16T19:29:21+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"YouTube is implementing OEmbed","datePublished":"2009-09-16T19:29:21+00:00","dateModified":"2009-09-16T19:29:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/"},"wordCount":106,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["content","embedding","json","oembed","video","youtube"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/","name":"YouTube is implementing OEmbed - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2009-09-16T19:29:21+00:00","dateModified":"2009-09-16T19:29:21+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2009\/09\/youtube-is-implementing-oembed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"YouTube is implementing OEmbed"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/521"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}