gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 14:12:57 29 4
gpt4 key购买 nike

我正在尝试从 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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com