PyPI

Badges for Python packages — version, downloads, license, and Python version.

Display live stats for any package on PyPI.

pypi version
Version (branded)
pypi downloads
Monthly downloads
pypi license
License (outline)
python version
Python version

Available badges

BadgeEndpointDescription
Version/pypi/{package}Latest version
Downloads/pypi/dm/{package}Download counts (day/week/month)
License/pypi/license/{package}Package license
Python Version/pypi/python/{package}Required Python version

Quick examples

![version](https://shieldcn.dev/pypi/requests.svg)
![downloads](https://shieldcn.dev/pypi/dm/requests.svg)
![license](https://shieldcn.dev/pypi/license/flask.svg)
![python](https://shieldcn.dev/pypi/python/django.svg)

Data source

No API key required. Cached 1 hour.

Endpoint details

Use these sections when you need the exact URL shape or a focused example for a specific badge type.

PyPI Downloads

This section covers the pypi/downloads badge endpoint.

Show daily, weekly, or monthly download counts.

GET/pypi/dm/:package.svg

Path Parameters

required
![badge](https://shieldcn.dev/pypi/dm/requests.png)
badge preview

URL formats

PeriodEndpoint
Daily/pypi/dd/{package}
Weekly/pypi/dw/{package}
Monthly/pypi/dm/{package}

Examples

monthly downloads
Monthly (default)
monthly downloads
Monthly (secondary)
weekly downloads
Weekly (outline)
monthly downloads
Monthly (branded)

Copy-paste examples

Secondary — monthly download count from pypistats

![pypi downloads](https://shieldcn.dev/pypi/dm/requests.svg?variant=secondary)

Branded — PyPI brand color

![pypi downloads](https://shieldcn.dev/pypi/dm/requests.svg?variant=branded)

PyPI License

This section covers the pypi/license badge endpoint.

GET/pypi/license/:package.svg

Path Parameters

required
![badge](https://shieldcn.dev/pypi/license/flask.png)
badge preview

URL format

/pypi/license/{package}.svg

Examples

license
Default variant
license
Secondary variant
license
Outline variant
license
Ghost variant

Copy-paste examples

Outline — subtle license badge for package metadata

![pypi license](https://shieldcn.dev/pypi/license/flask.svg?variant=outline)

Ghost — minimal metadata badge for footer rows

![pypi license](https://shieldcn.dev/pypi/license/flask.svg?variant=ghost)

Python Version

This section covers the pypi/python badge endpoint.

GET/pypi/python/:package.svg

Path Parameters

required
![badge](https://shieldcn.dev/pypi/python/django.png)
badge preview

URL format

/pypi/python/{package}.svg

Examples

python version
Default variant
python version
Secondary variant
python version
Outline variant
python version
Branded variant

Copy-paste examples

Secondary — required Python version

![python version](https://shieldcn.dev/pypi/python/django.svg?variant=secondary)

Branded — PyPI brand color

![python version](https://shieldcn.dev/pypi/python/django.svg?variant=branded)

PyPI Version

This section covers the pypi/version badge endpoint.

Show the current published version of a Python package.

GET/pypi/:package.svg

Path Parameters

required
![badge](https://shieldcn.dev/pypi/requests.png)
badge preview

URL formats

/pypi/{package}.svg
/pypi/v/{package}.svg

Examples

pypi requests
Default variant
pypi requests
Branded (PyPI blue)
pypi requests
Secondary variant
pypi requests
Outline variant