What an API is
An application programming interface: a defined set of requests and responses that lets one program use the features or data of another program.
Understanding What an API is in VCE Software Development U4O1
What it does: requests.get(url) sends a request to the API, and the variable response stores what the API sends back. The contract says that sending a GET request with a city will return JSON. The caller does not need to know how the other program works inside. An API is an Application Programming Interface. It is how one program talks to another program. An API gives a program a defined way to ask for features or data from another program. It does not speed up the program. An endpoint is the address a program sends its request to, for example https://api.example.com/weather. The API contract sets out the rules: valid requests and the format of responses. The caller never sees or changes the internal code.
Common mistakes: The requests library has no fetch() function. A request to an API endpoint is made with requests.get(url), so the line should be response = requests.get(url). The module is called requests, with an s. Importing request causes a ModuleNotFoundError, so the program cannot send its request to the endpoint. It should be import requests.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 115–124) and word search (Modules 115–171).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
APIFill in the Blanks
Spot the Error
Student with a class code? Join your class →