I have been coding for quite a while on Python now but never fully understood, given an example, what an API is.
Things I've heard:
- It something that defines the interaction between multiple software intermediaries
- A software intermediary that allows two applications to "talk" to each other
But what I'm not getting is this: what is "talking" here? Are we only referring to sending HTTPS requests? Is it a library or collection of libraries? What qualifies as being an API?
I once had to gather some information off of a server (I'm not sure of the technical terms here) from a website made by Django. I had to do this through an API. How I actually did it, with Python, was by using a library called requests
. Is this library an API?
Another example is with Google's OCR Tesseract, wherein its documentation they mention that "Developers can use libtesseract
C or
C++ API to build their own application." What is API referring to here?
If someone can help me put this all into context, it would make my week.