PyPI Stats

App · Analytics · 9 actions

Read PyPI download statistics from a workflow. Get a package's downloads over the last day, week and month, or its full daily series over the 180 days PyPI Stats keeps, with the total, the average per day, the busiest day and how the window compares with the one before it. Split those downloads by Python major version, by minor version to see whether 3.9 can be dropped, or by operating system to see which wheels are worth building. Compare several packages side by side, ranked with each one's share. Get a maintainer's summary in one step, check whether the latest downloads are a spike or a drop for an alert, and check when a package reaches a download milestone. Mirror traffic is excluded by default, so the figures are real installs. Every action reads: nothing here changes anything. No account or API key required.

Actions

ActionWhat it does
Check a download milestoneCheck whether a package's downloads in a day, any 7 days or any 30 days have reached a number, such as a million a month, and on which day they got there.
Check for unusual downloadsCheck whether a package's latest downloads are out of the ordinary, for an alert: a sudden spike when a big project starts depending on it, or a drop when an install breaks.
Compare packagesCompare the recent downloads of several packages side by side, ranked biggest first with each one's share of the total.
Get download historyGet a package's daily download series, up to the 180 days PyPI Stats keeps.
Get download summaryGet everything a maintainer's weekly or monthly report needs about a package in one step: downloads in the last day, week and month; the total and daily average over the days you choose, and how that compares with the same number of days before; the share coming from Python 3 and from Python 2, every Python version's share; and every operating system's share.
Get downloads by operating systemSplit a package's downloads by the operating system that asked for them: Windows, Linux, macOS (which PyPI records as Darwin), anything else, and the downloads that did not say.
Get downloads by Python major versionSplit a package's downloads by Python major version: how many came from Python 3, how many from Python 2, and how many from downloads that did not say which.
Get downloads by Python minor versionSplit a package's downloads by Python minor version: 3.13, 3.12, 3.11 and so on, each with its total and its share of the window.
Get recent downloadsGet how many times a package was downloaded from PyPI in the last day, the last week and the last month.

Check a download milestone

Check whether a package's downloads in a day, any 7 days or any 30 days have reached a number, such as a million a month, and on which day they got there. 'newly_reached' is true only on the first day the total reaches it in the days PyPI Stats keeps, so a workflow that runs daily celebrates once, not again each time a quiet weekend takes the total back under and the next day lifts it over. Also says how far there is to go and the best total in the days PyPI Stats keeps. Counted from the daily figures without mirror traffic. PyPI Stats keeps about six months, so all-time totals are out of reach. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
MilestonetargetnumberRequired
The number of downloads to check for, as a whole number.At least 1.
Counted overperiodtext
Whether the milestone is for a single day, any 7 days in a row or any 30 days in a row. Defaults to 30 days, the way PyPI Stats counts a month.One of: day (A single day), week (Any 7 days in a row), month (Any 30 days in a row). Default: month.

Outputs

best_datetext
The day that total ended on.
best_totalnumber
The highest such total in the days PyPI Stats holds.
checked_fromtext
The earliest day a total could be worked out for.
datetext
The latest day counted.
days_at_or_abovenumber
How many days in a row the total has been at or above it.
last_updatedtext
The latest day PyPI Stats has counted.
newly_reachedtrue/false
Whether the latest day is the first, in the days PyPI Stats keeps, that the total reached the milestone. True on one day only, so a daily alert that checks it fires once.
packagetext
The package, as PyPI Stats names it.
percent_of_targetnumber
The total as a percentage of the milestone.
periodtext
What the total covers: 'day', 'week' (7 days) or 'month' (30 days).
reachedtrue/false
Whether that total is at or above the milestone.
reached_ontext
The day the total got there and has stayed since, or empty.
remainingnumber
Downloads still needed, or 0 once reached.
targetnumber
The milestone checked against.
totalnumber
Downloads in the day, 7 days or 30 days up to that date.
urltext
The package's page on pypistats.org.
Example output
{
  "best_date": "2026-08-21",
  "best_total": 1814192430,
  "checked_from": "2026-05-07",
  "date": "2026-11-02",
  "days_at_or_above": 14,
  "last_updated": "2026-11-02",
  "newly_reached": false,
  "package": "requests",
  "percent_of_target": 107.56,
  "period": "month",
  "reached": true,
  "reached_on": "2026-10-20",
  "remaining": 0,
  "target": 1300000000,
  "total": 1398320602,
  "url": "https://pypistats.org/packages/requests"
}

