Start here
An API is a set of requests a server promises to answer: send GET /menu and you'll get the menu.
Most APIs send their data as JSON, a simple text format that every programming language can read. It looks like this:
{ "name": "Flat white", "price": 3.2 }
An API's documentation tells you which requests it answers, and what comes back.