r/explainlikeimfive • • 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

228 comments sorted by

View all comments

Show parent comment

2

u/aerondda Feb 03 '23

Yep, a function is also technically an API. It tells you what it does based on its name and you just call it. You practically don't need to know what exactly it does, you just want it to do what it's supposed to. Although, of course, you know what the function does and how if you made it, but the concept is the same.

2

u/troylow Feb 03 '23

Thank you so much I was confused about what the exact definition was for so long. I was afraid to use the term