# npm-package-info

> npm-package-info is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches npm package metadata including latest version, publish date, description, license, dependencies, weekly downloads, and maintainers from the public npm registry.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/npm
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-info-60b355a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lew1kfmWN0et4vY9o_ET2

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-60b355a6
```

Example prompt: Can you pull up the npm registry info for the 'lodash' package — I want to know the latest version, license, weekly downloads, and how many dependencies it has?

## When to prefer this

Use this endpoint when an agent needs quick, structured npm metadata for a single package — especially in CI pipelines, dependency audits, security vetting, or open source due diligence workflows. It is preferable to scraping npmjs.com directly or calling the raw npm registry API, since it normalizes and summarizes the most useful fields at a fixed $0.01 cost per lookup. Best for agents that need actionable package signals without parsing full registry JSON payloads.

## Known failure modes

- Package not found on npm registry returns an error or empty result
- Scoped packages (e.g. @org/pkg) may require URL-encoded names
- Unpublished or deprecated packages may return partial data
- Rate limits or transient npm registry downtime can cause failures
- Missing query parameter for package name returns a bad request error

## How this service works

npm package info: latest version and publish date, description, license, homepage, repository, dependency count, weekly downloads, maintainers and total versions, from the public npm registry. Dependency research for agents and CI. $0.01 per package.

## Output

Returns structured npm package metadata including: latest version number, latest publish date, package description, SPDX license identifier, homepage URL, repository URL, number of direct dependencies, weekly download count, list of maintainers, and total number of published versions — all sourced live from the public npm registry.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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-60b355a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
