Settings

Theme

Ask HN: How would you explain API to a non-technical person?

2 points by george0812 4 years ago · 6 comments


jka 4 years ago

A company's data is like a raw set of food ingredients - they harvest that data, and collect it in one or more places.

An API is like the restaurant menu - it presents you with the ways that the data can be prepared for you, based on the skills, experience and methods that the company has available.

For some of the menu items, you may be able to make specific requests (no dairy products, for example) - whereas other menu items may be more static.

If you had the raw data yourself, and seasoned chefs, there's a chance you could prepare the meals that you really want, regardless of whether they're available in the API offered to you.

This analogy isn't perfect and isn't worth trying to apply in-detail, but for a high-level non-technical audience it could work.

(an example flaw: paging through search results is a common API operation that wouldn't really have a sensible restaurant analogy. at best, ordering profiteroles from the kitchen one at a time, each time requesting the least recently prepared one, or something like that)

egfx 4 years ago

The ability to get a websites data. What data? That depends upon the parameters entered. Explain the Twitter api and how your able to change parameters like date and screenname to get specific tweets. This doesn’t exactly explain everything about an api but it covers the most popular case.

dossy 4 years ago

A description of an agreed upon way that two programs can exchange information.

marius_k 4 years ago

Non visual UI used by other computers or programs.

naragon 4 years ago

Data available via network endpoints which can be displayed in multiple user interfaces.

wruza 4 years ago

A set of questions or commands a program allows you to ask without using UI.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection