Learning Objectives

Why learning objectives (LOs)?

What type of LOs are we focusing on?

  • Readers probably solving semi-specific problems, so…
  • Skill-based learning objectives
    • “After you read this chapter, you will be able to…”

Why do they matter?

  • Students learn more when they have clear objectives.
  • Lends structure to my process.
  • Eventually: Lends structure to DSLC

Learning Objectives

Introduction

After you read this chapter, you will be able to…

  • Explain what an API is.
  • Decide whether this book is for you.

Part 1: How can I interact with the web from R?

  • Fetch json-formatted data from the web.

  • Parse nested lists with the {tidyverse}.

  • Parse nested lists with {tibblify}.

  • Use an API’s OpenAPI description to determine the expected format of responses.

  • Parse API responses with {tibblify} and the response description.

  • Fetch data from an API with {httr2}.

  • Build a {httr2} request piece-by-piece.

  • Use API docs and OpenAPI descriptions to explore available endpoints.

  • Find authentication information in API docs.

  • Authenticate a request with a username and password.

  • Authenticate a request with an API key.

  • Authenticate a request with OAuth.

Part 1 Learning Objectives Brain Dump

  • Discover useful APIs
  • Fetch lots of data from APIs
  • Find specific APIs
  • Do other things (send/update/delete data) with APIs
  • Find R packages that wrap APIs
  • (Use other forms of APIs?)
  • Get web data without APIs ({rvest})
  • Learn more about accessing APIs

Part 2: How can I create my own APIs with R?

(not filling this out yet)