Introduction to {appler}

R-CMD-check Codecov test coverage

Introduction

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.

Reviews

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 9543515447 2023-01-24 21:15:17  🍓kianakooshesh🍓      1.97.0
#> 2 9539504245 2023-01-23 17:27:45      MikeMcqocjc      1.96.0
#> 3 9521163486 2023-01-18 15:05:35           fitzoh      1.96.0
#> 4 9515721565 2023-01-17 01:29:12 TheWorstSoftware      1.95.0
#> 5 9500797135 2023-01-12 23:18:20    nokiapureview      1.95.0
#> 6 9493878837 2023-01-11 00:34:31     superToasted      1.95.0
#>                                                                     title
#> 1                                               Explore page doesn’t load
#> 2 I’m new to coding and it’s like starting into the sun it hurts my brain
#> 3                       Please let us manage multiple GitHub.com accounts
#> 4                                      They actually use version history!
#> 5                                                  Star button is too big
#> 6                                                           no clone link
#>   rating
#> 1      4
#> 2      3
#> 3      3
#> 4      5
#> 5      4
#> 6      1
#>                                                                                                                                                                                                                                                                                                          review
#> 1                                                                             I’ve been using GitHub for a while now and I loved it!\nBut recently when I click on the explore page it doesn’t load and gives an error, unfortunately this issue wasn’t solved with the latest update which was released today.
#> 2 I want to learn how to code because my ex off 13 years started seeing a guy who is very good at coding and was able to come how tunnel into my phone and clone everything he has since walked away with all my info and $500 out of my bank accounts i need to learn how to code to understand this new world
#> 3                                                                                                                                      I like the app, but have major usability issues due to having separate work and personal GitHub.com accounts.\n\nPlease find a way to allow us to use multiple accounts.
#> 4                                                They actually use the version history instead of just putting nonsense or marketing info!! \nPlus the updates they do do, have a purpose! \nIt’s not as robust as a browser, or even cmd, but it works great and honest has only gotten better over the years.
#> 5                                                                                                                                                                                                                    Always touch star button when scrolling repo list.Please decrease the size of star button.
#> 6        The mobile all and mobile website decided to omit the clone link of all repos. I am trying to use the app to install some drivers on a linux machine with no browser to request a desktop version. Because of this i am unable to use github to get the most basic of information i need to use a repo

Ratings

One 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.

github_ratings <- get_apple_rating_split(github_app_id)
github_ratings
#>   rating percent
#> 1      5    0.89
#> 2      4    0.07
#> 3      3    0.02
#> 4      2    0.01
#> 5      1    0.02