Check for unusual downloads

Check whether a package's latest downloads are out of the ordinary, for an alert: a sudden spike when a big project starts depending on it, or a drop when an install breaks. The latest day is compared with the same weekday in earlier weeks, because downloads always fall at the weekend, or the latest 7 days with the weeks before. Comes back with the change in percent and a status of spike, drop or normal, so a condition only has to check 'unusual'. Mirror traffic is left out. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Checkcomparetext
Whether to check the latest day or the latest 7 days. A day reacts first; a week smooths out a quiet or busy day. Defaults to the latest day.One of: day (The latest day, against the same weekday in earlier weeks), week (The latest 7 days, against the weeks before). Default: day.
Weeks to compare withbaseline_weeksnumber
How many earlier weeks make up the usual level, from 1 to 12. More weeks are steadier; fewer follow a package that is growing. Defaults to 4.From 1 to 12. Default: 4.
Unusual at (%)threshold_percentnumber
How far above or below the usual level, in percent, counts as unusual. Downloads drift by several percent from week to week on their own, more for a small package, so 30 is a sensible start. A drop can be at most 100%, so above that only spikes are flagged. Defaults to 30.From 1 to 1000. Default: 30.

Outputs

baselinelist
The earlier stretches compared with, newest first.
baseline_downloadsnumber
The usual level: the average of the earlier stretches.
baseline_periodsnumber
How many earlier stretches that average is over.
changenumber
Downloads less the usual level.
change_percentnumber
That change as a percentage of the usual level.
comparetext
What was checked: 'day' or 'week'.
downloadsnumber
Downloads in what was checked.
end_datetext
The last day checked, which is the latest day counted.
last_updatedtext
The latest day PyPI Stats has counted.
packagetext
The package, as PyPI Stats names it.
start_datetext
The first day checked; the same as end_date for a day.
statustext
'spike', 'drop', 'normal' or 'not_enough_data'.
threshold_percentnumber
The change, either way, that counts as unusual.
unusualtrue/false
True for a spike or a drop: the field an alert checks.
urltext
The package's page on pypistats.org.
weekdaytext
That day's weekday, e.g. 'Monday', when a day was checked.
Example output
{
  "baseline": [
    {
      "downloads": 51837769,
      "end_date": "2026-10-26",
      "start_date": "2026-10-26"
    },
    {
      "downloads": 49455120,
      "end_date": "2026-10-19",
      "start_date": "2026-10-19"
    },
    {
      "downloads": 45752052,
      "end_date": "2026-10-12",
      "start_date": "2026-10-12"
    },
    {
      "downloads": 45763581,
      "end_date": "2026-10-05",
      "start_date": "2026-10-05"
    }
  ],
  "baseline_downloads": 48202130.5,
  "baseline_periods": 4,
  "change": 6338028.5,
  "change_percent": 13.15,
  "compare": "day",
  "downloads": 54540159,
  "end_date": "2026-11-02",
  "last_updated": "2026-11-02",
  "package": "requests",
  "start_date": "2026-11-02",
  "status": "normal",
  "threshold_percent": 30.0,
  "unusual": false,
  "url": "https://pypistats.org/packages/requests",
  "weekday": "Monday"
}

Compare packages

Compare the recent downloads of several packages side by side, ranked biggest first with each one's share of the total. Answers 'are we still ahead of them?' in one step rather than several. Between two and ten packages; a package PyPI Stats has no figures for is listed as missing rather than failing the step. No API key required.

Inputs

PackagespackageslistRequired
The packages to compare, between 2 and 10 of them. Spell them however you like: the same package named twice is only fetched once.
Compare overperiodtext
Which window the ranking uses. Each package's last day, week and month are all returned whichever you pick.One of: day (The last day), week (The last week), month (The last month). Default: month.

Outputs

