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

Show parent comment

1

u/johnpeters42 Oct 08 '26

Yeah, there are also APIs for programs on the same computer communicating with each other (which may also use IP or URLs, but not necessarily). Windows has APIs for programs to ask the operating system to do various things.

1

u/serverhorror Oct 08 '26

Every Operating system has those.

1

u/tcpukl Oct 14 '26

Just a header file in c/c++ is an API.