The {appler} package is a wrapper around Apple’s App Store Search API. This allows the user to pull information about artists, applications, and anything else available on iTunes or the Apple App Store.
Other functions are included to allow the pulling of information not included in the search API such as application reviews and split of ratings.
The first thing to do is find the ID of the entity you are analysing.
The search_apple function will use Apple’s API to return
any items that are related to the search terms entered. By default it
pulls tracks and audiobooks, however with the entity
parameter we can specify we want to search for artists or
applications.
# Artist ID can be obtained from the artistId column
taylor_swift_songs <- search_apple("Taylor Swift")
taylor_swift <- search_apple("Taylor Swift", media = "music", entity = "musicArtist")
str(taylor_swift)
#> 'data.frame': 50 obs. of 8 variables:
#> $ wrapperType : chr "artist" "artist" "artist" "artist" ...
#> $ artistType : chr "Artist" "Artist" "Artist" "Artist" ...
#> $ artistName : chr "Taylor Swift" "Dan + Shay" "Charlie Puth" "Coldplay" ...
#> $ artistLinkUrl : chr "https://music.apple.com/us/artist/taylor-swift/159260351?uo=4" "https://music.apple.com/us/artist/dan-shay/690319057?uo=4" "https://music.apple.com/us/artist/charlie-puth/336249253?uo=4" "https://music.apple.com/us/artist/coldplay/471744?uo=4" ...
#> $ artistId : int 159260351 690319057 336249253 471744 281070699 830588310 979458609 1036753321 78257321 123055194 ...
#> $ amgArtistId : int 816977 2902475 3047262 435023 1062562 3044004 3257678 3208877 737022 816669 ...
#> $ primaryGenreName: chr "Pop" "Country" "Pop" "Alternative" ...
#> $ primaryGenreId : int 14 6 14 20 20 15 14 18 15 6 ...
taylor_swift_id <- taylor_swift$artistIdApplications are slightly different, where they instead of
artistId, trackId is used to store the unique
ID.
github_tracks <- search_apple("GitHub")
github_app <- search_apple("GitHub", media = "software", entity = "software")
# Over 50 apps are returned, however the top is the official GitHub app
github_app_id <- github_app$trackId[1]
cat(github_app_id)
#> 1477376905When searching software, a lot more information is returned, such as
application metadata (size, version, release notes) and average rating.
Use str(github_app) to take a look at everything
included.
Alternatively the ID can be found in the URL.
For artists and tracks it can be found as the last part of the URL.
For example, to find out about Taylor Swift the ID is
159260351 (from https://music.apple.com/us/artist/taylor-swift/159260351),
or her latest album Midnights is 1650841512 (from https://music.apple.com/us/album/midnights-3am-edition/1650841512).
For applications it is almost the same, however it is prefixed with
“id” which will need to be removed when using functions from {appler}.
For example the ID for GitHub is 1477376905 (from https://apps.apple.com/us/app/github/id1477376905).
If you already have the ID, you can use lookup_apple and
it will return the same information as search_apple but for
the specific entity chosen.
taylor_swift_lookup <- lookup_apple(taylor_swift_id)
str(taylor_swift_lookup)
#> 'data.frame': 50 obs. of 8 variables:
#> $ wrapperType : chr "artist" "artist" "artist" "artist" ...
#> $ artistType : chr "Artist" "Artist" "Artist" "Artist" ...
#> $ artistName : chr "Taylor Swift" "Dan + Shay" "Charlie Puth" "Coldplay" ...
#> $ artistLinkUrl : chr "https://music.apple.com/us/artist/taylor-swift/159260351?uo=4" "https://music.apple.com/us/artist/dan-shay/690319057?uo=4" "https://music.apple.com/us/artist/charlie-puth/336249253?uo=4" "https://music.apple.com/us/artist/coldplay/471744?uo=4" ...
#> $ artistId : int 159260351 690319057 336249253 471744 281070699 830588310 979458609 1036753321 78257321 123055194 ...
#> $ amgArtistId : int 816977 2902475 3047262 435023 1062562 3044004 3257678 3208877 737022 816669 ...
#> $ primaryGenreName: chr "Pop" "Country" "Pop" "Alternative" ...
#> $ primaryGenreId : int 14 6 14 20 20 15 14 18 15 6 ...Comparing the results of search and lookup:
Once you have the ID, you can get to the interesting part: the reviews. Apple has an RSS feed that enables you to pull the latest 500 reviews for an application, along with information such as the version that was being reviewed, and what rating was given by the user.
There is a limitation that you can only pull the reviews for a single country, and by default the reviews from the US will be returned, however any ISO-2 country code can be used. If the app isn’t available in that country, then there will be a 400 error.
github_reviews <- get_apple_reviews(github_app_id)
head(github_reviews)
#> id review_time author app_version
#> 1 14763701873 2026-11-07 23:47:43 Stav2346 1.283.0
#> 2 14758197358 2026-11-06 15:35:52 Stevo1970! 1.283.0
#> 3 14757996496 2026-11-06 14:36:00 BrodyHoskins 1.283.0
#> 4 14757425820 2026-11-06 11:50:00 KibaTheRacoon 1.283.0
#> 5 14749594882 2026-11-04 11:46:10 Rexios 1.282.1
#> 6 14748057466 2026-11-04 01:10:35 swrobel 1.282.1
#> title rating
#> 1 I love you 5
#> 2 Horrible customer service 1
#> 3 Reviewing Code Frustrating, Weird Notifications 2
#> 4 Buggy 3
#> 5 no iphone duo support 1
#> 6 Disgraceful lack of iPhone Duo support 2
#> review
#> 1 Incredible
#> 2 The GitHub app accidentally put my account on billing hold, and it took them over 35 days to take it off. They ignored all my tickets that I sent to get them to remove the hold, and nobody responded to any of them until after 35 days. The customer service was absolutely abysmal.
#> 3 Impossible to review Ruby code because typing any @ inside a code block triggers the “find people” UI that cannot be dismissed.\n\nI also get a weird notification that says “you have a notification” that takes me nowhere: first off, just write the actual notification message in the notification itself? And secondly why doesn’t it go anywhere?
#> 4 It caused my entire phone to crash opening a large file or searching a letter that appears many times, looking at a README bugs out Springboard
#> 5 you literally just build with latest xcode bruh
#> 6 For my developer tools, I expect them to support early adopters, not punish usOne extra piece of functionality available in {appler} is the ability
to scrape the rating split from the App Store. Whilst the average rating
for the app is available in search_apple, it is useful to
know how many 5* ratings are given and how many 1* ratings are
given.