---
title: "PyPI API: Python project metadata as JSON | Perceptlayer"
description: "PyPI API for Python project metadata as JSON: versions, dependencies, license, release files with digests and release history. 1 credit per successful call."
url: https://perceptlayer.com/apis/pypi
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / PyPI

1 credit per call 1 endpoint 10 datapoints 

# PyPI API

PyPI API for Python project metadata as JSON: versions, dependencies, license, release files with digests and release history. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

PyPI

GET /v1/pypi/project?project=requests 

```
{
  "success": true,
  "data": {
    "name": "requests",
    "normalized_name": "requests",
    "version": "2.34.2",
    "summary": "Python HTTP for Humans.",
    "description": "# Requests\n\n[![Version](https://img.shields.io/pypi/v/requests.svg?maxAge=86400)](https://pypi.org/project/requests/)\n[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)\n[![Downloa…",
    "description_content_type": "text/markdown",
    "author_email": "Kenneth Reitz <me@kennethreitz.org>",
    "maintainer_email": "Ian Stapleton Cordasco <graffatcolmingov@gmail.com>, Nate Prewitt <nate.prewitt@gmail.com>",
    "license": "Apache-2.0",
    "requires_python": ">=3.10",
    "requires_dist": [
      "charset_normalizer<4,>=2",
      "idna<4,>=2.5",
      "urllib3<3,>=1.26"
    ],
    "provides_extra": [
      "security",
      "socks",
      "use-chardet-on-py3"
    ],
    "classifiers": [
      "Development Status :: 5 - Production/Stable",
      "Environment :: Web Environment",
      "Intended Audience :: Developers"
    ],
    "project_urls": {
      "Documentation": "https://requests.readthedocs.io",
      "Source": "https://github.com/psf/requests"
    },
    "package_url": "https://pypi.org/project/requests/",
    "release_url": "https://pypi.org/project/requests/2.34.2/",
    "yanked": false,
    "files": [
      {
        "filename": "requests-2.34.2-py3-none-any.whl",
        "package_type": "bdist_wheel",
        "python_version": "py3",
        "requires_python": ">=3.10",
        "size": 73075,
        "uploaded_at": "2026-05-14T19:25:26.443000Z",
        "url": "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl",
        "digests": {
          "blake2b_256": "a0f4c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a",
          "md5": "cc4287951c320ff794e5e183c7a91f85",
          "sha256": "2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0"
        },
        "has_signature": false,
        "yanked": false
      },
      {
        "filename": "requests-2.34.2.tar.gz",
        "package_type": "sdist",
        "python_version": "source",
        "requires_python": ">=3.10",
        "size": 142856,
        "uploaded_at": "2026-05-14T19:25:27.735762Z",
        "url": "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz",
        "digests": {
          "blake2b_256": "acc3e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf",
          "md5": "611e438d0803e962500225f9807a475e",
          "sha256": "f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed"
        },
        "has_signature": false,
        "yanked": false
      }
    ],
    "ownership": {
      "roles": [
        {
          "role": "Owner",
          "user": "Lukasa"
        },
        {
          "role": "Owner",
          "user": "graffatcolmingov"
        },
        {
          "role": "Owner",
          "user": "nateprewitt"
        }
      ]
    },
    "last_serial": 37059094,
    "releases": [
      {
        "version": "2.34.2",
        "uploaded_at": "2026-05-14T19:25:26.443000Z",
        "file_count": 2,
        "yanked": false
      },
      {
        "version": "2.34.1",
        "uploaded_at": "2026-05-13T19:20:22.827819Z",
        "file_count": 2,
        "yanked": false
      },
      {
        "version": "2.34.0",
        "uploaded_at": "2026-05-11T19:29:49.923155Z",
        "file_count": 2,
        "yanked": false
      }
    ]
  },
  "meta": {
    "endpoint_family": "project",
    "request_id": "req_cd8f976d45f44ae38fded2d61d9e0621",
    "credits_charged": 1,
    "credits_remaining": 1776
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `project`: the fields and shapes you will get, shortened to 2 items.

| # | filename string | package\_type string | python\_version string | requires\_python string | size integer | uploaded\_at string | url url | digests object | has\_signature boolean | yanked boolean |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | requests-2.34.2-py3-none-any.whl | bdist\_wheel | py3 | \>=3.10 | 73075 | 2026-05-14T19:25:26.443000Z | https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl | {3 fields} | false | false |
| 2 | requests-2.34.2.tar.gz | sdist | source | \>=3.10 | 142856 | 2026-05-14T19:25:27.735762Z | https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz | {3 fields} | false | false |

Recorded from our API · 2 items shown · 10 datapoints per item GET /v1/pypi/project?project=requests

10 datapoints

### Identity

-   filename string
-   package\_type string

### Contact

-   url url

### Other

-   python\_version string
-   requires\_python string
-   size integer
-   uploaded\_at string
-   digests object
-   has\_signature boolean
-   yanked boolean

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/pypi/project?project=requests" \
  -H "X-API-Key: $API_KEY"
```

