php - Get Podcast details from iTunes url -


Is it possible to return a title, description, and image link to podcast on iTunes if you have an url?

For example, with the following URL from iTunes:

Do we get podcast details via an API call or something with those lines Can you? Ideally we want to use php to return details.

You can use the iTunes Search API to get podcast information in which the track title and image will be .

Using your URL as an example, you can touch the ID "90206964" and use the curl.

  function getID ($ url) {$ id_pos = strpos ($ url, "/ id") + 3; $ Length = strapo ($ url, "?", $ Id_pos) - $ id_pos; Return subtraction ($ url, $ id_pos, $ length); } FetchFromiTunes function ($ id) {$ ch = curl_init ("https://itunes.apple.com/lookup?id=". $ Id); $ Option = array (CURLOPT_RETURNTRANSFER = & gt; true, CURLOPT_HTTPHEADER => array ('content-type: app / jsn'),); Curl_setopt_array ($ ch, $ option); $ Result = curl_xac ($ CH); $ Result = json_decode ($ result, true); Echo "[podcast title]" $ result ["result"] [0] ["collection name"] "\ N [artwork]" $ result ["result"] [0] ["article 600"] "\ N"; Curl_close ($ ch); }  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -