What is an API?
An API (Application Programming Interface) is an interface through which programs communicate with each other without human intervention. It defines what queries can be made, the format of the response, and what operations can be performed. A single address in an API to which a specific query is sent is called an endpoint.
In ecommerce, the store uses an API to connect to the ERP system, warehouse, payment processors, and couriers. In a store with a separate front end - such as a PWA - the API is the only way the front end receives products, prices, and the shopping cart from the backend. Therefore, what the front end can display at all depends on what the API provides and how quickly it responds.