# GHSA PyPI Advisory Detail Lookup

> GHSA PyPI Advisory Detail Lookup is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves stored detail for a single GitHub Security Advisory (GHSA) for a PyPI package by its entityId.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-pip/status
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghsa-pypi-advisory-detail-lookup-7e9e29f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ONdZcRGHwdMJXkn2AWDU0

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 ghsa-pypi-advisory-detail-lookup-7e9e29f8
```

Example prompt: Can you pull up the full advisory details for GHSA-2h6w-3mq2-6p4f — I need to know what PyPI packages are affected and how severe it is.

## When to prefer this

Use this endpoint when you already have a specific GHSA identifier (e.g. GHSA-xxxx-yyyy-zzzz) and need full structured details about that advisory for a PyPI/pip package. Prefer this over digest endpoints when you need machine-readable detail on one advisory rather than a narrative summary of recent advisories.

## Known failure modes

- entityId not found — returns empty or 404-like response if the GHSA ID is not tracked
- missing or malformed id query param — may return list of tracked entities or error
- payment not processed — x402 payment required before data is returned
- advisory not yet ingested — newly published GHSAs may not be in the stored dataset yet

## How this service works

Full detail for a single vulnerability advisory by CVE / GHSA ID (e.g. 'ghsa:GHSA-xxxx') — severity, CVSS score, affected PyPI package(s), and source link.

## Output

Returns a stored entity object containing the full details of the specified GitHub Security Advisory (GHSA) for a PyPI package, including affected package names, severity, description, and other advisory metadata associated with the given entityId.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghsa-pypi-advisory-detail-lookup-7e9e29f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
