Pushbuild

npm & PyPI Package Stats - Downloads, Versions & Metadata

Download counts (daily, weekly, monthly and 12-month history), latest version, license, repository, maintainers, dependencies and release dates for any npm or PyPI package, plus npm search. Compare libraries in one call.

$0.40 per 1,000 packages

Get an API key

What it returns

Compare open-source packages across npm and PyPI in one call.

Common uses

Library selection, developer-tool market research, competitor tracking for dev products, dashboards. Pay per package.

Request

POST https://api.pushbuild.com/npm-pypi-package-stats/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
npmPackageslist of stringsPackage names, scoped ones too (@types/node).
pypiPackageslist of stringsPython package names.
npmSearchstringFind npm packages by keyword and return stats for the top results.
maxSearchResultsintegerPackages to return from the npm search. Default: 20.
includeHistorybooleanAdd downloads per month for about the last year (npm) or 6 months (PyPI). Default: false.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/npm-pypi-package-stats/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"npmPackages": ["react", "vue"], "pypiPackages": ["requests", "httpx"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.40 per 1,000 packages. No charge for errors or empty searches.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.