Learn what APIs are and how to use them. Build programs that leverage real AI capabilities.
You can preview the lesson titles below, but you'll need to enroll to access the full content.
Discover how programs talk to other programs — the request and response cycle — and write your very first mock API in Python
Discover that JSON — the format APIs send data in — is really just a Python dictionary in disguise, and learn to safely read values out of nested mock API responses
Get full access to all 8 lessons in Year 2 Term 6: Working with APIs.
Book a Class →Become the server! Write mock API service functions that take a request and return a response dict — the weather, joke, and fact tools your AI assistant will use later this term
Learn how real APIs report success and failure with status codes (200, 404, 500), upgrade your mock API to send status + data, and write a client that handles every response without ever crashing
Teach your assistant to understand what a user WANTS — build detect_intent to read a message, spot the intent, and route it to the right mock API
Combine your mock API services, your intent brain, and a chat loop into one working AI-style assistant — BrightBot — that answers about weather, jokes, and facts
Upgrade your Week 6 assistant into a personalised, polished helper — it remembers your name and favourite city, has its own personality and voice, offers new services, and never, ever crashes
Term 6 finale — demo your AI-powered assistant live, give peer feedback, ace a fun APIs quiz, earn the API Master Badge, and celebrate finishing Term 6