1. Home
  2. Public API and feeds

Public API and feeds

The site’s data is available for free, read-only: JSON API, feeds and a daily export. Without a key, use is limited per IP address; a free key raises the limit.

OpenAPI 3.1 specification (JSON)

Getting started

No sign-up needed to try it:

curl "https://o2cve.com/api/v1/cves?level=critical&kev=1&limit=5"
curl "https://o2cve.com/api/v1/cves/CVE-2021-44228"
curl "https://o2cve.com/api/v1/vendors?q=apache"

API key

Send the key in the Authorization header (or X-API-Key). A key is never accepted in the URL, so it cannot end up in logs.

curl -H "Authorization: Bearer o2k_…" "https://o2cve.com/api/v1/cves"

Sign in to create a free key

Limits

Limits
AccessLimit
Without a key60 requests per hour per IP address
With a free key1,000 requests per day, burst of 30 per minute

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; when exceeded (429), Retry-After gives the wait in seconds. Conditional requests (304) count too.

Endpoints

Endpoints
RequestContent
GET /cvesSearch and list CVE, with filters
GET /cves/{id}Full record: products, fixes, workarounds, detection, references, timeline
GET /kevCISA KEV catalog, newest additions first
GET /vendorsVendors with at least one CVE
GET /vendors/{slug}/productsProducts of a vendor
GET /stats/{metric}Statistics (overview, levels, top-vendors, poc-delay, kev-delay, by-vendor, by-family, barometer)
GET /healthService status (not rate-limited)

Filters for /cves: q, vendor, product, level (comma-separated list), min_score, kev, poc, family, published_from, published_to, modified_from (YYYY-MM-DD). An unknown or invalid parameter is rejected with a 400 error, never silently ignored.

Available sorts (sort parameter, with order=asc or desc): priority, published, modified, id, kev_added.

Pagination

limit ranges from 1 to 100 (25 by default). The response contains meta.next_cursor: send it back as the cursor parameter, with the same filters, to get the next page. The cursor stays exact when new CVE arrive during the traversal. Free text (q) scans at most 10,000 matches: narrow down with filters.

Responses carry an ETag; send it in If-None-Match to get 304 when nothing changed. To synchronise regularly, use sort=modified&order=asc&modified_from=YYYY-MM-DD.

Errors

Errors follow RFC 9457 (application/problem+json) and contain request_id, to quote in any report.

{
  "type": "https://o2cve.com/api#problem-invalid-parameter",
  "title": "Invalid parameter",
  "status": 400,
  "instance": "/api/v1/cves",
  "request_id": "9f1c2b7a4d3e5a60",
  "errors": [{"parameter": "level", "detail": "Allowed values: critical, high, medium, low (comma-separated)."}]
}

RSS, Atom and JSON Feed

The 50 latest vulnerabilities, in three formats. An item’s identifier is the CVE number: it does not change if the domain changes.

Available filters: level (minimum level: critical, high, medium or low), kev=1, vendor, product, family, and lang=fr or en. Examples:

https://o2cve.com/feed/rss.xml?vendor=microsoft&level=high
https://o2cve.com/feed/atom.xml?kev=1&lang=en

Bulk export

To fetch the whole corpus without walking the API, a daily export is published as compressed JSON Lines and CSV.

Sources and attribution

Public data from NVD, CVE.org, CISA KEV, EPSS (FIRST), CERT-FR, OSV and the GitHub Advisory Database, provided without warranty of completeness. The risk score is computed by this service: Method and sources.