About this endpoint
What it does
Looks up OSV.dev vulnerability advisories for a package identified by package URL, package name, and/or version, with optional ecosystem filtering. It returns a JSON object containing billing and result metadata plus an array of matching advisory items.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| purl | String | No | Package URL, e.g. pkg:npm/[email protected]. |
| package | String | No | Package name, e.g. lodash. |
| version | String | No | Version, e.g. 4.17.15 (empty = all known). |
| maxItems | Integer | No | Max results. Default: 20; minimum: 1; maximum: 100. |
| ecosystem | String | No | Ecosystem filter. Supported values: npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet. |
Response
Returns a JSON object with billed and count integer fields, plus an items array of advisory objects. Each item may include identifiers, URLs, CVEs, EPSS data, aliases, summary text, timestamps, severity, references, fixed versions, exploitability flags, and upgrade information.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | No | Units charged for this call: result rows only; not-found / unavailable / invalid rows are free. |
| count | Integer | No | Number of rows in items. |
| items | Object Array | No | Array of advisory objects. Each object may include: id, url, cves, epss, aliases, summary, modified, severity, published, references, kevDateAdded, fixedVersions, epssPercentile, knownExploited, upgradeToFixAll, upgradeVerified. |
Notes
maxItems is capped at 100, and defaults to 20 when omitted.


