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
POST

Example request

POST /npm-pypi-package-stats/run
{
  "npmPackages": [
    "react",
    "vue"
  ],
  "pypiPackages": [
    "requests",
    "httpx"
  ],
  "maxItems": 20
}

What a response looks like

POST /npm-pypi-package-stats/run{"maxItems": 5, "npmPackages": ["react", "vue"], "pypiPackages": ["requests", "httpx"]}
{"count": 4, "items": [{ "author": null, "created": "2011-10-26T17:46:21.942Z", "dependencies": 0, "description": "React is a JavaScript library for building user int… "homepage": "https://react.dev/", "keywords": [  "react" ], "lastPublished": "2026-10-14T16:47:15.290Z", "latestVersion": "19.3.1", … ]}
React is a JavaScript li…0The progressive JavaS…5Python HTTP for Human…6The next generation HT…12
dependencies by description in this sample response
authorcreateddependenciesdescriptionhomepagelastPublished
2011-10-26T17:46:21.942Z0React is a JavaScript library for building use…https://react.dev/2026-10-14T16:47:15.290Z
Evan You2013-12-07T06:09:46.299Z5The progressive JavaScript framework for build…https://vuejs.org/2026-11-05T09:16:21.383Z
Kenneth Reitz <me@kennethreitz.org>6Python HTTP for Humans.2026-05-14T19:25:26.443000Z
Tom Christie <tom@tomchristie.com>12The next generation HTTP client.https://github.com/encode/httpx2024-12-06T15:37:21.509172Z

Real rows returned by this API on 2026-11-09 for the request shown.

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.

PackagesCost
1,000$0.40
10,000$4.00
100,000$40.00
1,000,000$400.00
2,500 a monthFree ($1 monthly credit)

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/npm-pypi-package-stats. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

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

New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

Tell us about your project

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

Want this data inside your own app or CRM? API integrations and data sync