Lesson 1 of 2Module 2 · 0% of course
SQL & APIs · APIs

HTTP APIs & JSON

How apps talk: requests, status codes, JSON bodies, and calling an API from Python.

15 min · 4 steps · videoJump to quiz ↓
Episode #1: EVE - RESTful APIs for humans Talk Python · 41 min
Open in YouTube
Step 1 of 4 · Overview15 min read ·
Client
your script
→
Request
GET /trades?date=…
→
Server
API
→
Response
200 + JSON body
StatusMeaning
200OK
201Created
400Bad request (your input)
401/403Not authenticated / not allowed
404Not found
429Rate limited: slow down
500Server error
import requests
r = requests.get("https://api.example.com/trades", params={"date": "2026-10-14"}, timeout=10)
r.raise_for_status()       # error on 4xx/5xx
trades = r.json()
Key idea
Always set a timeout and handle 429 with backoff. An LLM API is just another HTTP API.
Next: Practice
‹ PrevNext ›