foundtrue/false
leadertext
missinglist
package_countnumber
packageslist
periodtext
total_downloadsnumber
Example output
{
  "found": true,
  "leader": "requests",
  "missing": [],
  "package_count": 3,
  "packages": [
    {
      "downloads": 1284930112,
      "last_day": 42118904,
      "last_month": 1284930112,
      "last_week": 296443118,
      "package": "requests",
      "percent": 71.22,
      "rank": 1,
      "url": "https://pypistats.org/packages/requests"
    },
    {
      "downloads": 401118004,
      "last_day": 13204118,
      "last_month": 401118004,
      "last_week": 92884001,
      "package": "httpx",
      "percent": 22.23,
      "rank": 2,
      "url": "https://pypistats.org/packages/httpx"
    },
    {
      "downloads": 118070339,
      "last_day": 3884112,
      "last_month": 118070339,
      "last_week": 27118004,
      "package": "aiohttp",
      "percent": 6.54,
      "rank": 3,
      "url": "https://pypistats.org/packages/aiohttp"
    }
  ],
  "period": "month",
  "total_downloads": 1804118455
}

Get download history

Get a package's daily download series, up to the 180 days PyPI Stats keeps. Comes back with the total, the average per day, the busiest day, and the same figure for the equal window immediately before, so a step can say 'up 12% on the month before' rather than only quoting a number. Roll the rows up by week or month for a chart, or ask for no series at all when only the totals matter. Mirror traffic is left out by default. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Mirror trafficmirrorstext
Mirrors such as bandersnatch download every package on PyPI whether anyone uses it or not, so they are left out by default. Counting both keeps them on separate rows; the total then counts the with-mirrors figure once rather than adding it to a subset of itself.One of: exclude (Real users only: leave mirror traffic out), include (Everything: count mirror traffic too), both (Both, kept apart so you can see the difference). Default: exclude.
Fromstart_datedate
Only count downloads on or after this date. Leave empty to start at the earliest day PyPI Stats still holds, which is 180 days ago.
Toend_datedate
Only count downloads on or before this date. Leave empty to run up to the most recent day counted.
Roll the series up bygranularitytext
How much detail the returned series carries. Daily is one row per day, which is 180 rows over the full window; weekly and monthly roll those up; 'No series' returns the totals and the per-category split without any rows at all.One of: daily (Daily: one row per day), weekly (Weekly: rows start on a Monday), monthly (Monthly: one row per calendar month), none (No series: just the totals). Default: daily.

Outputs

average_per_daynumber
busiest_dayobject
categorieslist
data_availableobject
date_rangeobject
foundtrue/false
granularitytext
last_updatedtext
mirrorstext
packagetext
previous_periodobject
serieslist
total_downloadsnumber
urltext
Example output
{
  "average_per_day": 42831003.73,
  "busiest_day": {
    "date": "2026-08-11",
    "downloads": 51204884
  },
  "categories": [
    {
      "category": "without_mirrors",
      "downloads": 1284930112,
      "label": "Excluding mirrors",
      "percent": 100.0
    }
  ],
  "data_available": {
    "days": 180,
    "first_date": "2026-02-25",
    "last_date": "2026-08-23",
    "retention_days": 180
  },
  "date_range": {
    "days": 30,
    "first_date": "2026-07-25",
    "last_date": "2026-08-23"
  },
  "found": true,
  "granularity": "daily",
  "last_updated": "2026-08-23",
  "mirrors": "exclude",
  "package": "requests",
  "previous_period": {
    "change": 80811657,
    "change_percent": 6.71,
    "comparable": true,
    "downloads": 1204118455,
    "end_date": "2026-07-24",
    "start_date": "2026-06-25"
  },
  "series": [
    {
      "date": "2026-08-22",
      "downloads": 41882901
    },
    {
      "date": "2026-08-23",
      "downloads": 42118904
    }
  ],
  "total_downloads": 1284930112,
  "url": "https://pypistats.org/packages/requests"
}

Get download summary

Get everything a maintainer's weekly or monthly report needs about a package in one step: downloads in the last day, week and month; the total and daily average over the days you choose, and how that compares with the same number of days before; the share coming from Python 3 and from Python 2, every Python version's share; and every operating system's share. Two requests, made one after another. Every number, the last day, 7 days and 30 days included, is added up from PyPI Stats' daily figures and ends on the latest day it has counted, because its own figures for the last week and month can lag weeks behind. Mirror traffic is left out. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Days to coverdaysnumber
How many of the latest days the total, the shares and the comparison cover, from 1 to 180. Defaults to 30, a month.From 1 to 180. Default: 30.

