# npm Package

One npm package's registry record — description, license, links, dependency counts, and the tarball's checksum, at any version or `latest`.

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

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `package` | string | required | A package name — scoped names work too. |
| `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/npm \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "name": "next",
    "version": "16.3.1",
    "description": "The React Framework.",
    "license": "MIT",
    "homepage": "https://nextjs.org",
    "repository": "git+https://github.com/vercel/next.js.git",
    "keywords": ["react", "framework"],
    "dependencies": 6,
    "dev_dependencies": 0,
    "peer_dependencies": 4,
    "unpacked_size_bytes": 31457280,
    "file_count": 512,
    "shasum": "dfa0034dd721991bfc2399f1185ad8cda012504a",
    "tarball": "https://registry.npmjs.org/next/-/next-16.3.1.tgz",
    "maintainers": ["vercel-release-bot"],
    "url": "https://www.npmjs.com/package/next"
  },
  "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"
  }
}
```