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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Clever ways to handle API access but avoid signup?

1 点作者 dyml将近 5 年前
I’m working on an API to make it easier to try&#x2F;adopt a certain technology.<p>I want to reduce friction and barriers to try the API. I would like to avoid forcing the developer to sign up to get an API key.<p>Current ideas is to allow a developer to create there own API key on the first request, treating it like a secret.<p>However it would be good to have a way to contact the developer via email.<p>What are clever ways you’ve seen to reduce friction when trying an API?

2 条评论

bhargav将近 5 年前
Reducing friction is a good idea but I would argue that asking folks to generate and send you a secret is likely the same amount as them getting an API key that you generate for them. You’ll also run into uncertainties in secret key formats that are used by disparate clients.<p>If you really want to: One alternative would be to generate a random JWT while the developers are on the website and ask them to secure a given JWT by adding their email, doing on boarding that way.<p>Addendum: In terms of reducing friction, if this is going to be a paid API, I would suggest adding a free tier that allows N requests before you either rate limit or cut off, and send an email to ask for a conversion
评论 #24043011 未加载
zzo38computer将近 5 年前
You could require (or just request, if wanted) a &quot;From&quot; header in the HTTP request, perhaps, if you want to contact the user via email.