Search code examples
iosxcodeitunes

How can I return all songs by Album (collectionID) from Apple itunes search API


I want to do something like this:

https://itunes.apple.com/lookup?collectionid=211192863&entity=song

But it doesn't return the songs

I'm pretty sure they have such parameter since it is a pretty basic one

any tips are appreciated

Edit:

it seems I can pass ID also, but I don't know if I can trust it once I usd id input for artist search as well


Solution

  • You are very close - the proper API request should be:
    https://itunes.apple.com/lookup?id=211192863&entity=song

    Note, the first result returned is the Collection meta data, each of the following 12 results are the track meta data.