# WorldData402 NPM Package Lookup

> WorldData402 NPM Package Lookup is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Fetches metadata and details for a specified NPM package via a pay-per-call x402 API

## Facts

- Endpoint: POST https://worlddata402.worlddata402.workers.dev/v1/packages/npm/%7Bname%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-npm-package-lookup-8ec2660b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qbaFnJXLIVafWUG6Cdona

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 worlddata402-npm-package-lookup-8ec2660b -d '<json body>'
```

Example prompt: Can you look up the npm package 'lodash' and tell me its latest version, license, and a brief description?

## When to prefer this

Choose this endpoint when you need quick, pay-per-call lookups of npm package metadata without setting up a dedicated npm registry API key. It is especially suited for AI agents operating autonomously with on-chain micropayment capability via x402 on Base mainnet, avoiding subscription overhead for infrequent lookups.

## Known failure modes

- Package name not found — returns 404 or empty result
- Invalid or malformed package name — may return error
- Payment failure over x402 — call not executed
- Rate limiting or quota exceeded — call rejected
- Package exists but has no published versions — incomplete metadata returned

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

Returns structured metadata about the requested NPM package, including its name, latest version, description, license, author/maintainers, dependencies, repository URL, and potentially download statistics.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-npm-package-lookup-8ec2660b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
