# GitHub Security Advisory Feed for PyPI Packages

> GitHub Security Advisory Feed for PyPI Packages is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns reviewed GitHub security advisories (GHSAs) for PyPI packages published since a given timestamp, each scored by severity with affected package details and source links.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/ghsa-pip/changes
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-security-advisory-feed-for-pypi-packages-810581ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZULXW16lKrDXxFNJqHGtx

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 github-security-advisory-feed-for-pypi-packages-810581ba
```

Example prompt: Show me all GitHub security advisories for PyPI packages detected since 2025-01-01T00:00:00Z with a significance score of at least 7, up to 50 results.

## When to prefer this

Use this endpoint when you need a structured, severity-scored feed of new GitHub security advisories specifically for PyPI/pip packages, with filtering by recency and minimum significance. Prefer it over raw GitHub Advisory search when you need pre-scored, change-feed semantics (i.e., only what's new since a known timestamp) rather than full-text search, and when you want a companion to the LLM-written digest endpoint for raw data access.

## Known failure modes

- Invalid `since` datetime format returns a 400 bad request
- `min_significance` or `limit` out of allowed range (1–10 and 1–500 respectively) returns validation error
- No advisories matching the filters returns an empty `changes` array with count 0
- Payment not provided or rejected returns 402 Payment Required
- Service unavailable or upstream GitHub Advisory DB unreachable returns 5xx

## How this service works

New security vulnerabilities and CVEs affecting PyPI packages published since a timestamp (GitHub's reviewed advisory database) — each with its CVE ID, CVSS/severity score, affected package names, and a link. Answers "did a dependency I use get a new CVE or vulnerability I should patch?"

## Output

A JSON object containing a count of matching advisories, the data source name, and an array of advisory change objects — each with a GHSA entity ID, title, plain-language summary, severity/significance score (1–10), detailed metadata, a primary source URL for verification, the timestamp it was detected, and its effective date.

## 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": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1
      },
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Only changes detected after this ISO-8601 instant"
      },
      "min_significance": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Keep only changes scored at least this"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "changes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "detail": {
          "type": "object"
         },
         "summary": {
          "type": "string"
         },
         "entityId": {
          "type": "string"
         },
         "sourceUrl": {
          "type": [
           "string",
           "null"
          ],
          "description": "Primary-source link for verification"
         },
         "detectedAt": {
          "type": "string",
          "format": "date-time"
         },
         "significance": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1
         },
         "effectiveDate": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-security-advisory-feed-for-pypi-packages-810581ba/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)
