In interview questions I ask people to explain an API to someone non technical. It’s amazing how few great developers can do this.
It’s how computers talk to each other.
For a slightly more complicated answer:
One computer provides a service for others, perhaps translation.
The API is the rules for how to use that service.
So it might say you need to provide text and Lang in a querystring like this:
http://translate.com?text=hello&lang=Spanish
And the computer will reply result=hola
Latest Answers