APIs using R

Getting data from databases and other sources on the internet frequently requires us to interact with an API (Application Programming Interface).

This lesson will teach you how to interact with APIs using R.

The lesson builds on previous knowledge about R. If you do not have experience with R, you will probably not have a good experience following the course. Please consider taking an introductory course on R before following this course.


Familiarity with R and RStudio, matching the description in “Before we start”


Setup Download files required for the lesson
00:00 1. Before we Start Is this an introduction to R?
What should I remember about R?
What new concepts are introduced?
00:15 2. What is an API? What is an API?
How do our computer interact with servers?
00:30 3. GETting data How do I get data from an API using the GET method?
Is there a way to modify headers, to get a specific type of result?
01:15 4. Using POST How do I get data from an API using the POST method?
02:00 5. What about danstat? Is there an easier way to access Statistics Denmark
02:45 6. Time How can I convert a textual representation of time and dates to something R can understand?
04:05 7. Data Visualisation with ggplot2 What are the components of a ggplot?
How do I create scatterplots, boxplots, and barplots?
How can I change the aesthetics (ex. colour, transparency) of my plot?
How can I create multiple plots at once?
06:00 8. Whats next? What is the next step?
06:45 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.