Outputs

average_per_daynumber
The window's daily average.
date_rangeobject
The days the window covers.
foundtrue/false
Whether any daily figures fell inside the window.
last_daynumber
Downloads on the latest day counted.
last_monthnumber
Downloads in the 30 days to the latest day counted.
last_updatedtext
The latest day PyPI Stats has counted.
last_weeknumber
Downloads in the 7 days to the latest day counted.
packagetext
The package, as PyPI Stats names it.
previous_periodobject
The same number of days immediately before, for comparison.
python_2_percentnumber
The share made from Python 2.
python_3_percentnumber
The share of the window's downloads made from Python 3.
python_versionslist
Every Python version's downloads and share, most first.
systemslist
Every operating system's downloads and share, most first.
top_python_versiontext
The Python version with the most downloads, e.g. '3.12'.
top_python_version_percentnumber
That version's share, in percent.
top_systemtext
The operating system with the most downloads, e.g. 'Linux'.
total_downloadsnumber
Downloads in the window, added up from the daily figures.
urltext
The package's page on pypistats.org.
Example output
{
  "average_per_day": 46610686.73,
  "date_range": {
    "days": 30,
    "first_date": "2026-10-04",
    "last_date": "2026-11-02"
  },
  "found": true,
  "last_day": 54540159,
  "last_month": 1398320602,
  "last_updated": "2026-11-02",
  "last_week": 359652048,
  "package": "requests",
  "previous_period": {
    "change": 203028875,
    "change_percent": 16.99,
    "comparable": true,
    "downloads": 1195291727,
    "end_date": "2026-10-03",
    "start_date": "2026-09-04"
  },
  "python_2_percent": 0.3,
  "python_3_percent": 97.09,
  "python_versions": [
    {
      "category": "3.12",
      "downloads": 473481712,
      "label": "3.12",
      "percent": 33.86
    },
    {
      "category": "3.11",
      "downloads": 265200684,
      "label": "3.11",
      "percent": 18.97
    },
    {
      "category": "3.13",
      "downloads": 223121941,
      "label": "3.13",
      "percent": 15.96
    },
    {
      "category": "null",
      "downloads": 36436462,
      "label": "Unknown",
      "percent": 2.61
    },
    {
      "category": "2.7",
      "downloads": 4233205,
      "label": "2.7",
      "percent": 0.3
    }
  ],
  "systems": [
    {
      "category": "Linux",
      "downloads": 1338797028,
      "label": "Linux",
      "percent": 95.74
    },
    {
      "category": "Windows",
      "downloads": 33158133,
      "label": "Windows",
      "percent": 2.37
    },
    {
      "category": "Darwin",
      "downloads": 15882818,
      "label": "macOS",
      "percent": 1.14
    }
  ],
  "top_python_version": "3.12",
  "top_python_version_percent": 33.86,
  "top_system": "Linux",
  "total_downloads": 1398320602,
  "url": "https://pypistats.org/packages/requests"
}

Get downloads by operating system

Split a package's downloads by the operating system that asked for them: Windows, Linux, macOS (which PyPI records as Darwin), anything else, and the downloads that did not say. Each comes back with its total and its share, plus a daily series you can roll up by week or month. The step for deciding which wheels are worth building. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Operating systemssystemslist
Narrow the answer to particular operating systems. Leave empty for all of them, which is usually what you want since the shares only mean something against the whole.One or more of: Windows, Linux, Darwin (macOS (recorded as Darwin)), other (Other: anything else the download named), null (Unknown: the download did not say).
Fromstart_datedate
Only count downloads on or after this date. Leave empty to start at the earliest day PyPI Stats still holds, which is 180 days ago.
Toend_datedate
Only count downloads on or before this date. Leave empty to run up to the most recent day counted.
Roll the series up bygranularitytext
How much detail the returned series carries. Daily is one row per day, which is 180 rows over the full window; weekly and monthly roll those up; 'No series' returns the totals and the per-category split without any rows at all.One of: daily (Daily: one row per day), weekly (Weekly: rows start on a Monday), monthly (Monthly: one row per calendar month), none (No series: just the totals). Default: daily.

Outputs

