Standard API
If you’re looking for an API that has a complete data coverage and could be used commercially, please look at the commercial API here.
Introduction
The purpose of this document is to provide information about the API functionality of the Patchstack vulnerability database.
API Usage
The Patchstack Vulnerability API for Developers is limited to 500 requests per 24 hours.
The base URL of the API is https://patchstack.com/database/api/v2
All responses are in JSON format. For performance reasons, responses are cached until we update the database after which the appropriate caches are cleared.
An API key is required. This API key should be present in the PSKey HTTP request header.
You can request an API key by logging into your Patchstack App account and then by going to the Upgrades page https://app.patchstack.com/billing/subscription. Please enter your use-case scenario and we will review your request.
Find Vulnerability
Description: Retrieve vulnerabilities of a specific plugin, theme or WordPress core version.
Endpoint: /product/TYPE/NAME/VERSION/EXISTS?
Method: GET
TYPE = theme, plugin, wordpress
NAME = Slug of the theme, slug of the plugin, or “wordpress” in case TYPE is set to wordpress
VERSION = Version to check for vulnerabilities
EXISTS = Optional flag that will not return all vulnerabilities but only a boolean response whether or not there are vulnerabilities. This flag being present results in a faster response.
Example response (https://patchstack.com/database/api/v2/product/plugin/tutor/1.5.2):
Example response (https://patchstack.com/database/api/v2/product/plugin/tutor/1.5.2/exists):