How to get list of podcast episodes from an album (iTunes Search API)

前端 未结 2 1075
挽巷
挽巷 2021-02-09 09:31

I\'m trying to obtain the list of podcasts episodes from the iTunes Search API. I\'m able to make a call to the API and get back all podcast albums based on a search term:

相关标签:
2条回答
  • 2021-02-09 10:09

    For me, this works. I use this code: https://github.com/ijanerik/PHP-iTunes-API/blob/master/README.md

    foreach($results as $item){
    $url = $item->feedUrl;
    }
    $xml = simplexml_load_file($url) or die("feed not loading");
    print_r($xml);
    
    0 讨论(0)
  • 2021-02-09 10:19

    I think what you need to do is to take that feed URL and get the tracks from there directly

    "feedUrl": "http://jovemnerd.com.br/categoria/nerdcast/feed/",

    I suspect that the iTunes search API documentation and implementation contain caveats that are not written clearly out.

    0 讨论(0)
提交回复
热议问题