# Beggar Bot OSV Vulnerability Check

> Beggar Bot OSV Vulnerability Check is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Checks packages against the OSV (Open Source Vulnerabilities) database for known security vulnerabilities, given a list of package names and versions and an ecosystem

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/osvcheck?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-osv-vulnerability-check-237a0458
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OgF6NmxfbsbvuD6u6XHVj

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 beggar-bot-osv-vulnerability-check-237a0458
```

Example prompt: Check if lodash@4.17.20 and express@4.18.1 from npm have any known OSV vulnerabilities.

## When to prefer this

Use this endpoint when you need to check open-source package dependencies for known CVEs and OSV-tracked vulnerabilities across multiple ecosystems (npm, pypi, go, cargo, maven, rubygems, nuget, packagist). Prefer this over manual OSV API calls when operating in an agentic context that supports x402 micropayments on Base mainnet. At $0.02 USDC per call it is cost-effective for per-release or per-PR security checks.

## Known failure modes

- Invalid or unrecognized ecosystem name returns an error
- Malformed packages query string (bad format) returns a 400-level error
- Package or version not found in OSV returns empty results rather than an error
- Payment failure on Base mainnet returns a 402 Payment Required before data is returned
- Network timeout if OSV upstream is slow

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

A JSON response listing any known vulnerabilities from the OSV database for each queried package-version pair, including vulnerability IDs, severity, affected version ranges, and fix recommendations where available. Returns empty results for packages with no known issues.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "packages": {
       "type": "string",
       "description": "name@version comma list or JSON array"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm|pypi|go|cargo|maven|rubygems|nuget|packagist"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-osv-vulnerability-check-237a0458/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
