Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Suggestion: Implement Token-Based Rate Limiting for api.npmjs.org It seems that the current rate-limiting for unauthenticated requests to api.npmjs.org often leads to issues like HTTP 429 errors and Cloudflare Error 1015, which disrupts many tools and scripts relying on this public data. To improve reliability, I suggest implementing an optional token-based authentication system similar to what other public APIs (e.g., GitHub API) use. Here’s how it could work:
Benefits:
This would go a long way in enhancing the user experience for both casual users and developers relying on API access for automation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
General
Body
Issue
The public NPM API (
api.npmjs.org), used for fetching data like download counts, currently implements strict rate limiting for unauthenticated requests. This frequently results in HTTP 429 Too Many Requests errors and Cloudflare Error 1015 pages, severely impacting legitimate tools and scripts that need to access this public data.Suggestion
Following the example of other public APIs (e.g., GitHub API), please consider implementing an optional token-based authentication system for
api.npmjs.org:Authorizationheader).Benefits
Thank you for considering this enhancement.
Beta Was this translation helpful? Give feedback.
All reactions