documentation icon indicating copy to clipboard operation
documentation copied to clipboard

NPM API

Open LoryPelli opened this issue 8 months ago • 4 comments

I'd like to know more about NPM API endpoints, Using x-spiferack: 1 which is actually used by NPM itself gives JSON response, but I think there is also another API to get users and package dependants (but I didn't find anything) could you please help?

LoryPelli avatar Jun 29 '25 08:06 LoryPelli

I'd like to know more about NPM API endpoints, Using x-spiferack: 1 which is actually used by NPM itself gives JSON response, but I think there is also another API to get users and package dependants (but I didn't find anything) could you please help?

h

raza5911 avatar Jul 08 '25 07:07 raza5911

NPM provides a public registry API, but it doesn’t officially expose endpoints for dependents or users. The x-spiferack: 1 header is an internal, undocumented API used by the npm website to fetch JSON data like dependents. It works, but it’s unreliable and may break anytime. For metadata (versions, dist-tags, downloads), you can use the official registry endpoints. For private packages, authenticated users can fetch their own package list. If you need dependents or popularity data, developers usually combine x-spiferack, the search API, or rely on third-party services like npms.io or Libraries.io, which provide more stable package insights.

saurabhnivotime avatar Aug 22 '25 10:08 saurabhnivotime

ফোনের স্ক্রিন কোন কাজ করে না

helphsvsisbijd-maker avatar Sep 15 '25 17:09 helphsvsisbijd-maker

__ইনফিনিক্স আইডির ফরগেট মারবো কিভাবে

helphsvsisbijd-maker avatar Sep 15 '25 17:09 helphsvsisbijd-maker