PyPI StatsPyPI Stats
DiscoverCompareTrendingDashboard
PyPI Stats — Download analytics for Python packages
APIGitHubPrivacyTerms

Sign in to subscribe to our weekly trending newsletter.

Download data sourced from BigQuery (Google). Counts may include CI/CD and mirror traffic.
Inspired by and built upon the work of pypistats.org

API Documentation

Generate an API key from your dashboard. Free — 10 req/min · Pro — 60 req/min · Enterprise — 300 req/min.

Package Stats

Retrieve daily and weekly download counts for any Python package on PyPI. Filter by date range, Python version, installer, or operating system.

Trends & Compare

Fetch multi-package comparison data and growth trends. Identify which packages in your dependency tree are gaining or losing adoption.

Health Scores

Pull computed health scores and AI-generated summaries for packages. Integrate into CI pipelines to gate on dependency health.

Frequently Asked Questions

How do I authenticate API requests?

Pass your API key as an apikey query parameter or in the Authorization: Bearer header. Keys are generated and managed from your dashboard.

What date range is available?

Free accounts can query up to 30 days of history. Pro accounts get 90 days, and Enterprise accounts get unlimited history going back to when PyPI Stats began tracking the package.

Are download counts from PyPI's official data?

Yes. PyPI Stats ingests data from the official PyPI download dataset published by the Python Software Foundation. Data is refreshed daily and covers all installer types including pip, conda, and CI systems.

Can I exclude CI/CD traffic from counts?

Pro and Enterprise plans can filter out known CI/CD installers (GitHub Actions, CircleCI, Jenkins, etc.) to see organic developer adoption separate from automated pipeline traffic.

Loading API explorer…