Npmjs.com 的建议 API 上有 Cloudflare 验证码。

1作者: sroussey大约 1 个月前原帖
是的,这意味着他们的搜索框出现了问题。如果在搜索时没有看到任何建议,您必须点击按钮以加载一个新的页面来显示搜索结果,该页面也有一个验证码,但它是一个 HTML 页面,因此您可以点击它。之后,建议 API 将停止返回 HTML,而是开始返回 JSON 格式的建议。
查看原文
Yes, this means their search box is broken. If you see no suggestions when searching, you must click the button to load a new page with search results, which also has a captcha, but it is a html page so you can click it. After that, the suggestions api will stop returning html and start returning json for suggestions.