What is an API?


  • Getting data from an API is equivalent to requesting a webpage
  • GET requests specify what data we want to retrieve in the URL
  • POST requests specify what data we want to retrieve in the body of the request.
  • Both requests have headers that we can manipulate to get what we want.

GETting data


  • 200 is the internet code for everything is OK
  • GET requests can be adjusted to specify desired result
  • Dad jokes are not really that funny.

Using POST


  • POST requests to servers put specific demands on how we request data
  • Using an API requires us to understand (some of) the ways the API works
  • Different searches typically requires different endpoints

What about danstat?


  • Larger services often provide packages to make it easier to use their API.

A short note on timeA relatively short session on time.


  • Working with time and dates can be complicated. lubridate makes it easier
  • Special date-time formats can be handled using the library zoo

Whats next?


  • “Practice makes perfect”
  • “KUB Datalab offers lots of courses and consultations”
  • “The web is overflowing with tutorials and courses”