r/eli5_programming • • Oct 07 '26

Question What actually is API?

The moment I think I get it, another definition of it comes in. I was learning Flask APIs used with GET PUT PATCH DELETE . But then I started with JS , it has DOM APIs . And then API is also used when people say companies like ChatGPT , Higgsfield etc provide their APIs.

6 Upvotes

25 comments sorted by

View all comments

1

u/omniuni Developer Oct 08 '26

An API is basically the agreed upon language that computer programs use to talk to each other. The Flask API uses a common approach (REST) and builds on it.

Slightly more technical, if we agree that if I call a certain function I will get a specific reply, we have created an API.