r/AskProgramming • u/cellwall-999 • 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
2
u/McMasilmof Mar 26 '20
APIs are not 'one thing' that work the same everywhere. Any program can have an API, that just means that there is an easy way to interact with it.
Most APIs are web-based (and the most common is probably REST - but thats just a design pattern)
Foe example if you want to write a twitter bot, you can write a bot that opens a browser, types some credentials and presses the login butron etc. With the twitter API you can do these things without opening a browser, but you will just send a loginrequest or tweet to some URL.