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?