r/eli5_programming • u/Magpie_Reawakened • Oct 07 '26
Question What actually is API?
The moment I think I get it, another definition of it comes in. I was learning Flask APIs used with GET PUT PATCH DELETE . But then I started with JS , it has DOM APIs . And then API is also used when people say companies like ChatGPT , Higgsfield etc provide their APIs.
6
Upvotes
View all comments
Show parent comment
1
u/Magpie_Reawakened Oct 09 '26
Ok that made a lot of sense. So, can I think of the API provided by ChatGPT is a URL also then as your first line says. When I use an AI Assistant chatbot on my website, and someone clicks on it, because I used the API in my source code, any text that someone sends to the Chatbot is created into a URL, like GET/api/query/"what can I do with this app" kind of?