6.4
What is an API?
Examples with a Run button are editable. Underlined terms open a short definition.
WHAT IS AN API?
-
👉 Application Programming Interface: Piece of software that can be used by another piece of software, in order to allow applications to talk to each other;
-
👉 There are be many types of APIs in web development:
- DOM API - Geolocation API - Own Class API - “Online” API
-
👉 “Online” API: Application running on a server, that receives requests for data, and sends data back as response;
-
👉 We can build our own web APIs (requires back-end development, e.g. with node.js) or use 3rd-party APIs.
Your last opened chapter is saved in this browser when local storage is available.
Discuss this section
Questions, corrections or a better example? Comments use GitHub Discussions.