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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is there a model for a healthy, long-term API policy

7 点作者 forwardslash超过 11 年前
The APIs of companies like Twitter and Facebook seem to have a history of complaints from developers as they constantly change to the detriment of devs and the benefit of the company. There seems to be a cycle of openness at the start to encourage growth and then after some time the company with the API starts to make it more strict and tightens how devs can use it.<p>With all the lessons over the past few years, is there a model now for an API which can better maintain a good dev relationship without really hampering the company with the API?

2 条评论

johns超过 11 年前
This really depends on the type of business behind the API. Transactional API models have worked really well (Expedia affiliates, payment gateways, messaging). It&#x27;s really only been a problem for providers who didn&#x27;t properly align their interests with the consumer of the API meaning one side of the equation was getting far more value than they were contributing. This tends to be most common in consumer service APIs.<p>I wrote a little bit about this here: <a href="http://thenextweb.com/dd/2013/03/12/apis-are-dead-long-live-apis/" rel="nofollow">http:&#x2F;&#x2F;thenextweb.com&#x2F;dd&#x2F;2013&#x2F;03&#x2F;12&#x2F;apis-are-dead-long-live-...</a>
dorkitude超过 11 年前
To see a model for this, look to companies with B2B DNA. Facebook and Twitter are used to taking a &quot;PM knows best&quot; b2c approach, not a &quot;customers first&quot; perspective. Salesforce REST is a good example from larger companies (disclosure - my cofounder was one of it architects), and Stripe&#x27;s API is a great example from the startup world.<p>From studying these, I found that the best practices aren&#x27;t all that surprising: versioning, discoverability, and following HTTP standards.