← All APIs

npm API

2 endpoints returning npm data as JSON, with the same API key, response envelope and credits as every other serpfast API.

Endpoints

PathDescription
/npm/packagePackage · Get an npm package version and its dependencies.
/npm/searchSearch · Search npm packages by keywords and qualifiers.

Example request

Package
curl "https://serpfast.com/api/v1/npm/package?package=requests" \
  -H "Authorization: Bearer $SERPFAST_KEY"

Pricing

One credit per request on every npm endpoint. Failed requests are refunded automatically. Start with 5,000 free credits.

价格

More Developer & content APIs