Access iTunes App Store Ratings and Reviews using R

To enable 'iOS' App Developers to access iTunes App Store Ratings and Reviews using R to extract Basic App Information and Reviews submitted by their App users, Since Apple Store does not provide this straightforward.


Build Status CRAN_Status_Badge DOWNLOADSTOTAL Coverage Status Rdoc

Overview

The goal of itunesr is to help iOS App Developers access iTunes App Store Ratings and Reviews programmatically, since iTunes Connect doesn't provide this data straightforward.

Installation

# install itunesr directly from CRAN:
install.packages("itunesr")
 
#  the development version from GitHub:
# install.packages("devtools")
devtools::install_github("amrrs/itunesr")

Dependency Packages

  • jsonlite
  • xml2
  • lubridate
  • curl

Getting started

library(itunesr)
getReviews(368677368,'us',1)
getAttributes(742044692,'in')

itunesr can be loaded just like any other R-package with library(itunesr).

Note: If you're trying this behind a Firewall, you might get: Error in open.connection(con, "rb") : Timeout was reached To resolve this error, Please refer this link: Configuring R to Use an HTTP or HTTPS Proxy

Examples

Code

library(itunesr)
 
#Latest (Page 1) Uber Reviews for the Country: US
uber_reviews <- getReviews(368677368,'us',1)
 
#Displaying the column names 
names(uber_reviews)
 
#Ratings count from the 50 Reviews
table(uber_reviews$Rating)

Output

> #Latest (Page 1) Uber Reviews for Country: US
> uber_reviews <- getReviews(368677368,'us',1)
> #Displaying the column names
> names(uber_reviews)
[1] "Title"       "Author_URL"  "Author_Name" "App_Version" "Rating"      "Review"      "Date"       
> #Ratings count from the 50 Reviews
> table(uber_reviews$Rating)
 
 1  2  3  4  5 
19  3  7  4 17 

Using itunesr output with Tidyverse

> amazon_reviews <- getReviews("297606951","us",1)
> library(tidyverse)
> amazon_reviews %>% count(Rating)
# A tibble: 5 x 2
  Rating     n
  <fct>  <int>
1 1         25
2 2          8
3 3          9
4 4          4
5 5          4
 

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("itunesr")

0.1.3 by AbdulMajedRaja RS, 2 months ago


http://github.com/amrrs/itunesr


Browse source code at https://github.com/cran/itunesr


Authors: AbdulMajedRaja RS [aut, cre]


Documentation:   PDF Manual  


CC0 license


Imports jsonlite, xml2, lubridate, curl

Suggests testthat, covr


See at CRAN