require(jsonlite) #we will be loading a JSON file from the web
## Loading required package: jsonlite
## Warning: package 'jsonlite' was built under R version 3.3.2
myurl <- "http://api.nytimes.com/svc/movies/v2/reviews/search.json?opening-date=2009-01-01;2009-12-31"
myapi <- "&api-key=8d153be607144494a2619d9f981f316a"
movies.09 <- fromJSON(paste0(myurl, myapi))
movies.09 <- as.data.frame(movies.09)
View(movies.09)
#https://cran.r-project.org/web/packages/jsonlite/jsonlite.pdf (pg 4)
myurl.08 <- "http://api.nytimes.com/svc/movies/v2/reviews/search.json?opening-date=2008-01-01;2008-12-31"
myapi <- "&api-key=8d153be607144494a2619d9f981f316a"
movies.08 <- fromJSON(paste0(myurl, myapi))
movies.08 <- as.data.frame(movies.08)
View(movies.08)
#after seeing this I noticed the "has more" column which indicates that there were more entries than the 20 shown