# Get PyPI Package API

> Fetch metadata for a public PyPI package: latest version, author, license, project URLs, classifiers, requirements.

Category: [Developer Tools APIs](https://upapi.io/apis/developer-tools) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/pypi-package.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/pypi-package.get

```bash
curl -X POST https://api.upapi.io/pypi-package.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "name": "django" }'
```

## Request parameters

- `name` (string, required) — PyPI package name (e.g. django, curl-cffi)

## Response fields

- `name` (string, required)
- `author` (string, required)
- `license` (string, required)
- `summary` (string, required)
- `homepage` (string, required)
- `keywords` (array, required)
- `fetchedAt` (string, required)
- `authorEmail` (string, required)
- `classifiers` (array, required)
- `projectUrls` (object, required)
- `releaseCount` (integer, required)
- `latestVersion` (string, required)
- `requiresPython` (string, required)
- `latestReleaseUploaded` (string, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "name": "django"
}
```

```json
{
  "name": "example",
  "author": "example",
  "license": "example",
  "summary": "example",
  "homepage": "example",
  "keywords": [
    "example"
  ],
  "fetchedAt": "example",
  "authorEmail": "example",
  "classifiers": [
    "example"
  ],
  "projectUrls": {},
  "releaseCount": 1,
  "latestVersion": "example",
  "requiresPython": "example",
  "latestReleaseUploaded": "example"
}
```

## Frequently asked questions

### How much does the Get PyPI Package API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Get PyPI Package API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Get PyPI Package API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Developer Tools APIs

- [Get npm Package](https://upapi.io/apis/developer-tools/npm-package)
- [Get GitHub Repository](https://upapi.io/apis/developer-tools/github-repo)
- [Get GitHub User](https://upapi.io/apis/developer-tools/github-user)
- [Get GitHub User Commit Emails](https://upapi.io/apis/developer-tools/github-user-emails)
- [List GitHub Issue Comments](https://upapi.io/apis/developer-tools/github-issue-comments)
- [List GitHub Repository Contributors](https://upapi.io/apis/developer-tools/github-repo-contributors)
- [List GitHub Repository Issues](https://upapi.io/apis/developer-tools/github-repo-issues)
- [Post a GitHub Issue Comment](https://upapi.io/apis/developer-tools/github-issue-comment)
