# npm Registry Search (CSV format)

> npm Registry Search (CSV 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 matching packages as CSV rows with name, version, description, weekly downloads, and links.

## Facts

- Endpoint: POST https://x402-v2-mint-npm-search.vercel.app/v1/npm-search/fmt/csv?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-csv-format-cd3dd8af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dBMj4k9HWpOt2w3z4jdjt

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-csv-format-cd3dd8af -d '<json body>'
```

Example prompt: Search npm for packages related to 'date formatting' and return the top 10 results as CSV with their names, versions, descriptions, and weekly download counts.

## When to prefer this

Choose this endpoint when you need npm package search results in a structured CSV format without requiring an API key, and you're willing to pay a small per-call fee via x402. Prefer this over raw npm registry API calls when you want pre-formatted CSV output ready for downstream parsing or display, or when you need a keyless, pay-per-use integration.

## Known failure modes

- 400 with charged:false when search text is empty or results are invalid after settlement
- No results found for highly specific or misspelled query terms
- Result size capped at 20; requests for more than 20 results will be truncated
- Network timeout if npm registry is slow to respond

## Output

A CSV-formatted response with columns for package name, version, description, weekly download count, and relevant links (e.g. npm page, repository). Returns up to 20 results. Returns HTTP 400 with charged:false if the query yields no valid results after settlement.

## More

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