04 — Web Scraping & APIs

Collecting data from the web using rvest and APIs.

Lecturer
Date

March 1, 2026

Whole lotta’ boxes.

This module covers web scraping with rvest, working with APIs, and the Billion Prices Project as a research application. Includes a practical exercise scraping IKEA Billy bookcase prices across countries.

Lecture slides

View fullscreen | Source

Code

Check the course repository for the R scripts.

Key packages: rvest, httr2, jsonlite

Further resources