npm & PyPI Package Stats Scraper (Downloads, Versions, Repos) avatar

npm & PyPI Package Stats Scraper (Downloads, Versions, Repos)

Pricing

Pay per usage

Go to Apify Store
npm & PyPI Package Stats Scraper (Downloads, Versions, Repos)

npm & PyPI Package Stats Scraper (Downloads, Versions, Repos)

Search npm or look up npm and PyPI packages via the official registry APIs: weekly and monthly downloads, versions, release dates, license, GitHub repo, maintainers.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Hussain Ali

Hussain Ali

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 hours ago

Last modified

Features

Limited permissions

Share

Get download counts, latest version, release dates, license, GitHub repo, maintainers and dependencies for npm and PyPI packages in one dataset. Search npm with the same query syntax as npmjs.com, or paste exact package names for npm and PyPI.

  • Uses the official npm registry, npm downloads API, PyPI JSON API and pypistats.org. No login, no API key, no proxies, no browser.
  • npm search with qualifiers: keywords:, author:, maintainer:, scope:, not:deprecated.
  • Daily, weekly and monthly downloads for both ecosystems.
  • Release history: first publish date, number of versions, last release and days since last release.
  • Missing packages are reported with found: false instead of failing the run.

What can you use it for?

  • Developer tool market research: size a niche (for example every package tagged keywords:web-scraping) by downloads and dependents.
  • Competitor tracking: compare your library with alternatives every week. Schedule it and send the results to Google Sheets.
  • Dependency audits: spot abandoned or deprecated dependencies (daysSinceLastRelease, deprecated) and license mix.
  • DevRel and sponsorship lead lists: find popular packages with their GitHub repo and maintainers.
  • Investors and analysts: follow open-source adoption of a company's SDKs on npm and PyPI.
  • Content and newsletters: rank the fastest-growing packages in a category.

Input

FieldTypeDefaultDescription
npmSearchstringnpm search query, e.g. keywords:react hooks, author:sindresorhus, scope:aws-sdk
npmPackagesstring list[]Exact npm names, e.g. react, @nestjs/core
pypiPackagesstring list[]Exact PyPI names, e.g. requests, fastapi
includeHistorybooleantrueFetch first publish date and version count for npm
includeDownloadsbooleantrueFetch daily, weekly and monthly downloads
maxItemsinteger100Max packages taken from the npm search (up to 5,000)

Example input: compare frameworks across ecosystems

{
"npmPackages": ["react", "vue", "svelte", "@angular/core"],
"pypiPackages": ["django", "flask", "fastapi"]
}

Example input: map a niche on npm

{ "npmSearch": "keywords:web-scraping not:deprecated", "maxItems": 250 }

Output

FieldDescription
ecosystemnpm or pypi
name, version, descriptionPackage name, latest version and summary
foundfalse when the package does not exist
licenseLicense (SPDX when available)
homepage, repository, githubRepoLinks, plus owner/repo for GitHub-hosted code
author, authorEmail, maintainersAs published in the package metadata
keywordsPackage keywords
dailyDownloads, weeklyDownloads, monthlyDownloadsDownload counts
dependentsDependent packages (npm search results)
dependenciesCountRuntime dependencies of the latest version
versionsCount, createdAt, lastPublished, daysSinceLastReleaseRelease history
requiresPython, nodeEnginesRuntime requirements
deprecatednpm deprecation message
typesnpm package ships TypeScript types
searchScorenpm search relevance
urlnpmjs.com or pypi.org page

Example output item

{
"ecosystem": "pypi",
"name": "fastapi",
"found": true,
"version": "0.162.2",
"description": "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
"license": "MIT",
"repository": "https://github.com/fastapi/fastapi",
"githubRepo": "fastapi/fastapi",
"author": "Sebastián Ramírez",
"dailyDownloads": 12717908,
"weeklyDownloads": 126820280,
"monthlyDownloads": 381578963,
"dependenciesCount": 6,
"versionsCount": 361,
"createdAt": "2018-12-08T08:14:13.103167Z",
"requiresPython": ">=3.10",
"url": "https://pypi.org/project/fastapi/"
}

FAQ

Can it search PyPI? PyPI has no official search API, so PyPI packages are looked up by exact name. npm supports full search.

Where do PyPI downloads come from? From pypistats.org, which aggregates the official PyPI BigQuery download data. Requests are spaced out to respect its limits.

Why is a run with huge npm packages slower? includeHistory downloads the full registry document to count versions. Packages like react have thousands of versions. Turn it off for faster runs.

Why is dailyDownloads empty for npm search results? Search results already include weekly and monthly downloads from npm, so the actor skips extra calls to the rate-limited downloads API. Daily counts are filled for packages you list by name.

Do I need an npm or PyPI account? No. Everything comes from public, documented APIs.

What about personal data? Author names and emails are included only as published by maintainers in public package metadata. Use them responsibly and in line with privacy laws such as GDPR.