Get your API key

Lesson 1 of 5

Ask for the data first

The data ladder: downloads, official APIs and feeds before any scraping, and how to ask the owner when nothing fits.

7 min Free

This course is general information for learning, not legal advice. For business use of collected data, ask a lawyer.

One step at a time, like flipping pages.

By the end of this lesson you will know the four ways to get data from a website, in the order you should try them, and you will try the easiest way first before anyone writes a scraper.

You need: a browser and a Google account (for Google Sheets) · Time: 7 minutes

  1. Neha is a BBA student in Pune. For her project she needs rainfall numbers for every state, and the prices of 50 books from an online store. Copying them by hand would take a whole weekend. Five words help her think about it:

    • Web data: any information shown on a website: prices, tables, lists, numbers.
    • CSV: a plain file of rows and columns separated by commas. Excel and Google Sheets open it directly.
    • API: a door a website builds on purpose so programs can ask for its data and get a clean answer.
    • JSON: the text format most APIs answer in, with labels and values, like "price": 51.77.
    • Scraping: a program that opens web pages like a browser and copies data out of them.
    Why?

    With an AI agent, writing a scraper takes five minutes, so it's tempting to start there. But scraping is the slowest, most fragile and most risky way to get data. Knowing the other ways saves you time and trouble.