-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathgetting_data_using_apis.Rmd
More file actions
11 lines (6 loc) · 1.21 KB
/
getting_data_using_apis.Rmd
File metadata and controls
11 lines (6 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
# Getting data using APIs
Melissa Bischoff
For my community contribution project I created a tutorial on how to use APIs to get data. API integrations are an easy and useful way to pull data from the internet before resorting to web scraping. A lot of companies and services have APIs available, some are free for public use and some are for paying customers. In my tutorial I did three examples of getting data using APIs - one in R and two in Python. The first example is in R and uses the `httr` package. It accesses the github job posting API, which does not require authentication. The second example is the same as the first but in Python and uses the `requests` package. The third example is also in Python with the `requests` package but uses the Spotify API which does require authentication. The tutorial includes information about what APIs are focusing on the `GET` and `POST` method, examples of getting data from APIs with and without authentication, and helpful tricks along the way.
[Link to tutorial pdf](resources/getting_data_using_apis/Getting_Data_using_APIs.pdf)
[Link to Python code](resources/getting_data_using_apis/API_Code_in_Python.ipynb)
[Link to R code](resources/getting_data_using_apis/API_Code_in_R.Rmd)