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.
| Field | Type | Description |
|---|---|---|
npmPackages | list of strings | Package names, scoped ones too (@types/node). |
pypiPackages | list of strings | Python package names. |
npmSearch | string | Find npm packages by keyword and return stats for the top results. |
maxSearchResults | integer | Packages to return from the npm search. Default: 20. |
includeHistory | boolean | Add downloads per month for about the last year (npm) or 6 months (PyPI). Default: false. |
maxItems | integer | Maximum 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.
Related APIs
Academic Papers Search API
Search scholarly papers across Crossref (150M+ works), arXiv and PubMed in one run.
Article & Web Page to Markdown API
Turn any URLs into clean, Markdown, text or JSON.
Book Search API
Search millions of books by keyword, title, author, subject or ISBN, plus author lookup.
College Scorecard: US Colleges, Costs, Earnings by Major API
Every US college from the Department of Education College Scorecard: admission rate, SAT/ACT, tuition, net price, completion and retention, median debt and graduates' earnings, plus program-level (major) debt and earnings 1 to 5 years after graduation..
Currency Exchange Rates API
Official European Central Bank reference exchange rates for 30+ currencies, daily since 1999.
CVE Vulnerability Lookup: NVD, CISA KEV, EPSS, OSV API
Look up CVEs by ID or keyword, or check open-source packages for known vulnerabilities.
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