# npm Package Info

> npm Package Info is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Fetches metadata for an npm package including version, description, license, dependencies, TypeScript types, size, publish dates, deprecation status, and weekly downloads.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/dev/npm?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-info-5a7fb963
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z3PYSc8SuO6rNpTayrs0I

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability npm-package-info-5a7fb963
```

Example prompt: Can you pull up the npm package info for 'zod' — I want to know the latest version, its license, whether it has TypeScript types, and how many weekly downloads it gets?

## When to prefer this

Use this endpoint when an AI agent needs to evaluate, audit, or compare npm packages — especially for checking latest version, license compliance, TypeScript support, deprecation status, or download popularity. Prefer this over scraping npmjs.com or the full npm registry API when you need a concise, structured summary for decision-making.

## Known failure modes

- Package name not found — returns 404 or empty result if the package doesn't exist on npm
- Scoped package names (e.g. @types/node) must be URL-encoded or passed correctly — malformed names cause errors
- Network or npm registry outage may cause timeouts
- Very new packages may have incomplete metadata (no downloads, no size info)

## How this service works

An npm package's latest version, description, license, repository, dependencies, peer dependencies, TypeScript types, size, publish dates, deprecation and weekly downloads. Use to choose or audit a JavaScript dependency.

## Output

Returns the npm package's latest version, description, license type, repository URL, direct dependencies, peer dependencies, TypeScript types availability, bundle size, first and last publish dates, deprecation status, and weekly download count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Package name, e.g. react or @types/node"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-info-5a7fb963/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
