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
3
u/frostbyte650 Mar 26 '20 edited Mar 26 '20
Yes web APIs basically are the internet so without a connection your device has no way of telling the API server you want to do something
Think about it like this:
A web API is a program running on a literal machine in a datacenter somewhere. Your internet connection connects your device to that machine.
If you want to get technical then you could actually launch a server on a computer on your home network & as long as you’re connected to the same network on your other device you could access that API even if you couldn’t access the World Wide Web. This is generally known as LAN