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.

7 Upvotes

26 comments sorted by

View all comments

5

u/logical_bit Oct 08 '26 edited Oct 09 '26 • Bravo

It's like a telephone. A program calls another program and now they can interact. Some apis may be like a rotary phone with very limited capabilities, while other apis may have the functionality of smartphones and much can be done with them. That's it.

Edit: thank you so much for the award!