Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter iTunes search API results

It seems like iTunes search API returns different results than the ones returned when searching on an iPhone device (also results are in different order).

Assuming I want the results to be identical to an iPhone device, how do I do that with the official search API?

Also, is there a way to filter out non-iPhone apps from the search results?

Search API URL

iPhone search URL

like image 572
user1538106 Avatar asked Sep 04 '12 06:09

user1538106


People also ask

Is there an iTunes API?

The Search API allows you to place search fields in your website to search for content within the iTunes Store, App Store, iBooks Store and Mac App Store. You can search for a variety of content; including apps, iBooks, movies, podcasts, music, music videos, audiobooks, and TV shows.

How to search by genre iTunes?

Power Search, on the main iTunes Store page under Quick Links. Select Music and you'll see the option to select what genre you want to search. If you want to browse by genres, hover your cursor over the Music tab at the top of the iTunes Store window and click the arrow. Regards.

Does Apple music have API?

Overview. Use Apple Music API to access information about media in the Apple Music Catalog and a user's personal iCloud Music Library. Apple Music Catalog includes all resources available in Apple Music. iCloud Music Library contains only those resources the user adds to their personal library.


2 Answers

The search stack developed for the store is a different algorithm than the search stack for developer tools.

That said, understand some of the following features of the developer tool (Search API) that are helpful:

  • "sort=popular" is the default order that results are returned. "sort=recent" is the alternative.

  • "entity=software" will return apps that are available on iPhone, iPod touch and Universal apps (that work on iPad) but if you want all iOS apps you should use "entity=software,iPadSoftware"

  • Focus your search term on the attribute you are trying to target. If you know your search term is a song title (and not an album name or artist name) then use "attribute=songTerm"

like image 54
Ted Hosmann Avatar answered Sep 17 '22 13:09

Ted Hosmann


You can use the following API URL to make app store search requests. After acquiring Chomp last year, it was reported that Apple was revamping their internal App Store search algorithms. That may have something to do with the differences you see using the iTunes search API and whatever API the App Store uses. Apple may have developed a separate API specifically for Apps and for use in the App Store that excludes other products like music, in order to improve performance.

http://itunes.apple.com/search?term=SEARCHTERM&country=us&entity=software&limit=100

So, you could do the following in order to get only software for iPhone, iPod touch, and Universal apps with a search term of 'Gameloft'.

http://itunes.apple.com/search?term=Gameloft&country=us&entity=software&limit=100

To include iPad apps in the search, use:

http://itunes.apple.com/search?term=Gameloft&country=us&entity=software,iPadSoftware&limit=100

Check out Apple's documentation for more options.

You can try out a working example I put together of the iTunes search API here. Example Search Tool

like image 43
Jake Sankey Avatar answered Sep 18 '22 13:09

Jake Sankey