Learn FastAPI with free notebooks
18 free video lessons that use FastAPI, each with a downloadable Jupyter notebook and, where needed, the dataset. Learn FastAPI by working through real examples.
About these FastAPI lessons
These 18 lessons come from 1 different course. The course with the most FastAPI lessons is FastAPI deep dive (18 lessons).
FastAPI is most often used here together with Pydantic, datetime, SQLAlchemy and asyncio.
Watch the video, then run the notebook yourself: changing the code and re-running it is the fastest way to learn.
Courses that use FastAPI
- FastAPI deep dive – 18 lessons
13 minFastAPI Tutorial #1: Getting Started — Build Your First Python API
14 minFastAPI Tutorial #2: Path & Query Parameters Explained
15 minFastAPI Tutorial #3: Request Bodies & Pydantic Models
16 minFastAPI Tutorial #4: Response Models & HTTP Status Codes
17 minFastAPI Tutorial #5: Data Validation with Pydantic
17 minFastAPI Tutorial #6: Path Operation Configuration & Better Docs
17 minFastAPI Tutorial #7: Dependency Injection with Depends()
17 minFastAPI Tutorial #8: Class-Based & Sub-Dependencies
16 minFastAPI Tutorial #9: Organising Routes with APIRouter
17 minFastAPI Tutorial #10: Middleware & CORS Setup
18 minFastAPI Tutorial #11: Error Handling & Custom Exceptions
16 minFastAPI Tutorial #12: Authentication Basics with OAuth2
16 minFastAPI Tutorial #13: JWT Authentication End to End

FastAPI Tutorial #14: Databases with SQLAlchemy

FastAPI Tutorial #15: Async & Background Tasks

FastAPI Tutorial #16: Real-Time WebSockets

FastAPI Tutorial #17: Testing FastAPI Apps with pytest

FastAPI Tutorial #18: Capstone — Production-Ready API
Frequently asked questions
Where should I start learning FastAPI?
Start with “FastAPI Tutorial #1: Getting Started — Build Your First Python API”, then work through the FastAPI deep dive course.
Are these FastAPI lessons free?
Yes. Every video, notebook and dataset on this site is free to use for learning.
Can I run the FastAPI notebooks without installing Python?
Yes. Open them in Google Colab, or use the Run in browser button where a lesson has one.