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
4
u/EatDiveFly Feb 02 '23
That's an excellent metaphor! But I think if you walked to the kitchen instead of her and yelled "gimme a grilled cheese sandwich" you'd get the same result as if she did it. So she's not entirely necessary, or adding value. other than walking and carrying. But you already know how to interact with the back.
So maybe it's a restaurant owned and staffed entirely by greeks, and you don't speak greek but the waitress does, and you ask for grilled cheese sandwich, she walks to the back and speaks to the cooking staff in their language. Then she gets the product and brings it to you.
You don't have to speak greek to get your food.