{"id":1637,"date":"2016-06-20T17:11:06","date_gmt":"2016-06-20T17:11:06","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1637"},"modified":"2016-06-20T17:35:32","modified_gmt":"2016-06-20T17:35:32","slug":"youtube-video-thumbnail-image-url-php","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/","title":{"rendered":"Get YouTube Video Thumbnail Image URL using PHP"},"content":{"rendered":"<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-1024x576.png\" alt=\"get-youtube-thumbnail-image-url-using-php-codexworld\" width=\"960\" height=\"540\" class=\"alignnone size-large wp-image-1638\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-1024x576.png 1024w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-300x169.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-768x432.png 768w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-350x197.png 350w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-320x180.png 320w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-380x214.png 380w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-200x112.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld-346x195.png 346w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png 1366w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/div>\n<p>In the present day, YouTube embed video is used on many websites. Many web project needs to implement a YouTube video gallery where YouTube video thumbnails are dynamically listed in the gallery. In this article, we&#8217;ll provide the short PHP snippet to get YouTube video thumbnail image URL using PHP.<\/p>\n<p>This simple PHP script is very useful when you want to get the YouTube video thumbnail image URL dynamically based on the provided YouTube URL. Using this YouTube thumbnail URL, you can design the video gallery as per your project needs.<\/p>\n<h2>Get Thumbnail Image URL from YouTube Embed Code<\/h2>\n<p>The following PHP code extracts the <code>src<\/code> value from YouTube Embed Code and generates the video thumbnail image URL based on YouTube video ID.<\/p>\n<pre><span style=\"color: #0000BB\">$embedCode&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;iframe&nbsp;width=\"560\"&nbsp;height=\"315\"&nbsp;src=\"https:\/\/www.youtube.com\/embed\/dwJasig9Olw\"&nbsp;frameborder=\"0\"&nbsp;allowfullscreen&gt;&lt;\/iframe&gt;'<\/span><span style=\"color: #007700\">;<br \/><\/span><span style=\"color: #0000BB\">preg_match<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'\/src=\"([^\"]+)\"\/'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$embedCode<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$match<\/span><span style=\"color: #007700\">);<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Extract&nbsp;video&nbsp;url&nbsp;from&nbsp;embed&nbsp;code<br \/><\/span><span style=\"color: #0000BB\">$videoURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$match<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #0000BB\">1<\/span><span style=\"color: #007700\">];<br \/><\/span><span style=\"color: #0000BB\">$urlArr&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">explode<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"\/\"<\/span><span style=\"color: #007700\">,<\/span><span style=\"color: #0000BB\">$videoURL<\/span><span style=\"color: #007700\">);<br \/><\/span><span style=\"color: #0000BB\">$urlArrNum&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">count<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$urlArr<\/span><span style=\"color: #007700\">);<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;YouTube&nbsp;video&nbsp;ID<br \/><\/span><span style=\"color: #0000BB\">$youtubeVideoId&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$urlArr<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #0000BB\">$urlArrNum&nbsp;<\/span><span style=\"color: #007700\">-&nbsp;<\/span><span style=\"color: #0000BB\">1<\/span><span style=\"color: #007700\">];<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Generate&nbsp;youtube&nbsp;thumbnail&nbsp;url<br \/><\/span><span style=\"color: #0000BB\">$thumbURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #DD0000\">'http:\/\/img.youtube.com\/vi\/'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$youtubeVideoId<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\/0.jpg'<\/span><span style=\"color: #007700\">;<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;thumbnail&nbsp;image<br \/><\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;img&nbsp;src=\"'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$thumbURL<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\"\/&gt;'<\/span><span style=\"color: #007700\">;<\/span><\/pre>\n<h2>Get Thumbnail Image URL from YouTube URL<\/h2>\n<p>The following PHP code generates the video thumbnail image URL based on YouTube video ID.<\/p>\n<pre><span style=\"color: #FF8000\">\/\/&nbsp;YouTube&nbsp;video&nbsp;url<br \/><\/span><span style=\"color: #0000BB\">$videoURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #DD0000\">'https:\/\/youtu.be\/dwJasig9Olw'<\/span><span style=\"color: #007700\">;<br \/><\/span><span style=\"color: #0000BB\">$urlArr&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">explode<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"\/\"<\/span><span style=\"color: #007700\">,<\/span><span style=\"color: #0000BB\">$videoURL<\/span><span style=\"color: #007700\">);<br \/><\/span><span style=\"color: #0000BB\">$urlArrNum&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">count<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$urlArr<\/span><span style=\"color: #007700\">);<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Youtube&nbsp;video&nbsp;ID<br \/><\/span><span style=\"color: #0000BB\">$youtubeVideoId&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$urlArr<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #0000BB\">$urlArrNum&nbsp;<\/span><span style=\"color: #007700\">-&nbsp;<\/span><span style=\"color: #0000BB\">1<\/span><span style=\"color: #007700\">];<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Generate&nbsp;youtube&nbsp;thumbnail&nbsp;url<br \/><\/span><span style=\"color: #0000BB\">$thumbURL&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #DD0000\">'http:\/\/img.youtube.com\/vi\/'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$youtubeVideoId<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\/0.jpg'<\/span><span style=\"color: #007700\">;<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;thumbnail&nbsp;image<br \/><\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;img&nbsp;src=\"'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$thumbURL<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\"\/&gt;'<\/span><span style=\"color: #007700\">;<\/span><\/pre>\n<h2>YouTube Video Thumbnail Image Sizes<\/h2>\n<p>YouTube allow you to get the following thumbnail sizes.<\/p>\n<pre>\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/0.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/1.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/2.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/3.jpg\r\n<\/pre>\n<p>Also the different quality of thumbnails is available.<\/p>\n<pre>\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/default.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/hqdefault.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/mqdefault.jpg\r\nhttp:\/\/img.youtube.com\/vi\/VideoID\/sddefault.jpg\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In the present day, YouTube embed video is used on many websites. Many web project needs to implement a YouTube video gallery where YouTube video thumbnails are dynamically listed in the gallery. In this article, <\/p>\n","protected":false},"author":1,"featured_media":1638,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[14,202],"class_list":["post-1637","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php","tag-youtube","cat-4-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Get YouTube Video Thumbnail Image URL using PHP - CodexWorld<\/title>\n<meta name=\"description\" content=\"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.\" \/>\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.codexworld.com\/youtube-video-thumbnail-image-url-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get YouTube Video Thumbnail Image URL using PHP - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-20T17:11:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-06-20T17:35:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\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.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Get YouTube Video Thumbnail Image URL using PHP\",\"datePublished\":\"2016-06-20T17:11:06+00:00\",\"dateModified\":\"2016-06-20T17:35:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/\"},\"wordCount\":175,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/get-youtube-thumbnail-image-url-using-php-codexworld.png\",\"keywords\":[\"PHP\",\"YouTube\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/\",\"name\":\"Get YouTube Video Thumbnail Image URL using PHP - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/get-youtube-thumbnail-image-url-using-php-codexworld.png\",\"datePublished\":\"2016-06-20T17:11:06+00:00\",\"dateModified\":\"2016-06-20T17:35:32+00:00\",\"description\":\"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/get-youtube-thumbnail-image-url-using-php-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/get-youtube-thumbnail-image-url-using-php-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"get-youtube-thumbnail-image-url-using-php-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/youtube-video-thumbnail-image-url-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get YouTube Video Thumbnail Image URL using PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get YouTube Video Thumbnail Image URL using PHP - CodexWorld","description":"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.","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.codexworld.com\/youtube-video-thumbnail-image-url-php\/","og_locale":"en_US","og_type":"article","og_title":"Get YouTube Video Thumbnail Image URL using PHP - CodexWorld","og_description":"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.","og_url":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-06-20T17:11:06+00:00","article_modified_time":"2016-06-20T17:35:32+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Get YouTube Video Thumbnail Image URL using PHP","datePublished":"2016-06-20T17:11:06+00:00","dateModified":"2016-06-20T17:35:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/"},"wordCount":175,"commentCount":4,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","keywords":["PHP","YouTube"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/","url":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/","name":"Get YouTube Video Thumbnail Image URL using PHP - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","datePublished":"2016-06-20T17:11:06+00:00","dateModified":"2016-06-20T17:35:32+00:00","description":"YouTube Video Thumbnail Image URL - Simple PHP script to get the YouTube video thumbnail image URL from YouTube URL or embed code using PHP.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","width":1366,"height":768,"caption":"get-youtube-thumbnail-image-url-using-php-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/youtube-video-thumbnail-image-url-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Get YouTube Video Thumbnail Image URL using PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/06\/get-youtube-thumbnail-image-url-using-php-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-qp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":5,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1637\/revisions\/1643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1638"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}