{"id":7933,"date":"2015-11-10T12:44:24","date_gmt":"2015-11-10T12:44:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/10\/how-can-i-fetch-the-information-from-json-youtube-dl-when-i-use-get-id-open-source-projects-rg3-youtube-dl\/"},"modified":"2015-11-10T12:44:24","modified_gmt":"2015-11-10T12:44:24","slug":"how-can-i-fetch-the-information-from-json-youtube-dl-when-i-use-get-id-open-source-projects-rg3-youtube-dl","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/10\/how-can-i-fetch-the-information-from-json-youtube-dl-when-i-use-get-id-open-source-projects-rg3-youtube-dl\/","title":{"rendered":"how can i fetch the information from json youtube-dl when i use &#8211;get-id-open source projects rg3\/youtube-dl"},"content":{"rendered":"<p>i have problem when i try to get the information from json file ($output) When i use youtube-dl . i need webpage_url from my json file my code is<\/p>\n<pre><code>$output = shell_exec('youtube-dl -J https:\/\/www.youtube.com\/playlist?list=PLANMHOrJaFxPCjR2enLZBRgtZgjtXJ0MJ' );\n$youtubeId = json_decode($output);\n$youtubeId = $youtubeId-&gt;webpage_url;\n\necho $youtubeId;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>i have problem when i try to get the information from json file ($output) When i use youtube-dl . i need webpage_url from my json file my code is $output = shell_exec(&#8216;youtube-dl -J https:\/\/www.youtube.com\/playlist?list=PLANMHOrJaFxPCjR2enLZBRgtZgjtXJ0MJ&#8217; ); $youtubeId = json_decode($output); $youtubeId = $youtubeId-&gt;webpage_url; echo $youtubeId;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7933","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7933"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7933\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}