TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 george0812大约 3 年前

6 条评论

jka大约 3 年前
A company&#x27;s data is like a raw set of food ingredients - they harvest that data, and collect it in one or more places.<p>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.<p>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.<p>If you had the raw data yourself, and seasoned chefs, there&#x27;s a chance you could prepare the meals that you really want, regardless of whether they&#x27;re available in the API offered to you.<p>This analogy isn&#x27;t perfect and isn&#x27;t worth trying to apply in-detail, but for a high-level non-technical audience it could work.<p>(an example flaw: paging through search results is a common API operation that wouldn&#x27;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大约 3 年前
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大约 3 年前
A description of an agreed upon way that two programs can exchange information.
marius_k大约 3 年前
Non visual UI used by other computers or programs.
naragon大约 3 年前
Data available via network endpoints which can be displayed in multiple user interfaces.
wruza大约 3 年前
A set of questions or commands a program allows you to ask without using UI.