You can find documentation for the iTunes Search API here. Essentially, you need to construct a URL that contains parameters for media type, entity (iPhone apps, iPad apps, Mac apps), store (US, UK, ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results