> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# PyPI

> Python Package Index metadata: a project's latest info, every release and file with hashes, known vulnerabilities, the simple index, and PyPI-wide size stats.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/_default.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=951f11a0968af0d8747e234a1ec1f32c)

[Web Catalog · Developer](https://docs.webrouter.net/data-apis.md?category=developer)

No key needed

Endpoints

5

Auth

None

[Vendor docs](https://docs.pypi.org/api/) · Serves `pypi.org`

## Notes

* Keyless. JSON and Index responses are CDN-cached and not rate limited at the edge, but PyPI asks for a unique User-Agent with contact details, serial requests over time rather than thousands in minutes, and may block abusive clients.
* Responses carry an ETag; respect it on repeated requests. For watching new releases PyPI recommends its RSS feeds.
* In the JSON API, downloads is always -1, has\_sig always false and bugtrack\_url always null; the project-level releases key is deprecated in favour of the Index API.

## Endpoints

GET

Get a project

Latest-version metadata (summary, license, requires\_dist, project URLs), every release's files with hashes, and vulnerabilities of the latest release.

[Open](#pypi-project-get)

GET

Get one release of a project

Metadata, files and known vulnerabilities of one version.

[Open](#pypi-release-get)

GET

List a project's distribution files

Every wheel and sdist URL of a project with hashes, from the PEP 503/691 index.

[Open](#pypi-simple-project)

GET

List every project

The names (and last serials) of all projects on PyPI.

[Open](#pypi-simple-list)

GET

Get PyPI storage stats

Total size of all packages in bytes and the top 100 packages by size.

[Open](#pypi-stats)

### Get a project

GET

`/pypi/{project}/json`

`pypi.project.get`

Latest-version metadata (summary, license, requires\_dist, project URLs), every release's files with hashes, and vulnerabilities of the latest release.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project` required</td><td>string</td><td>path</td><td>Project name. Example `sampleproject`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.pypi.org/api/json/) · Same job: [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-crates-get), [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-repositories-get), [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-get), [npm registry](https://docs.webrouter.net/data-apis/npm.md#npm-packages-get), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-get)

```python Python theme={null}
router.call_data_api("pypi.project.get", {'project': 'sampleproject'})
```

```text MCP theme={null}
call_data_api(endpoint="pypi.project.get", params={"project": "sampleproject"})
```

### Get one release of a project

GET

`/pypi/{project}/{version}/json`

`pypi.release.get`

Metadata, files and known vulnerabilities of one version.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project` required</td><td>string</td><td>path</td><td>Project name. Example `sampleproject`</td></tr>
    <tr><td>`version` required</td><td>string</td><td>path</td><td>Release version string. Example `4.0.0`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.pypi.org/api/json/) · Same job: [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-crates-versions), [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-tags-list), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-versions)

```python Python theme={null}
router.call_data_api("pypi.release.get", {'project': 'sampleproject', 'version': '4.0.0'})
```

```text MCP theme={null}
call_data_api(endpoint="pypi.release.get", params={"project": "sampleproject", "version": "4.0.0"})
```

### List a project's distribution files

GET

`/simple/{project}/`

`pypi.simple.project`

Every wheel and sdist URL of a project with hashes, from the PEP 503/691 index.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`project` required</td><td>string</td><td>path</td><td>Project name; matched case-insensitively with \_, - and . treated as equal. Example `beautifulsoup4`</td></tr>
    <tr><td>`accept`</td><td>string</td><td>header</td><td>application/vnd.pypi.simple.v1+json for JSON; without it the HTML index comes back. One of `application/vnd.pypi.simple.v1+json`, `application/vnd.pypi.simple.v1+html` Example `application/vnd.pypi.simple.v1+json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.pypi.org/api/index-api/) · Same job: [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-crates-versions), [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-tags-list), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-versions)

```python Python theme={null}
router.call_data_api("pypi.simple.project", {'project': 'beautifulsoup4', 'accept': 'application/vnd.pypi.simple.v1+json'})
```

```text MCP theme={null}
call_data_api(endpoint="pypi.simple.project", params={"project": "beautifulsoup4", "accept": "application/vnd.pypi.simple.v1+json"})
```

> [!NOTE]
>
> * The X-PyPI-Last-Serial header gives the project's latest serial.

### List every project

GET

`/simple/`

`pypi.simple.list`

The names (and last serials) of all projects on PyPI.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`accept`</td><td>string</td><td>header</td><td>application/vnd.pypi.simple.v1+json for JSON; without it the HTML index comes back. One of `application/vnd.pypi.simple.v1+json`, `application/vnd.pypi.simple.v1+html` Example `application/vnd.pypi.simple.v1+json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.pypi.org/api/index-api/) · Same job: [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-repositories-list), [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-repositories-projects), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-owners-gems)

```python Python theme={null}
router.call_data_api("pypi.simple.list", {'accept': 'application/vnd.pypi.simple.v1+json'})
```

```text MCP theme={null}
call_data_api(endpoint="pypi.simple.list", params={"accept": "application/vnd.pypi.simple.v1+json"})
```

> [!NOTE]
>
> * A very large response: hundreds of thousands of projects in one document.

### Get PyPI storage stats

GET

`/stats/`

`pypi.stats`

Total size of all packages in bytes and the top 100 packages by size.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`accept` required</td><td>string</td><td>header</td><td>Must be application/json, or an HTML page comes back. One of `application/json` Example `application/json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.pypi.org/api/stats/) · Same job: [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-summary), [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-sourcerank)

```python Python theme={null}
router.call_data_api("pypi.stats", {'accept': 'application/json'})
```

```text MCP theme={null}
call_data_api(endpoint="pypi.stats", params={"accept": "application/json"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.