The New York Times web site provides a rich set of APIs, as described here: http://developer.nytimes.com/docs You’ll need to start by signing up for an API key.Your task is to choose one of the New York Times APIs, construct an interface in R to read in the JSON data, and transform it to an R dataframe.
library("jsonlite")
library("rjson")
result <- GET("http://api.nytimes.com/svc/topstories/v1/home.json?api-key=92d0119bc34a41b0b9e1aa4beaf0ecfc")
names(result)
content <- content(result)
stories_list <- fromJSON(content)
stories_df <- as.data.frame(do.call(rbind, stories_list$results))
colnames(stories_df)
stories_df