# x402-gateway Package Supply Chain Risk

> x402-gateway Package Supply Chain Risk is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-28).

Returns a 0–100 safety score, risk band, OSV vulnerability data, and maintenance/adoption signals for an npm or PyPI package, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/package_supply_chain_risk?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-package-supply-chain-risk-9c3de57b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lKyYgPoEglKd3iAO_QjwP

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 x402-gateway-package-supply-chain-risk-9c3de57b -d '<json body>'
```

Example prompt: Can you check the supply chain safety score for the npm package lodash version 4.17.21 — I want to know if there are any known vulnerabilities and whether it's well-maintained before I add it as a dependency?

## When to prefer this

Choose this endpoint when you need a quick, per-call, pay-as-you-go supply chain risk assessment for a specific npm or PyPI package without setting up API keys or subscriptions. It is ideal for ad-hoc dependency audits, CI/CD gating checks, or agent-driven security triage where you want known-vulnerability data plus maintenance/adoption context in a single call. If you need full static code analysis or support for ecosystems beyond npm and PyPI, look for a different tool.

## Known failure modes

- Package not found in the specified ecosystem — returns error indicating unknown package
- Invalid ecosystem value (not npm or pypi) — validation error
- Version string does not exist in registry — may return error or fall back to latest
- Payment failure or insufficient USDC balance — x402 payment rejection before endpoint executes
- Rate limit or network timeout from OSV upstream — may return partial or error response

## How this service works

Package Supply-Chain Risk: Package supply-chain risk bundle: 0-100 safety score and risk band for an npm or PyPI package, with OSV vulnerabilities and fixed versions plus maintenance and adoption evidence. Known-vuln data only — no code scan. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/package_supply_chain_risk.

## Output

A JSON object containing a 0–100 safety score, a risk band (e.g. low/medium/high/critical), a list of known OSV vulnerabilities with affected and fixed versions, and signals about the package's maintenance activity and adoption breadth. No source-code scanning is performed — only known-vulnerability database data is used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "example": "lodash",
   "description": "Package name, e.g. lodash or @scope/pkg (npm) or requests (PyPI)"
  },
  "version": {
   "type": "string",
   "example": "4.17.21",
   "description": "A registry version; defaults to latest"
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi"
   ],
   "type": "string",
   "example": "npm",
   "description": "Registry ecosystem (default npm)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "content": [],
  "isError": false,
  "structuredContent": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-package-supply-chain-risk-9c3de57b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
