When a request is made on a website, an API allows the application to read the database, retrieve information from the relevant tables in the database, process the request and return an HTTP-based response to the web template, which is then displayed in the web browser