Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use the Apple Search API to search by genre?

Is it possible to use the Apple Search API to search by genre ? I'm thinking specifically games in the app store. Using Obj-c.

As has been pointed out in the comments of this question...

Search Apple App store by genre with iOS/Obj-c

There seems to be a problem with trying to search by genre, so I'm looking for answers which of examples of that actually working, not just links to the docs.

like image 804
Phil Avatar asked Dec 17 '12 17:12

Phil


People also ask

How do you search for genres on Apple Music on Iphone?

At music.apple.com , click the search field in the top-left corner. Do one of the following: Choose from categories: Select a genre, mood, or activity, such as Dance or Fitness. Choose a recent search: Choose something you recently searched for, such as a song, artist, or album.

How do I search by genre in iTunes?

All replies. 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.

Does Apple Music have an 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

It's not actually documented on the Search API documentation, but you can add a genreId parameter to the search URL and it restricts the search to a particular genre.

If you look at the JSON returned from a search for "Yelp", there are 4 interesting things:

"genreIds":["6005", "6001"]
"genres":["Social Networking", "Weather"]
"primaryGenreName":"Social Networking"
"primaryGenreId":6005

Adding &genreId=6001 to a URL will find apps in the US in the "Weather" category. I'm using the search term "Check" in the URL.

https://itunes.apple.com/search?term=Check&country=us&entity=software&genreId=6001

Because it's not documented, you can't rely on it working forever. You may also be able to use the primaryGenreName as a parameter, I didn't try that. You'll have to figure out what numbers correspond to what categories too.

like image 129
nevan king Avatar answered Oct 17 '22 00:10

nevan king


The Search API is documented here: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

You can use this link to generate an RSS Feed of your liking. Without knowing too much about how you intend to use it, I would suggest looking at these two solutions and using the best one that suits your needs.

like image 43
Numan Tariq Avatar answered Oct 16 '22 22:10

Numan Tariq