PyPI · 1 endpoint

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/pypi/project`](https://perceptlayer.com/apis/pypi/project) | `project` +1 optional | `name` `normalized_name` `version` `summary` `description` `description_content_type` +15 more | 1 credit |

Overview

## About the PyPI API

## What you can get

The PyPI API returns Python package metadata as JSON through 1 endpoint.

-   **Projects:** `project` takes a `project`, with an optional `version`.

The recorded call for `project=requests` returns the project's `name`, `normalized_name`, `version`, `summary`, `description`, `description_content_type`, `license`, `requires_python`, `requires_dist`, `provides_extra`, `classifiers`, `project_urls`, `package_url`, `release_url`, `yanked` and `last_serial`. It also returns `files`, each with `filename`, `package_type`, `python_version`, `requires_python`, `size`, `uploaded_at`, `url`, `digests` ( `blake2b_256`, `md5` and `sha256`), `has_signature` and `yanked`; `releases`, each with `version`, `uploaded_at`, `file_count` and `yanked`; and `ownership` with the project's `roles`.

## How a call works

`GET /v1/pypi/project?project=requests`, with your key in the `X-API-Key` header, returns the current version and its `releases`. Pass any `version` from that list back to `project` to read that release, its files and its dependencies. Every successful call costs 1 credit; failed calls cost nothing.

Apps and media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [ClinicalTrials.gov](https://perceptlayer.com/apis/clinicaltrials) [Coursera](https://perceptlayer.com/apis/coursera) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Discogs](https://perceptlayer.com/apis/discogs)

Use cases

### Track new releases of the Python packages you depend on

`Use the PyPI API to track new releases of the Python packages you depend on` 

### Check \`requires\_python\` and \`requires\_dist\` before an upgrade

`` Use the PyPI API to check `requires_python` and `requires_dist` before an upgrade `` 

### Audit licenses across a requirements file

`Use the PyPI API to audit licenses across a requirements file` 

### Verify downloaded files against their \`sha256\` digests

`` Use the PyPI API to verify downloaded files against their `sha256` digests `` 

FAQ

## Questions

**How much does the PyPI API cost?**

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I read an older release?**

Yes. Pass a \`version\` with \`project\`, such as one from the \`releases\` list.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official PyPI API?**

No. Perceptlayer is an independent service and is not affiliated with PyPI. It returns PyPI data as JSON with a Perceptlayer key, so there is no PyPI developer account, app review or partner approval to get first. It only reads data: if PyPI has an official API and you need to act on your own PyPI account, such as posting, managing orders or reading private data, use that one.

**Should I build a PyPI scraper instead?**

You can, but a PyPI scraper is code you maintain: page changes break it, requests get blocked, and PyPI's terms govern how you collect data. The PyPI API gives you 1 endpoint of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the PyPI API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
