跳转到主要内容
POST
Search advisories

请求规范

  • 方法与路径: POST /apis/v1/github/repositories/search-advisories
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/github/repositories/search-advisories
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

请求体

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
默认值: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
默认值: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
默认值:published

sort

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

type
string
默认值: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})$.

响应

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.