Google Interview Question

How would you explain what an API is to a completely non-technical person?

Interview Answer

Anonymous

Oct 23, 2014

An API is like a vending machine. You want something from the program, but you don't need to be familiar with the internal machinery to obtain it. All you need to know is the right code that gives you the right product. Also some vending machines are coin operated, some also work with bills, some accept credit cards, and some are "Hug Me"'s. A restful API is definitely a Hug Me machine!