---
title: Check Package Vulnerabilities API
slug: check-package-vulnerabilities
url: https://apyhub.com/martin10291/service/check-package-vulnerabilities
provider: Martin Petrov
categories: [Verification Kit, Safety Kit]
tags: [package-vulnerabilities, osv, dependency-security, cve-checking, supply-chain-security]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Check Package Vulnerabilities API

Package Vulnerability API checks OSV advisories by package name, version, or purl. Get CVEs, severity, fixes, and exploit signals. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/check-package-vulnerabilities` | What it does Looks up OSV.dev vulnerability advisories for a package identified by package URL, pac… | 100 |

## Endpoint reference

### Package Vulnerabilities - OSV.dev advisories

`POST https://api.eu.apyhub.com/martin10291/check-package-vulnerabilities` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `purl` | body | string | no | Or a package URL, e.g. pkg:npm/lodash@4.17.15 |
| `package` | body | string | no | Package name, e.g. lodash Example: `lodash`. |
| `version` | body | string | no | Version, e.g. 4.17.15 (empty = all known) Example: `4.17.15`. |
| `maxItems` | body | integer | no | Max results Default: `20`. Example: `50`. |
| `ecosystem` | body | string | no | npm, PyPI, Go, Maven, crates.io, RubyGems, NuGet Example: `npm`. |

#### Quickstart

Look up OSV vulnerabilities for a package name, package URL, and version.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/check-package-vulnerabilities" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"package":"lodash","version":"4.17.15","ecosystem":"npm","maxItems":20}'
```

#### What you'll get back

Returns a JSON object with `billed` and `count` integers, plus an `items` array of vulnerability objects.

Each item may include fields such as `id`, `url`, `cves`, `epss`, `aliases`, `summary`, `modified`, `severity`, `published`, `references`, `kevDateAdded`, `fixedVersions`, `epssPercentile`, `knownExploited`, `upgradeToFixAll`, and `upgradeVerified`.

```json
{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "id": "OSV-2021-1234",
      "url": "https://osv.dev/vulnerability/OSV-2021-1234",
      "cves": ["CVE-2021-1234"],
      "severity": "HIGH"
    }
  ]
}
```

## About

## What it does

The Package Vulnerability API returns OSV.dev advisories for a package. Send a package URL in `purl`, or use `package` with an optional `version`. You can also set `ecosystem` to limit the search to npm, PyPI, Go, Maven, crates.io, RubyGems, or NuGet. Use `maxItems` to cap the list, from 1 to 100, with 20 as the default.

The response gives you a JSON object with the row count and the advisories that matched. Each advisory can include its ID, link, CVEs, aliases, summary, dates, severity, references, fixed versions, and exploit signals such as EPSS and known exploited status.

Teams use the Package Vulnerability API to check risky dependencies during builds. They also use it in security dashboards and package review tools. It helps them spot fixes before they ship new code.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/check-package-vulnerabilities
