---
title: "OSV-compatible batch query"
method: POST
path: "/v1/querybatch"
tags: ["vulnerabilities"]
---

# OSV-compatible batch query

`POST /v1/querybatch`

## Request

- Base URL: `https://vdb.ai.kr` (the document declares no server; this is the origin it was published from)
- URL: `https://vdb.ai.kr/v1/querybatch`
- Auth: none declared

OSV.dev `/v1/querybatch` compatible, so osv-scanner and other OSV clients can point at VDB. Up to 1000 `queries`, each `{package: {purl} | {ecosystem, name}, version}`; results come back in the same order as `{vulns: [{id, modified}]}`, and the full record is at `GET /v1/vulns/{id}`. A version is evaluated against each advisory's affected ranges; an advisory whose ranges cannot be evaluated is kept. `commit` queries are not supported and answer with no vulns.

## Request body

- QueryBatchRequest
  - `queries` BatchQuery[]
    - `package` Package
      - `ecosystem` string, nullable
      - `name` string, nullable
      - `purl` string, nullable
    - `version` string, nullable
    - `commit` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vdb/apis/vdb-api.md) · [All operations](https://skmtc.dev/vdb/apis/vdb-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vdb/apis/vdb-api/revisions/5d5edc23ea71?raw)
