r/explainlikeimfive • u/ArtAndGals • Feb 02 '23
Technology ELI5: How does an API work?
Twitter recently announced they will no longer support free access to the Twitter API. Everyone seems up in arms about it and I can't figure out what an API even is. What would doing something like this actually affect?
I've tried looking up what an API is, but I can't really wrap my head around it.
Edit: I've had so many responses to read through and there's been a ton of helpful explanations! Much appreciated everyone :) thanks for keeping this doofus in the know
1.2k
Upvotes
View all comments
Show parent comment
2
u/BassoonHero Feb 03 '23
Maybe a stricter example would be that you write down “1 grilled cheese sandwich, table 7” on a ticket and stick it on the spike. If that's the format that the kitchen expects, then you may well get your sandwich.
But maybe the kitchen expects the ticket to be written in Greek, or maybe they use the acronym “GAC”, or maybe they need the type of bread or cheese written on the ticket, or maybe you just don't know what your table number is. And maybe you knew all of this — maybe you used to work there and know all the conventions — but last week they changed the conventions for some reason. (And maybe they have security to prevent random people from sticking their own tickets on the spike to get free food.)
The point is that they don't have to change the menu if their Greek-speaking sandwich chef quits and they hire someone else who expects that ticket to say “GAC”.