average_per_daynumber
busiest_dayobject
categorieslist
data_availableobject
date_rangeobject
foundtrue/false
granularitytext
last_updatedtext
packagetext
previous_periodobject
serieslist
total_downloadsnumber
urltext
Example output
{
  "average_per_day": 42831003.73,
  "busiest_day": {
    "date": "2026-08-11",
    "downloads": 51204884
  },
  "categories": [
    {
      "category": "Linux",
      "downloads": 1102884001,
      "label": "Linux",
      "percent": 85.83
    },
    {
      "category": "Windows",
      "downloads": 92118004,
      "label": "Windows",
      "percent": 7.17
    },
    {
      "category": "Darwin",
      "downloads": 61003118,
      "label": "macOS",
      "percent": 4.75
    },
    {
      "category": "null",
      "downloads": 28924989,
      "label": "Unknown",
      "percent": 2.25
    }
  ],
  "data_available": {
    "days": 180,
    "first_date": "2026-02-25",
    "last_date": "2026-08-23",
    "retention_days": 180
  },
  "date_range": {
    "days": 30,
    "first_date": "2026-07-25",
    "last_date": "2026-08-23"
  },
  "found": true,
  "granularity": "daily",
  "last_updated": "2026-08-23",
  "package": "requests",
  "previous_period": {
    "change": 80811657,
    "change_percent": 6.71,
    "comparable": true,
    "downloads": 1204118455,
    "end_date": "2026-07-24",
    "start_date": "2026-06-25"
  },
  "series": [
    {
      "category": "Linux",
      "date": "2026-08-23",
      "downloads": 36118004,
      "label": "Linux"
    },
    {
      "category": "Windows",
      "date": "2026-08-23",
      "downloads": 3011884,
      "label": "Windows"
    }
  ],
  "total_downloads": 1284930112,
  "url": "https://pypistats.org/packages/requests"
}

Get downloads by Python major version

Split a package's downloads by Python major version: how many came from Python 3, how many from Python 2, and how many from downloads that did not say which. Each category comes back with its total and its share, plus a daily series you can roll up by week or month. The step for 'is anyone still on Python 2?'. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Python versionsversionslist
Narrow the answer to particular major versions. Leave empty for all of them, which is usually what you want since the shares only mean something against the whole.One or more of: 3 (Python 3), 2 (Python 2), null (Unknown: the download did not say).
Fromstart_datedate
Only count downloads on or after this date. Leave empty to start at the earliest day PyPI Stats still holds, which is 180 days ago.
Toend_datedate
Only count downloads on or before this date. Leave empty to run up to the most recent day counted.
Roll the series up bygranularitytext
How much detail the returned series carries. Daily is one row per day, which is 180 rows over the full window; weekly and monthly roll those up; 'No series' returns the totals and the per-category split without any rows at all.One of: daily (Daily: one row per day), weekly (Weekly: rows start on a Monday), monthly (Monthly: one row per calendar month), none (No series: just the totals). Default: daily.

Outputs

average_per_daynumber
busiest_dayobject
categorieslist
data_availableobject
date_rangeobject
foundtrue/false
granularitytext
last_updatedtext
packagetext
previous_periodobject
serieslist
total_downloadsnumber
urltext
Example output
{
  "average_per_day": 42831003.73,
  "busiest_day": {
    "date": "2026-08-11",
    "downloads": 51204884
  },
  "categories": [
    {
      "category": "3",
      "downloads": 1281003118,
      "label": "Python 3",
      "percent": 99.69
    },
    {
      "category": "2",
      "downloads": 3836882,
      "label": "Python 2",
      "percent": 0.3
    },
    {
      "category": "null",
      "downloads": 90112,
      "label": "Unknown",
      "percent": 0.01
    }
  ],
  "data_available": {
    "days": 180,
    "first_date": "2026-02-25",
    "last_date": "2026-08-23",
    "retention_days": 180
  },
  "date_range": {
    "days": 30,
    "first_date": "2026-07-25",
    "last_date": "2026-08-23"
  },
  "found": true,
  "granularity": "daily",
  "last_updated": "2026-08-23",
  "package": "requests",
  "previous_period": {
    "change": 80811657,
    "change_percent": 6.71,
    "comparable": true,
    "downloads": 1204118455,
    "end_date": "2026-07-24",
    "start_date": "2026-06-25"
  },
  "series": [
    {
      "category": "3",
      "date": "2026-08-23",
      "downloads": 41993118,
      "label": "Python 3"
    },
    {
      "category": "2",
      "date": "2026-08-23",
      "downloads": 122884,
      "label": "Python 2"
    }
  ],
  "total_downloads": 1284930112,
  "url": "https://pypistats.org/packages/requests"
}

