In this document I will be investigating the Yelp API and provide examples to my classmates about why it would be interesting to use and how to interact with it.
YELP API
Yelp is a business reviewing platform with data about businesses, locations, ratings, and reviews. We can collect all this data in an API. With this data we can do lots of things such as comparing and contrasting the hottest new restaurants in a specific city. Look at ratings of the same type of restaurant in the same year. Or even look at business engagement. There are lots of things we can do using the Yelp API. Following are the instruction on how to set it up.
Installing package into 'C:/Users/joega/AppData/Local/R/win-library/4.3'
(as 'lib' is unspecified)
package 'devtools' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\joega\AppData\Local\Temp\RtmpATOanj\downloaded_packages
devtools::install_github("OmaymaS/yelpr")
Skipping install of 'yelpr' from a github remote, the SHA1 (84734851) has not changed since last install.
Use `force = TRUE` to force installation
library(devtools)
Loading required package: usethis
library(yelpr)
Next we are going to create variables for the API key.
Key <-"Enter API key here"
This should be all you need to access your API by using the yelpr package!
Demonstration
In this demonstration we will search for coffee shops in Cincinnati .