Skip to content

Boolean exists check for a product

GET
/product/{type}/{name}/{version}/exists
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.

type
required
string
Allowed values: npm plugin theme wordpress
Example
npm

Product ecosystem.

name
required
string
Example
axios

Npm package slug or WordPress plugin/theme slug. Use wordpress when type=wordpress.

version
required
string
Example
0.21.4

Concrete version (e.g. 0.21.4) or * to return every advisory for the product.

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.