Functions and APIs — the building blocks of modern software
Write reusable code that can talk to real services on the internet.
Once your child can write a function and call an API, they can build almost anything. In API Adventures, Leah teaches both at once: functions as packaged behaviour, and APIs as the public-facing front door to other people's services.
Difficulty: Intermediate Time: 15 min Reward: 250 XP
What your child will learn
- Write a function with parameters and a return value
- Understand the difference between defining and calling a function
- Read JSON without panicking
- Make an HTTP request and use the response
- Recognise REST patterns (GET, POST, PUT, DELETE)
What parents should know
- Age: 13+
- Time: About 15 minutes
- Difficulty: Intermediate
- Prerequisites: Recommended after Python and Loops.
- Safety: All API calls go to safe, public, child-appropriate services. No external accounts required.
Parent FAQ
- Is API a hard concept for an 13-year-old?
- Not the way we teach it. We literally show two systems shaking hands across the internet, then write the code.
- Why functions and APIs in the same mission?
- Because in real code, you almost never call an API without wrapping it in a function. Teaching them together is more honest and more useful.
- Will they learn JavaScript or Python here?
- Examples are JavaScript-flavoured but the patterns transfer. Players who prefer Python can ask Leah to switch.
- Is this required for the final mission?
- It's strongly recommended. The Gemini Awakening capstone uses functions extensively.
Start API Adventures →
See all 12 missions