Skip to main content
All providers

PyPI

Developer

pypi.org

Python package metadata from PyPI: project and release details, requirements, distribution files and their hashes.

Capabilities (5)

GET /v1/data/pypi/distributions1 credit

Returns the PEP 691 Simple API document for a project: the complete ordered versions array, the project-status block (active, quarantined or archived), and every distribution file ever uploaded with its download URL, size, upload-time, hashes, requires-python, yanked flag, PEP 658 core-metadata digests and PEP 740 provenance URL when one exists.

name
GET /v1/data/pypi/project1 credit

Returns the full PyPI record for a project: an info block (summary, author, license, classifiers, requires_dist, requires_python, project_urls, yanked state), current owners and maintainers under ownership.roles, OSV vulnerabilities affecting the latest release, the latest release's files under urls, and the whole release history under the deprecated releases map.

name
GET /v1/data/pypi/provenance1 credit

Returns the PEP 740 provenance object for one uploaded distribution file: the attestation bundles with their Sigstore signatures, signing certificates and Rekor transparency-log entries, each bundled with the Trusted Publisher identity (for example the GitHub repository and workflow) that produced the file.

nameversionfilename
GET /v1/data/pypi/release1 credit

Returns the PyPI record for one pinned version of a project: that version's info block, the vulnerabilities known to affect that specific version, and only the sdist and wheel files published under it, each with URL, size, packagetype, python_version, SHA256/MD5/BLAKE2b digests, core-metadata digests and ISO upload timestamp.

nameversion
GET /v1/data/pypi/stats1 credit

Returns PyPI's own repository-wide storage figures: total_packages_size, the total bytes of all hosted distribution files, and top_packages, the 100 projects consuming the most storage, each with its size in bytes.

No parameters

Licence

you grant the PSF, its legal successors and assigns, and all other users of the Service an irrevocable, worldwide, royalty-free, nonexclusive license to reproduce, distribute, transmit, display, perform, and publish the Content, including in digital form.

https://policies.python.org/pypi.org/Terms-of-Service/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Python Package Index (PyPI)

Cache: up to 3600s