Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lesson 4 — Data Collection with APIs

Why this matters

Analytics and AI are only as good as the data pipeline behind them. A large part of professional work is:


Three ways to get data (concept map)

Today’s choice: OWID datasets (file-based, reproducible)

OWID offers high-quality public datasets with clear metadata and regular updates. We will treat OWID as a model for good practice:


What to document (Data Source Note)


Mini case: a business/econ question using OWID

Example questions (choose one):


Mini-lab (Google Colab)

In-class checkpoints

  1. Load an OWID dataset into a DataFrame.

  2. Filter for 3–5 countries and a time range.

  3. Produce one plot and one summary table.

  4. Write a Data Source Note and one limitation.


AI check (responsible use)


Review questions (quiz / reflection)

  1. When is an API better than downloading a CSV?

  2. What must be included in a Data Source Note for reproducibility?

  3. Give one limitation of cross-country comparisons using public datasets.