# PyPI Package

One PyPI project's registry record — summary, license, links, the Python versions it requires, and its dependency specifiers, at any version or `latest`.

- Method: `GET`
- Path: `/v1/packages/pypi`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `package` | string | required | A project name. |
| `version` | string | optional | A version string. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/packages/pypi \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "name": "requests",
    "version": "2.34.2",
    "summary": "Python HTTP for Humans.",
    "license": "Apache-2.0",
    "homepage": "https://requests.readthedocs.io",
    "documentation": "https://requests.readthedocs.io",
    "repository": "https://github.com/psf/requests",
    "keywords": ["http"],
    "requires_python": ">=3.10",
    "author": "Kenneth Reitz",
    "release_count": 163,
    "requires_dist": ["charset_normalizer"],
    "url": "https://pypi.org/project/requests/2.34.2/"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T16:30:00.000Z",
    "age_seconds": 60,
    "next_update_at": "2026-08-20T16:35:00.000Z"
  }
}
```