An API (Application Programming Interface) is a go-between that lets two applications exchange data without either needing to know how the other works inside. Almost every modern app — maps, payments, signing in with a Google account — works through APIs.
The most popular analogy is a restaurant: you, the guest, are the first app; the kitchen is the second app; and the waiter is the API. You simply name a dish, the waiter carries it to the kitchen, and brings back the result — without you ever needing to know how it was cooked.
In practice, an app sends a request to a specific API address and receives a response, usually in JSON format. Access is controlled with an API key so only authorized parties can use the service.
Mastering APIs is a milestone for new programmers: once you understand them, you can plug weather, payments, maps and AI services into your own app instead of building everything from scratch.