Boolean exists check for a product
GET
/product/{type}/{name}/{version}/exists
const url = 'https://patchstack.com/database/api/beta/product/npm/axios/0.21.4/exists';const options = {method: 'GET', headers: {PSKey: '<PSKey>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://patchstack.com/database/api/beta/product/npm/axios/0.21.4/exists \ --header 'PSKey: <PSKey>'Boolean-only variant of the product lookup. Returns { "vulnerable": true }
or { "vulnerable": false } without the advisory payload — useful for
lightweight health checks and dashboard tiles where the advisory body
isn’t needed.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” type
required
string
Example
npmProduct ecosystem.
name
required
string
Example
axiosNpm package slug or WordPress plugin/theme slug. Use wordpress when type=wordpress.
version
required
string
Example
0.21.4Concrete version (e.g. 0.21.4) or * to return every advisory for the product.
Responses
Section titled “ Responses ”Boolean result.
Media type application/json
object
vulnerable
required
boolean
Example
{ "vulnerable": true}Missing or invalid PSKey header.
API key not authorised for the requested endpoint.
Rate limit exceeded.