# npm Registry Search (JSON-Pick Format)

> npm Registry Search (JSON-Pick Format) is a paid API for AI agents from x402-v2-mint-npm-search.vercel.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-31).

Searches the npm registry by keyword and returns a curated JSON-pick subset of package metadata including name, version, description, weekly downloads, and links — up to 20 results per query.

## Facts

- Endpoint: POST https://x402-v2-mint-npm-search.vercel.app/v1/npm-search/fmt/json-pick?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-registry-search-json-pick-format-58eaa28c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5-KfQCe7XZ75a7Wq_1tW3

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-registry-search-json-pick-format-58eaa28c -d '<json body>'
```

Example prompt: Search npm for date formatting libraries and return up to 10 results with their name, version, description, and weekly downloads.

## When to prefer this

Prefer this endpoint when you need quick, structured npm package metadata in a compact JSON-pick format without API keys or authentication. It's ideal for agents that need to programmatically discover, compare, or recommend npm packages based on a keyword search. Choose this over full npm registry API calls when you want a lightweight, pay-per-use approach with no key management overhead.

## Known failure modes

- Empty or invalid search results after settlement returns HTTP 400 with charged:false (no charge applied)
- Requesting more than 20 results may be rejected or capped
- Missing or empty 'text' field causes a bad request error
- Network or registry unavailability may cause timeouts

## Output

Returns a JSON-pick formatted array of up to 20 npm package objects, each containing the package name, version, description, weekly download count, and relevant links (e.g. npm page, homepage, repository). Returns a 400 error with charged:false if the query yields empty or invalid results after settlement.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-registry-search-json-pick-format-58eaa28c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-npm-search.vercel.app](https://www.zero.xyz/host/x402-v2-mint-npm-search.vercel.app/llms.txt)
