Skip to main content
POST
Search advisories

Request contract

  • Method and path: POST /apis/v1/github/repositories/search-advisories
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/github/repositories/search-advisories
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
affects
string[]

Package names or name@version (Maven as group:artifact, Go as module path); matches advisories affecting any of them.

cursor
string

next_cursor from the previous page. Pattern: ^[A-Za-z0-9+/=%_-]+$.

cve_id
string

CVE id, for example CVE-2021-44228. Pattern: ^[Cc][Vv][Ee]-\d{4}-\d{4,19}$.

cwes
string[]

CWE ids such as CWE-79 or 79; matches advisories with any of them.

direction
string
default:desc

direction

Provider reference: allowed values ["asc", "desc"]; default "desc".

ecosystem
string

Package ecosystem. pip is PyPI, rust is crates.io, composer is Packagist, actions is GitHub Actions.

Provider reference: allowed values ["rubygems", "npm", "pip", "maven", "nuget", "composer", "go", "rust", "erlang", "actions", "pub", "other", "swift"].

is_withdrawn
boolean

true: only withdrawn advisories; false: only active ones.

modified
string

Publication or update date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}..\d{4}-\d{2}-\d{2})$.

per_page
number
default:30

per_page

Provider reference: minimum 1; maximum 100; default 30.

published
string

Publication date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}..\d{4}-\d{2}-\d{2})$.

severity
string

severity

Provider reference: allowed values ["unknown", "low", "medium", "high", "critical"].

sort
string
default:published

sort

Provider reference: allowed values ["published", "updated", "epss_percentage", "epss_percentile"]; default "published".

type
string
default:reviewed

reviewed (GitHub-curated, the default), unreviewed (imported from NVD, often without packages) or malware.

Provider reference: allowed values ["reviewed", "unreviewed", "malware"]; default "reviewed".

updated
string

Last update date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}..\d{4}-\d{2}-\d{2})$.

Response

Browse and filter the GitHub Advisory Database: reviewed, unreviewed (NVD-imported) or malware advisories by ecosystem, severity, CVE, CWE ids, affected packages (name or name@version, up to 100), withdrawal, and publication, update or modification date ranges, sorted by publication, update, EPSS percentage or EPSS percentile, ascending or descending. Returns one cursor page (up to 100) of advisories with severity, CVSS, EPSS, CWEs, affected package ranges, vulnerable functions and credits; descriptions come from advisory. Adds over osv-dev (package/version lookups) and nvd-nist-gov (CVE keyword search): ecosystem, severity, CWE and date browsing with EPSS sorting, and the unreviewed and malware corpora. GitHub's EPSS value filters match exact values only, so rank by EPSS with sort instead. CC BY 4.0, attribute GitHub.

The response contains the tool result directly.

The provider identifies advisories as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.