This is related to posts like this: iTunes API: get 100x100 px icon of an App
However since the method described in the accept answered there seems to be broken on a few, yet consistent, occasions, I'm gonna ask if there is a known workaround or other fix for this. How can we get artwork of an app in a requested size like 100x100 pixels, 150x150 pixels etc?
The method is like this:
- Get the Apple ID of the app. For ANgry birds, it's 343200656
- Use iTunes API to do a lookup. https://itunes.apple.com/lookup?id=343200656
- Get the artworkUrl512, it's likely the same as artworkUrl100 these days but whatever. For Angry birds, it's http://a1854.phobos.apple.com/us/r30/Purple3/v4/2d/5c/a1/2d5ca114-71f0-0687-6ebb-d10055b89fe6/pr_source.png?downloadKey=1429243548_2f0a88b4ea441432cc948d9377a86569
- I think we can cut the ? and everything to the right. Not sure about this step, this seems to be a fairly recent (?) thing. http://a1854.phobos.apple.com/us/r30/Purple3/v4/2d/5c/a1/2d5ca114-71f0-0687-6ebb-d10055b89fe6/pr_source.png
- Replace the last .png with .100x100-75.png where the NxN is the size in pixels you want. We try 100x100 so: http://a1854.phobos.apple.com/us/r30/Purple3/v4/2d/5c/a1/2d5ca114-71f0-0687-6ebb-d10055b89fe6/pr_source.100x100-75.png
Sweet.
- And this time it works. We should get a 100x100 picture back, instead of the 1024x1024 that artworkUrl512 gives by default.
And for SOME apps, step 5 just gives a 404 error back.
Possible lessons learnt:
- As this always was an undocumented feature, it was bound to break,
without any notice, at some point.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…