# AgentFeed Package Security Check

> AgentFeed Package Security Check is a paid API for AI agents from x402.ochinimus.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-21).

Checks an npm or PyPI package version against OSV.dev advisories and public registry signals, returning vulnerability severity, advisory details, release metadata, download stats, install scripts, and name-squatting flags.

## Facts

- Endpoint: GET https://x402.ochinimus.app/api/pkg-check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeed-package-security-check-54e3d747
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3VDYj_jH2MHxcNau0rxMW

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 agentfeed-package-security-check-54e3d747
```

Example prompt: Can you check whether lodash version 4.17.20 on npm has any known security advisories on OSV.dev, and tell me the highest severity and any name-squat flags?

## When to prefer this

Choose this endpoint when you need a single authoritative answer about whether a specific version of an npm or PyPI package has OSV advisories, combined with registry metadata (downloads, install scripts, typosquatting) in one call. Prefer it over raw OSV API calls when you also need supply-chain signals (name-squat, malicious flags, install scripts) alongside vulnerability data. Best suited for dependency vetting in CI pipelines, security audits, or agent-driven code review workflows.

## Known failure modes

- 404 Not Found — package name or version does not exist in the registry (not billed)
- 503 Service Unavailable — upstream registry or OSV.dev is unreachable (not billed)
- Invalid ecosystem value — only 'npm' or 'pypi' accepted
- Version not specified defaults to latest published version, which may differ from user intent
- Scoped npm packages (e.g. @scope/name) must be passed correctly or lookup will fail

## How this service works

Package check: flagged (any OSV advisory for that exact version), highest severity, advisories, release, scripts, downloads, name-squat flags. Use when you need to answer: Does OSV.dev list any advisory for this exact version of an npm or PyPI package, and what do the public registries add? 404 or 503: not charged.

## Output

Returns a structured object with: flagged boolean, malicious boolean, highest_severity string, advisory_count number, advisories array (each with OSV IDs and details), advisory_summary string, release metadata object, install_scripts array, downloads object (weekly/monthly counts), typosquat object (name-squat signals), repository info, maintainers, sources array, and the method used. Returns 404 if the package/version is not found (not charged), 503 on upstream failure (not charged).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name",
      "ecosystem"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "package name: an npm name (optionally @scope/name) or a PyPI project name"
      },
      "version": {
       "type": "string",
       "description": "version to check, for example 4.17.21 (default: the latest published version)"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm or pypi"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "flags": {
         "type": "array"
        },
        "found": {
         "type": "boolean"
        },
        "method": {
         "type": "string"
        },
        "flagged": {
         "type": "boolean"
        },
        "release": {
         "type": "object"
        },
        "sources": {
         "type": "array"
        },
        "version": {
         "type": "string"
        },
        "downloads": {
         "type": "object"
        },
        "ecosystem": {
         "type": "string"
        },
        "malicious": {
         "type": "boolean"
        },
        "typosquat": {
         "type": "object"
        },
        "advisories": {
         "type": "array"
        },
        "repository": {
         "type": "object"
        },
        "maintainers": {
         "type": "object"
        },
        "advisory_count": {
         "type": "number"
        },
        "install_scripts": {
         "type": "array"
        },
        "advisory_summary": {
         "type": "string"
        },
        "highest_severity": {
         "type": "string"
        }
       }
      },
      "paid": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeed-package-security-check-54e3d747/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ochinimus.app](https://www.zero.xyz/host/x402.ochinimus.app/llms.txt)
