the402 endpoint detail

← All endpoints

agent-api-testnet.tim1712.workers.dev npm install-preflight

https://agent-api-testnet.tim1712.workers.dev/v1/npm/install-preflight

answers 402

Use before a coding agent installs an unfamiliar npm dependency. Returns current facts from the official npm registry: the version `npm install` resolves (dist-tags.latest), prerelease and deprecation status, engines.node compatibility with an optional target Node version (real SemVer evaluation), license, days since release, best-effort weekly downloads, repository URL and maintainer count. Facts

We sent a real POST request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.005
Network
base-sepolia
Pay to
0x5229384BD502D85aa7EcA0A31B515E5E48d3910F
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
POST
Response latency
389 ms
Payment options
1 usable of 1
Last checked
2026-09-06T01:12:35.893Z (2h ago)
Category
other

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fagent-api-testnet.tim1712.workers.dev%2Fv1%2Fnpm%2Finstall-preflight"