Get downloads by Python minor version

Split a package's downloads by Python minor version: 3.13, 3.12, 3.11 and so on, each with its total and its share of the window. This is the step that answers 'can we drop support for 3.9 yet?' with a number instead of a guess. Comes with a daily series you can roll up by week or month. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Python versionsversionslist
Narrow the answer to particular minor versions, written as a major and a minor number: 3.12, 3.11. Use null for downloads that did not say which Python they were for. Leave empty for every version.
Fromstart_datedate
Only count downloads on or after this date. Leave empty to start at the earliest day PyPI Stats still holds, which is 180 days ago.
Toend_datedate
Only count downloads on or before this date. Leave empty to run up to the most recent day counted.
Roll the series up bygranularitytext
How much detail the returned series carries. Daily is one row per day, which is 180 rows over the full window; weekly and monthly roll those up; 'No series' returns the totals and the per-category split without any rows at all.One of: daily (Daily: one row per day), weekly (Weekly: rows start on a Monday), monthly (Monthly: one row per calendar month), none (No series: just the totals). Default: daily.

Outputs

average_per_daynumber
busiest_dayobject
categorieslist
data_availableobject
date_rangeobject
foundtrue/false
granularitytext
last_updatedtext
packagetext
previous_periodobject
serieslist
total_downloadsnumber
urltext
Example output
{
  "average_per_day": 42831003.73,
  "busiest_day": {
    "date": "2026-08-11",
    "downloads": 51204884
  },
  "categories": [
    {
      "category": "3.12",
      "downloads": 402118332,
      "label": "3.12",
      "percent": 31.29
    },
    {
      "category": "3.11",
      "downloads": 331209884,
      "label": "3.11",
      "percent": 25.78
    },
    {
      "category": "null",
      "downloads": 90112,
      "label": "Unknown",
      "percent": 0.01
    }
  ],
  "data_available": {
    "days": 180,
    "first_date": "2026-02-25",
    "last_date": "2026-08-23",
    "retention_days": 180
  },
  "date_range": {
    "days": 30,
    "first_date": "2026-07-25",
    "last_date": "2026-08-23"
  },
  "found": true,
  "granularity": "daily",
  "last_updated": "2026-08-23",
  "package": "requests",
  "previous_period": {
    "change": 80811657,
    "change_percent": 6.71,
    "comparable": true,
    "downloads": 1204118455,
    "end_date": "2026-07-24",
    "start_date": "2026-06-25"
  },
  "series": [
    {
      "category": "3.12",
      "date": "2026-08-23",
      "downloads": 13920114,
      "label": "3.12"
    },
    {
      "category": "3.11",
      "date": "2026-08-23",
      "downloads": 11002884,
      "label": "3.11"
    }
  ],
  "total_downloads": 1284930112,
  "url": "https://pypistats.org/packages/requests"
}

Get recent downloads

Get how many times a package was downloaded from PyPI in the last day, the last week and the last month. All three numbers come back every time; the period you choose picks which one lands in the single 'downloads' field, so a threshold or an alert has one number to read. Mirror traffic is already excluded, so these are real installs. The starting point for 'how is my package doing?'. No API key required.

Inputs

PackagepackagetextRequired
The PyPI package to read. Spell it however you like: Zope.Interface, zope_interface and zope-interface all reach the same package. Use __all__ for the totals across the whole of PyPI.
Headline periodperiodtext
Which window the single 'downloads' figure covers. The last day, week and month are all returned whichever you pick.One of: day (The last day), week (The last week), month (The last month). Default: month.

Outputs

downloadsnumber
foundtrue/false
last_daynumber
last_monthnumber
last_weeknumber
packagetext
periodtext
urltext
Example output
{
  "downloads": 1284930112,
  "found": true,
  "last_day": 42118904,
  "last_month": 1284930112,
  "last_week": 296443118,
  "package": "requests",
  "period": "month",
  "url": "https://pypistats.org/packages/requests"
}

On this page