What is API?

1.91K viewsEngineeringOther

What is exactly API and why we call it like that? I am learning web development, and always come across APIs. I would love to learn it through an analogy.

In: Engineering

32 Answers

Anonymous 0 Comments

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

You are viewing 1 out of 32 answers, click here to view all answers.