# npm Registry Search (x402, Custom Format)

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

Searches the npm registry by text query and returns matching packages with metadata including name, version, description, weekly downloads, and links in a custom concierge format.

## Facts

- Endpoint: POST https://x402-v2-mint-npm-search.vercel.app/v1/npm-search/fmt/custom?utm_source=zero.xyz
- Price: $0.005/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-x402-custom-format-fe0a32fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ni1z6GBBs19GK9wD4C9-

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-x402-custom-format-fe0a32fd -d '<json body>'
```

Example prompt: Search npm for packages related to 'markdown parsing' and return the top 5 results with their weekly download counts and descriptions.

## When to prefer this

Use this endpoint when you need to search the npm registry without API keys, want structured package metadata (name, version, description, downloads, links) returned in a clean custom format, and are operating in an x402 micropayment context at $0.005 USDC per query. Prefer this over scraping npm.io directly or using the raw npm registry search API when keyless access and concierge-formatted output are priorities.

## Known failure modes

- Empty or meaningless search text returns 400 with charged:false
- Requesting more than 20 results may be capped or rejected
- Network or npm registry outage causes upstream failure
- Malformed POST body (missing 'text' field) returns 400

## Output

Returns a list of up to 20 npm packages in a custom concierge format, each entry including the package name, version, description, weekly download count, and relevant links (e.g. npm page, repository). Returns a 400 with charged:false if the query yields no valid results or is invalid.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-registry-search-x402-custom-format-fe0a32fd/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)
