# beyourspace npm Package Risk API

> beyourspace npm Package Risk API is a paid API for AI agents from api.beyourspace.es, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-18).

Returns license, repository, dependency count, and known vulnerabilities (OSV.dev) for a specific npm package version

## Facts

- Endpoint: POST https://api.beyourspace.es/v1/riesgo-paquete-npm
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beyourspace-npm-package-risk-api-e664f9cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gga-_FnFelxKSOV3B603Z

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 beyourspace-npm-package-risk-api-e664f9cd -d '<json body>'
```

Example prompt: Can you check the npm package 'lodash' version 4.17.21 for known security vulnerabilities, its license, and how many dependencies it has?

## When to prefer this

Use this endpoint when you need a consolidated risk snapshot (license + deps + CVEs) for a specific npm package version in a single call. Prefer it over manual OSV.dev queries or npm info commands when building automated dependency auditing pipelines, CI gates, or agent-driven supply chain checks. It is particularly useful when you need OSV advisory sources cited alongside the vulnerability count.

## Known failure modes

- Package name not found on npm registry — returns error or empty result
- Specific version does not exist — version not found error
- OSV.dev upstream unavailable — vulnerability data may be incomplete or stale
- Malformed package name input — validation error returned
- Network timeout fetching registry or OSV data

## How this service works

Endpoints de pago por uso para extraer datos de texto, leer páginas públicas y transformar CSV en JSON normalizado. Sin cuentas ni permanencia, con esquemas documentados y ejemplos ejecutables.

## Output

A JSON object containing the package license, repository URL, total number of dependencies, and a list of known vulnerability advisories sourced from OSV.dev, each with advisory ID, severity, and source references.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "paquete": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beyourspace-npm-package-risk-api-e664f9cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.beyourspace.es](https://www.zero.xyz/host/api.beyourspace.es/llms.txt)
