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
12
u/Slypenslyde Feb 02 '23
Think of it like a good backdoor way to search for things. If I'm using the Twitter client and I want to ask, "Does anyone I follow say they like soccer in their bio?" that would be hard to do. I'd have to click on each individual person I follow and read their bio. With the API, I could write a program to do that for me and show me just the people I follow who like soccer.
Some people make money off it because the API is a better way to get a bot to read tweets. But a lot of people use the API for fun projects like "this account posts a random frame from Teenage Mutant Ninja Turtles once an hour". Or they make a tool to try to find people with interests like yours. Or they're something complex like the site "If This Then That" where you can build complex things like "If I like a tweet with an image in it, save the image to this Dropbox folder."
All of that is going to cost money now. This is Twitter closing off their site and becoming more like Facebook. It'll chase away all the fun projects and the majority of people using the API will be advertisers.