API Documentation

Access our comprehensive CVE vulnerability database programmatically. RESTful API with JSON responses for CVE lookups, search, and security monitoring.

🔑 Get API Access

To use our API, you need an API key. Registration and API access are free, but require admin approval to prevent abuse.

Create Free Account & Request API Access

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Rate Limits: 1000 requests per hour. Contact us if you need higher limits.

Base URL

https://fixthecve.com/api/v1

Endpoints

GET /cve/{cve_id}

Retrieve detailed information about a specific CVE.

Parameters

Parameter Type Description
cve_idREQUIRED string CVE identifier (e.g., CVE-2024-1234)

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \ https://fixthecve.com/api/v1/cve/CVE-2024-1234

Example Response

{ "success": true, "cve": { "cve_id": "CVE-2024-1234", "description": "...", "cvss_v3_score": 9.8, "cvss_v3_severity": "CRITICAL", "published_date": "2024-01-15", "last_modified_date": "2024-01-16", "ai_summary": "...", "affected_products": [...] } }

GET /cves/search

Search CVEs by keywords, severity, vendor, or date range.

Query Parameters

Parameter Type Description
q string Search query (keywords)
severity string Filter by severity: CRITICAL, HIGH, MEDIUM, LOW
vendor string Filter by vendor name
year integer Filter by publication year (e.g., 2024)
page integer Page number (default: 1)
limit integer Results per page (default: 50, max: 100)

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://fixthecve.com/api/v1/cves/search?severity=CRITICAL&year=2024&limit=10"

GET /cves/recent

Get recently published CVEs.

Query Parameters

Parameter Type Description
days integer Number of days to look back (default: 7, max: 90)
severity string Filter by severity
limit integer Results per page (default: 50, max: 100)

GET /stats

Get database statistics including total CVEs, severity breakdown, and recent trends.

Example Response

{ "success": true, "stats": { "total_cves": 245678, "by_severity": { "CRITICAL": 15234, "HIGH": 45678, "MEDIUM": 123456, "LOW": 61310 }, "recent_30_days": 1234, "last_updated": "2024-01-15T10:30:00Z" } }

Error Codes

Code Description
400 Bad Request - Invalid parameters
401 Unauthorized - Invalid or missing API key
404 Not Found - Resource doesn't exist
429 Too Many Requests - Rate limit exceeded
500 Internal Server Error - Something went wrong

Support & Questions

Need help or have questions about the API? Contact us or check the FAQ.