r/AskProgramming • • Mar 26 '20

APIs Explained ...

I dunno but I don't understand APIs fluently. Does anyone know of an informative article or perhaps a website or just personally explain to me frankly wtf APIs are an why we need them ...

Edit: Thanks everyone for your empathetic contributions. Guess what; I have a better understanding of APIs now than I did before.

53 Upvotes

60 comments sorted by

View all comments

2

u/TheActualMc47 Mar 26 '20

The "I" gives it away. API stands for "application programming interface", imagine that you have a service or an application running somewhere: for example, you have an online multi-player game running on a server. Of course, you can login to the game and see your items and your stats. For the sake of example, this is a PC game with no mobile support. You also have certain items that you can craft, but that takes a long time, and you don't want to always open your computer to check. Luckily, the game has a public API: for example, you can send a request to a certain URL, with certain options, and you get how much time is left on your items. With that, you build a mobile app to check for your items through your phone.

Tl;dr: it's an interface to use services from another application from a third party, which you can interact with "programmatically"