ITunes Search API lookup id rules

What are the validation rules for ids used to lookup apps in iTunes search API? Through trial and error I have discovered the id has to be an unsigned number that does not exceed long value, but this request returns 400 with error message "Invalid value(s) for key(s): [itunesId]":

https://itunes.apple.com/us/lookup?media=software&entity=software&version=2&country=US&id=3526548784


So there is something more to it?


I am using the API to lookup multiple apps by id at a time (some of which might not exist) and values like this ruin the whole request. So how do I validate my data before?

Posted on Oct 23, 2023 4:31 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ITunes Search API lookup id rules

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.