We tend to divide web applications into two halves: the frontend and the backend. The backend’s responsibilities are storing, sorting, and retrieving information; performing periodic tasks, like sending automated emails, or generating monthly or weekly reports; and delivering data in response to requests by the frontend.

An API is where the backend and the frontend meet; it’s a set of very specific requests the frontend can make in order to make the backend answer questions or take actions.