API Documentation
Get Your API Key
Free tier: 500 lookups/month. No credit card required.
Quick Start
- 1 Sign up — Use the form above or create an account via the API.
curl -X POST https://patchapi.shanecode.org/v1/auth/register \ -H "Content-Type: application/json" \ -d '{"email":"you@example.com","password":"yourpassword"}'Save the
api_keyfrom the response — it's shown only once. - 2 Make your first call
curl https://patchapi.shanecode.org/v1/cve/CVE-2021-44228 \ -H "X-API-Key: pp_live_your_key_here" - 3 Or use the CLI
patchpulse auth login patchpulse cve CVE-2021-44228 patchpulse check package-lock.json
Authentication
Pass your API key via the X-API-Key header or Authorization: Bearer header.
X-API-Key: pp_live_your_key_here
# or
Authorization: Bearer pp_live_your_key_here Unauthenticated requests use the anonymous tier: 10 requests/minute, no monthly quota.
Endpoints
/v1/cve/{cve-id}Full CVE detail with EPSS, CISA KEV, affected packages, and advisories.
/v1/pkg/{ecosystem}/{package}All CVEs affecting a package, sorted by EPSS score. Supports npm, pypi, go, cargo, maven.
/v1/pkg/{ecosystem}/{package}/{version}CVEs affecting a specific version. Version-range matching per ecosystem.
/v1/epss/{cve-id}/historyEPSS score history over time. Query parameter: days (default 30, max 365).
Requires: Business+/v1/scanUpload a manifest (package.json, go.mod, requirements.txt) for a prioritized vulnerability report.
Requires: Pro+/v1/auth/registerCreate an account. Returns your API key (shown once).
/v1/auth/loginLog in to view account details and usage.
/v1/auth/accountView account info, API key prefixes, and usage.
Requires: API key/v1/usageCurrent month usage stats.
Requires: API key/healthHealth check with data source freshness timestamps.
Rate Limits
| Tier | Burst | Monthly Quota |
|---|---|---|
| Anonymous | 10/min | — |
| Free | 30/min | 500 |
| Pro | 120/min | 10,000 |
| Business | 300/min | 50,000 |
| Growth | 600/min | 200,000 |
Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
Base URL
https://patchapi.shanecode.org All endpoints are versioned under /v1/.