itunes-search-api - 如何从专辑中获取播客剧集列表(iTunes Search API)

标签 itunes-search-api

我正在尝试从 iTunes 搜索 API 获取播客剧集列表。我可以调用 API 并根据搜索词取回所有播客专辑:

https://itunes.apple.com/search?media=podcast&term=nerdcast

这将返回以下 json(裁剪):
{
"resultCount": 20,
"results": [
    {
        "wrapperType": "track",
        "kind": "podcast",
        "collectionId": 381816509,
        "trackId": 381816509,
        "artistName": "Nerdcast",
        "collectionName": "Nerdcast",
        "trackName": "Nerdcast",
        "collectionCensoredName": "Nerdcast",
        "trackCensoredName": "Nerdcast",
        "collectionViewUrl": "https://itunes.apple.com/us/podcast/nerdcast/id381816509?mt=2&uo=4",
        "feedUrl": "http://jovemnerd.com.br/categoria/nerdcast/feed/",
        "trackViewUrl": "https://itunes.apple.com/us/podcast/nerdcast/id381816509?mt=2&uo=4",
        "artworkUrl30": "http://a5.mzstatic.com/us/r30/Podcasts/v4/e1/95/35/e1953536-8437-834e-eac8-01147ae11c9e/mza_3422052630315608394.30x30-50.jpg",
        "artworkUrl60": "http://a4.mzstatic.com/us/r30/Podcasts/v4/e1/95/35/e1953536-8437-834e-eac8-01147ae11c9e/mza_3422052630315608394.60x60-50.jpg",
        "artworkUrl100": "http://a1.mzstatic.com/us/r30/Podcasts/v4/e1/95/35/e1953536-8437-834e-eac8-01147ae11c9e/mza_3422052630315608394.100x100-75.jpg",
        "collectionPrice": 0,
        "trackPrice": 0,
        "trackRentalPrice": 0,
        "collectionHdPrice": 0,
        "trackHdPrice": 0,
        "trackHdRentalPrice": 0,
        "releaseDate": "2014-05-16T12:12:00Z",
        "collectionExplicitness": "notExplicit",
        "trackExplicitness": "notExplicit",
        "trackCount": 301,
        "country": "USA",
        "currency": "USD",
        "primaryGenreName": "Society & Culture",
        "radioStationUrl": "https://itunes.apple.com/station/idra.381816509",
        "artworkUrl600": "http://a2.mzstatic.com/us/r30/Podcasts/v4/e1/95/35/e1953536-8437-834e-eac8-01147ae11c9e/mza_3422052630315608394.600x600-75.jpg",
        "genreIds": [
            "1324",
            "26"
        ],
        "genres": [
            "Society & Culture",
            "Podcasts"
        ]
    },
.....

我现在想从第一个结果中获取所有剧集。我尝试使用 collectionId 执行查找请求,但它只返回与上述相同的输出,而不是该集合中的所有播客。
https://itunes.apple.com/lookup?id=381816509&entity=podcast

从阅读文档和其他一些帖子来看,这是我认为它应该工作的方式,但事实并非如此。有谁能帮帮我吗?谢谢。

最佳答案

我认为您需要做的是获取该提要 URL 并直接从那里获取轨道

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

我怀疑 iTunes 搜索 API 文档和实现包含未明确写出的警告。

关于itunes-search-api - 如何从专辑中获取播客剧集列表(iTunes Search API),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23717616/

相关文章:

objective-c - 如何在苹果iTunes搜索API中结合实体类型搜索

ios - 找出您所在国家/地区可以播放哪些 Apple Music 歌曲(例如通过 track_id)

ios - 从 iTunes Search API (Apple Music) 获取 ISRC 代码

mac-app-store - 按类别或价格搜索 iTunes/Appstore

Apple 搜索 API 的 iTunes ID

ios - 查询苹果应用商店?

ios - 通用链接 iOS

ios - iTunes 搜索 API 所需的最低 iOS 版本

angularjs - Nodejs 和 Express : How to send multiple Json variable from server to Client through response. 发送()