OSV Batch Vulnerability Query API

Use the OSV Batch Vulnerability Query API to check multiple open source package versions or Git commits in one request. Submit up to 1,000 query objects using package identifiers, Package URLs, or commit hashes, and receive matching vulnerability IDs and modification timestamps in the same order. Use the compact results to check a dependency inventory, identify packages requiring investigation, or schedule advisory refreshes. Fetch full records separately through the vulnerability details API, and follow continuation tokens for individual results when present. The detail page includes complete documentation examples, supported batch parameters, and fixed per-request pricing.

Selected price
$0.005 / callPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
body* object
queries array
queries[0]* object
The commit hash to query for. If specified, `version` should not be set.
package object
Required. The ecosystem for this package. For the complete list of valid ecosystem names, see <https://ossf.github.io/osv-schema/#affectedpackage-field>.
Required. Name of the package. Should match the name used in the package ecosystem (e.g. the npm package name). For C/C++ projects integrated in OSS-Fuzz, this is the name used for the integration.
Optional. The package URL for this package.
The package to query against. When a `commit` hash is given, this is optional. Use name AND ecosystem OR purl. Do not combine purl with name or ecosystem. OSV validates these semantic combinations.
Continuation token from the prior result. In a batch, use the token belonging to the same query item.
The version string to query for. A fuzzy match is done against upstream versions. If specified, `commit` should not be set. Do not combine top-level version with a version embedded in package.purl; OSV returns 400 for that combination.
Query format.
queries[1]* object
The commit hash to query for. If specified, `version` should not be set.
package object
The package to query against. When a `commit` hash is given, this is optional. Use name AND ecosystem OR purl. Do not combine purl with name or ecosystem. OSV validates these semantic combinations.
Continuation token from the prior result. In a batch, use the token belonging to the same query item.
The version string to query for. A fuzzy match is done against upstream versions. If specified, `commit` should not be set. Do not combine top-level version with a version embedded in package.purl; OSV returns 400 for that combination.
Query format.
queries[2]* object
The commit hash to query for. If specified, `version` should not be set.
package object
Required. The ecosystem for this package. For the complete list of valid ecosystem names, see <https://ossf.github.io/osv-schema/#affectedpackage-field>.
Required. Name of the package. Should match the name used in the package ecosystem (e.g. the npm package name). For C/C++ projects integrated in OSS-Fuzz, this is the name used for the integration.
Optional. The package URL for this package.
The package to query against. When a `commit` hash is given, this is optional. Use name AND ecosystem OR purl. Do not combine purl with name or ecosystem. OSV validates these semantic combinations.
Continuation token from the prior result. In a batch, use the token belonging to the same query item.
The version string to query for. A fuzzy match is done against upstream versions. If specified, `commit` should not be set. Do not combine top-level version with a version embedded in package.purl; OSV returns 400 for that combination.
Query format.
The queries that form this batch query. Maximum 1000 queries per the official operation summary; additionally subject to the 1 MiB platform request limit.
Batch query format.

Sample response

{
  "results": [
    {
      "vulns": [
        {
          "id": "GHSA-3v79-q7ph-j75h",
          "modified": "2025-04-08T22:30:59.347458Z"
        },
        {
          "id": "GHSA-42h5-h8qh-vv9v",
          "modified": "2026-07-13T16:42:45.636199Z"
        },
        {
          "id": "GHSA-46r5-x6jq-v8g6",
          "modified": "2026-09-10T03:50:42.818312Z"
        },
        {
          "id": "GHSA-49m6-vrr9-2cqm",
          "modified": "2026-07-07T17:56:37.046447Z"
        },
        {
          "id": "GHSA-4qq5-mxxx-m6gg",
          "modified": "2026-11-16T15:45:09.942130Z"
        },
        {
          "id": "GHSA-4rj2-9gcx-5qhx",
          "modified": "2025-04-09T20:36:23.179705Z"
        },
        {
          "id": "GHSA-4rqf-8pfm-p36r",
          "modified": "2026-07-07T17:56:58.367078Z"
        },
        {
          "id": "GHSA-4x5p-f36r-mxxr",
          "modified": "2026-09-10T03:50:34.192729Z"
        },
        {
          "id": "GHSA-554w-xh4j-8w64",
          "modified": "2024-02-16T08:16:33.638397Z"
        },
        {
          "id": "GHSA-59v3-898r-qwhj",
          "modified": "2026-11-16T15:30:03.449377Z"
        },
        {
          "id": "GHSA-5cvj-7rg6-jggj",
          "modified": "2026-07-07T17:57:14.740631Z"
        },
        {
          "id": "GHSA-5mvj-wmgj-7q8c",
          "modified": "2026-07-07T17:57:24.849466Z"
        },
        {
          "id": "GHSA-5p3h-7fwh-92rc",
          "modified": "2026-06-29T12:26:10.661493Z"
        },
        {
          "id": "GHSA-5q6c-ffvg-xcm9",
          "modified": "2025-04-08T22:30:40.119861Z"
        },
        {
          "id": "GHSA-5qmp-p3c4-72qj",
          "modified": "2026-07-15T18:11:16.191752Z"
        },
        {
          "id": "GHSA-5r3q-93q3-f978",
          "modified": "2025-02-15T05:29:43.832780Z"
        },
        {
          "id": "GHSA-65h7-c7c4-mghx",
          "modified": "2026-07-13T07:26:23.062638Z"
        },
        {
          "id": "GHSA-6749-m5cp-6cg7",
          "modified": "2025-04-08T18:08:28.475585Z"
        },
        {
          "id": "GHSA-6xj8-rrqx-r4cv",
          "modified": "2026-07-07T17:57:16.024038Z"
        },
        {
          "id": "GHSA-75cm-x2w3-8mgf",
          "modified": "2026-07-13T07:26:15.599841Z"
        },
        {
          "id": "GHSA-7qhf-v65m-g5f3",
          "modified": "2026-11-16T15:45:09.323976Z"
        },
        {
          "id": "GHSA-83fm-w79m-64r5",
          "modified": "2024-11-28T05:40:42.701104Z"
        },
        {
          "id": "GHSA-8c7q-86fq-vvmh",
          "modified": "2026-10-06T19:00:43.189915Z"
        },
        {
          "id": "GHSA-8f8q-q2j7-7j2m",
          "modified": "2026-07-07T17:56:27.089622Z"
        },
        {
          "id": "GHSA-cxfr-5q3r-2rc2",
          "modified": "2024-11-22T18:39:52.949022Z"
        },
        {
          "id": "GHSA-f42m-mvfv-cgw5",
          "modified": "2026-07-07T17:56:52.494274Z"
        },
        {
          "id": "GHSA-f798-qm4r-23r5",
          "modified": "2026-11-16T15:45:09.332883Z"
        },
        {
          "id": "GHSA-f82r-jj5r-6g97",
          "modified": "2026-07-07T17:56:48.084074Z"
        },
        {
          "id": "GHSA-ffw3-6378-cqgp",
          "modified": "2024-11-22T18:41:19.664804Z"
        },
        {
          "id": "GHSA-fh64-r2vc-xvhr",
          "modified": "2026-09-10T03:50:44.231753Z"
        },
        {
          "id": "GHSA-fhff-qmm8-h2fp",
          "modified": "2026-09-10T03:51:00.308511Z"
        },
        {
          "id": "GHSA-fmxj-6h9g-6vw3",
          "modified": "2025-04-10T02:22:00.005648Z"
        },
        {
          "id": "GHSA-g35p-px32-whv6",
          "modified": "2026-07-13T07:26:21.561108Z"
        },
        {
          "id": "GHSA-g6pg-52vf-843h",
          "modified": "2026-09-10T03:50:39.211467Z"
        },
        {
          "id": "GHSA-gq3w-7jj3-x7gr",
          "modified": "2026-09-10T03:50:35.176412Z"
        },
        {
          "id": "GHSA-hh8p-p8mp-gqhm",
          "modified": "2026-11-16T15:45:09.319045Z"
        },
        {
          "id": "GHSA-hq88-wg7q-gp4g",
          "modified": "2025-04-08T22:31:13.263185Z"
        },
        {
          "id": "GHSA-hvc6-42vf-jhf8",
          "modified": "2026-07-07T17:57:30.009751Z"
        },
        {
          "id": "GHSA-j46q-5pxx-8vmw",
          "modified": "2025-04-08T22:41:08.208625Z"
        },
        {
          "id": "GHSA-j62r-wxqq-f3gf",
          "modified": "2026-07-07T17:56:41.515603Z"
        },
        {
          "id": "GHSA-m49c-5c52-6696",
          "modified": "2026-07-07T17:56:59.583439Z"
        },
        {
          "id": "GHSA-p4jx-q62p-x5jr",
          "modified": "2026-02-22T22:56:17.177745Z"
        },
        {
          "id": "GHSA-pgqp-8h46-6x4j",
          "modified": "2026-09-10T03:50:33.637284Z"
        },
        {
          "id": "GHSA-q2r8-vmq7-fpx2",
          "modified": "2026-09-10T03:50:59.539072Z"
        },
        {
          "id": "GHSA-q3gw-8236-5jw4",
          "modified": "2026-07-07T17:57:13.920343Z"
        },
        {
          "id": "GHSA-qg8p-32gr-gh6x",
          "modified": "2026-07-07T17:56:51.120771Z"
        },
        {
          "id": "GHSA-qpgc-w4mg-6v92",
          "modified": "2025-02-03T16:57:04.978745Z"
        },
        {
          "id": "GHSA-r23q-823p-vmf7",
          "modified": "2026-11-16T15:45:09.906654Z"
        },
        {
          "id": "GHSA-r5m9-wm49-959f",
          "modified": "2026-07-13T16:42:37.733340Z"
        },
        {
          "id": "GHSA-rvhj-8chj-8v3c",
          "modified": "2026-11-16T15:45:09.934707Z"
        },
        {
          "id": "GHSA-v945-r3rc-6fjm",
          "modified": "2025-04-09T20:35:18.560133Z"
        },
        {
          "id": "GHSA-vhcx-3pq2-4fvc",
          "modified": "2026-11-16T15:45:10.350790Z"
        },
        {
          "id": "GHSA-vqj2-4v8m-8vrq",
          "modified": "2025-02-21T05:42:14.252193Z"
        },
        {
          "id": "GHSA-vwhf-3v6x-wff8",
          "modified": "2024-04-16T19:01:12.743559Z"
        },
        {
          "id": "GHSA-w5xq-c4pf-ghq7",
          "modified": "2026-07-13T16:43:34.965176Z"
        },
        {
          "id": "GHSA-wc6j-5g83-xfm6",
          "modified": "2024-02-16T08:22:12.371365Z"
        },
        {
          "id": "GHSA-wjq3-7jxx-whj9",
          "modified": "2024-09-24T21:24:14.626565Z"
        },
        {
          "id": "GHSA-wp72-7hj9-5265",
          "modified": "2024-09-25T18:02:23.373121Z"
        },
        {
          "id": "GHSA-wqmh-qccw-pqwf",
          "modified": "2026-10-26T08:55:45.131986Z"
        },
        {
          "id": "GHSA-wqxf-447m-6f5f",
          "modified": "2026-07-07T17:56:44.314962Z"
        },
        {
          "id": "GHSA-wv8q-4f85-2p8p",
          "modified": "2026-07-07T17:57:27.441049Z"
        },
        {
          "id": "GHSA-wxj7-3fx5-pp9m",
          "modified": "2025-09-25T09:27:11.132516Z"
        },
        {
          "id": "GHSA-x422-6qhv-p29g",
          "modified": "2025-02-16T05:29:05.740881Z"
        },
        {
          "id": "GHSA-xch3-2f9x-wh9f",
          "modified": "2026-09-10T03:51:00.797853Z"
        },
        {
          "id": "GHSA-xg73-94fp-g449",
          "modified": "2026-02-22T22:56:04.142153Z"
        },
        {
          "id": "PYSEC-2022-28",
          "modified": "2023-12-06T01:01:48.937061Z"
        },
        {
          "id": "PYSEC-2023-252",
          "modified": "2026-06-10T17:02:17.222030Z"
        },
        {
          "id": "PYSEC-2023-253",
          "modified": "2026-06-10T17:02:17.286767Z"
        },
        {
          "id": "PYSEC-2023-260",
          "modified": "2026-06-10T17:02:17.395201Z"
        },
        {
          "id": "PYSEC-2023-28",
          "modified": "2026-06-10T17:02:17.449843Z"
        },
        {
          "id": "PYSEC-2023-280",
          "modified": "2026-06-10T17:02:19.924728Z"
        },
        {
          "id": "PYSEC-2023-281",
          "modified": "2026-06-10T17:02:07.582747Z"
        },
        {
          "id": "PYSEC-2023-29",
          "modified": "2026-06-10T17:02:07.547735Z"
        },
        {
          "id": "PYSEC-2023-308",
          "modified": "2026-06-10T17:02:13.807725Z"
        },
        {
          "id": "PYSEC-2023-309",
          "modified": "2026-06-10T17:02:13.883111Z"
        },
        {
          "id": "PYSEC-2023-68",
          "modified": "2026-06-10T17:02:18.760275Z"
        },
        {
          "id": "PYSEC-2023-69",
          "modified": "2026-06-10T17:02:18.734880Z"
        },
        {
          "id": "PYSEC-2023-70",
          "modified": "2026-06-10T17:02:18.747982Z"
        },
        {
          "id": "PYSEC-2024-224",
          "modified": "2026-06-10T17:02:19.287503Z"
        },
        {
          "id": "PYSEC-2024-239",
          "modified": "2026-06-10T17:01:26.015570Z"
        },
        {
          "id": "PYSEC-2024-240",
          "modified": "2026-06-10T17:01:26.418238Z"
        },
        {
          "id": "PYSEC-2024-241",
          "modified": "2026-06-10T17:01:26.483700Z"
        },
        {
          "id": "PYSEC-2024-242",
          "modified": "2026-06-10T17:01:26.516732Z"
        },
        {
          "id": "PYSEC-2024-243",
          "modified": "2026-06-10T17:01:26.574516Z"
        },
        {
          "id": "PYSEC-2024-244",
          "modified": "2026-06-10T17:02:13.819604Z"
        },
        {
          "id": "PYSEC-2024-51",
          "modified": "2026-06-10T17:01:27.427421Z"
        },
        {
          "id": "PYSEC-2025-17",
          "modified": "2026-06-10T17:00:19.264618Z"
        },
        {
          "id": "PYSEC-2025-52",
          "modified": "2026-06-10T17:02:20.265680Z"
        },
        {
          "id": "PYSEC-2026-1637",
          "modified": "2026-07-07T17:56:37.046447Z"
        },
        {
          "id": "PYSEC-2026-1638",
          "modified": "2026-07-07T17:56:58.367078Z"
        },
        {
          "id": "PYSEC-2026-1639",
          "modified": "2026-07-07T17:56:10.135090Z"
        },
        {
          "id": "PYSEC-2026-1640",
          "modified": "2026-07-07T17:57:14.740631Z"
        },
        {
          "id": "PYSEC-2026-1641",
          "modified": "2026-07-07T17:57:24.849466Z"
        },
        {
          "id": "PYSEC-2026-1642",
          "modified": "2026-07-07T17:57:16.024038Z"
        },
        {
          "id": "PYSEC-2026-1645",
          "modified": "2026-07-07T17:56:27.089622Z"
        },
        {
          "id": "PYSEC-2026-1649",
          "modified": "2026-07-07T17:56:52.494274Z"
        },
        {
          "id": "PYSEC-2026-1650",
          "modified": "2026-07-07T17:56:48.084074Z"
        },
        {
          "id": "PYSEC-2026-1652",
          "modified": "2026-07-07T17:57:30.009751Z"
        },
        {
          "id": "PYSEC-2026-1653",
          "modified": "2026-07-07T17:56:41.515603Z"
        },
        {
          "id": "PYSEC-2026-1655",
          "modified": "2026-07-07T17:56:59.583439Z"
        },
        {
          "id": "PYSEC-2026-1656",
          "modified": "2026-07-07T17:56:18.060826Z"
        },
        {
          "id": "PYSEC-2026-1658",
          "modified": "2026-07-07T17:57:13.920343Z"
        },
        {
          "id": "PYSEC-2026-1659",
          "modified": "2026-07-07T17:56:51.120771Z"
        },
        {
          "id": "PYSEC-2026-1661",
          "modified": "2026-07-07T17:56:44.314962Z"
        },
        {
          "id": "PYSEC-2026-1662",
          "modified": "2026-07-07T17:57:27.441049Z"
        },
        {
          "id": "PYSEC-2026-195",
          "modified": "2026-07-23T15:00:15.414047Z"
        },
        {
          "id": "PYSEC-2026-2219",
          "modified": "2026-07-13T16:45:08.114491Z"
        },
        {
          "id": "PYSEC-2026-2220",
          "modified": "2026-07-13T16:45:09.276740Z"
        },
        {
          "id": "PYSEC-2026-2221",
          "modified": "2026-07-13T16:45:09.381556Z"
        },
        {
          "id": "PYSEC-2026-2222",
          "modified": "2026-07-13T16:45:04.877817Z"
        },
        {
          "id": "PYSEC-2026-2654",
          "modified": "2026-07-13T16:42:45.636199Z"
        },
        {
          "id": "PYSEC-2026-2655",
          "modified": "2026-07-13T16:43:33.416174Z"
        },
        {
          "id": "PYSEC-2026-2656",
          "modified": "2026-07-13T16:43:21.433539Z"
        },
        {
          "id": "PYSEC-2026-2657",
          "modified": "2026-07-13T16:32:38.663003Z"
        },
        {
          "id": "PYSEC-2026-2658",
          "modified": "2026-07-13T16:32:38.869804Z"
        },
        {
          "id": "PYSEC-2026-2659",
          "modified": "2026-07-13T16:42:37.733340Z"
        },
        {
          "id": "PYSEC-2026-2660",
          "modified": "2026-07-13T16:43:34.965176Z"
        },
        {
          "id": "PYSEC-2026-2661",
          "modified": "2026-07-13T16:42:49.591762Z"
        },
        {
          "id": "PYSEC-2026-3687",
          "modified": "2026-08-21T08:40:32.349552Z"
        },
        {
          "id": "PYSEC-2026-415",
          "modified": "2026-07-01T20:22:58.262031Z"
        },
        {
          "id": "PYSEC-2026-416",
          "modified": "2026-07-01T20:22:58.272197Z"
        },
        {
          "id": "PYSEC-2026-417",
          "modified": "2026-07-13T16:15:28.292283Z"
        },
        {
          "id": "PYSEC-2026-419",
          "modified": "2026-07-01T20:22:58.301401Z"
        },
        {
          "id": "PYSEC-2026-420",
          "modified": "2026-07-01T20:22:58.313071Z"
        },
        {
          "id": "PYSEC-2026-421",
          "modified": "2026-07-01T20:22:58.325967Z"
        },
        {
          "id": "PYSEC-2026-422",
          "modified": "2026-07-01T20:22:58.337501Z"
        },
        {
          "id": "PYSEC-2026-423",
          "modified": "2026-07-01T20:22:58.350388Z"
        },
        {
          "id": "PYSEC-2026-424",
          "modified": "2026-07-01T20:22:58.365246Z"
        },
        {
          "id": "PYSEC-2026-425",
          "modified": "2026-07-01T20:22:58.380148Z"
        },
        {
          "id": "PYSEC-2026-93",
          "modified": "2026-06-10T17:02:20.155874Z"
        },
        {
          "id": "PYSEC-2026-94",
          "modified": "2026-06-10T17:02:20.749690Z"
        }
      ]
    },
    {
      "vulns": [
        {
          "id": "CVE-2023-25193",
          "modified": "2026-10-28T10:36:19.846827Z"
        },
        {
          "id": "CVE-2026-22693",
          "modified": "2026-10-28T10:50:39.491760Z"
        },
        {
          "id": "OSV-2020-484",
          "modified": "2022-04-13T03:04:32.842142Z"
        }
      ]
    },
    {
      "vulns": [
        {
          "id": "GHSA-462w-v97r-4m45",
          "modified": "2024-09-24T21:03:59.802687Z"
        },
        {
          "id": "GHSA-8r7q-cvjq-x353",
          "modified": "2024-09-24T18:48:44.375484Z"
        },
        {
          "id": "GHSA-cpwx-vrp4-4pq7",
          "modified": "2026-11-18T00:45:13.756181Z"
        },
        {
          "id": "GHSA-fqh9-2qgg-h84h",
          "modified": "2024-09-23T20:03:14.751414Z"
        },
        {
          "id": "GHSA-g3rq-g295-4j3m",
          "modified": "2025-02-14T05:26:14.565160Z"
        },
        {
          "id": "GHSA-h5c8-rqwp-cp95",
          "modified": "2026-09-10T03:50:00.236017Z"
        },
        {
          "id": "GHSA-h75v-3vvj-5mfj",
          "modified": "2026-09-10T03:50:13.786450Z"
        },
        {
          "id": "GHSA-hj2j-77xm-mc5v",
          "modified": "2024-09-24T21:04:16.963502Z"
        },
        {
          "id": "GHSA-q2x7-8rv6-6q7h",
          "modified": "2026-09-10T03:50:21.662855Z"
        },
        {
          "id": "PYSEC-2014-8",
          "modified": "2023-11-08T03:57:34.512953Z"
        },
        {
          "id": "PYSEC-2014-82",
          "modified": "2026-06-10T17:01:55.953302Z"
        },
        {
          "id": "PYSEC-2019-217",
          "modified": "2023-11-08T04:00:58.644982Z"
        },
        {
          "id": "PYSEC-2019-220",
          "modified": "2023-11-08T03:58:21.453618Z"
        },
        {
          "id": "PYSEC-2021-66",
          "modified": "2023-11-08T04:03:28.543308Z"
        },
        {
          "id": "PYSEC-2026-1471",
          "modified": "2026-07-07T17:46:43.358335Z"
        },
        {
          "id": "PYSEC-2026-1473",
          "modified": "2026-07-07T17:46:13.853151Z"
        },
        {
          "id": "PYSEC-2026-1474",
          "modified": "2026-07-07T17:46:13.832160Z"
        },
        {
          "id": "PYSEC-2026-1475",
          "modified": "2026-07-07T17:46:13.842466Z"
        }
      ]
    }
  ]
}

Response result

Response structure

Inferred from examples
  • resultsobject[]
    • vulnsobject[]
      • idstring
      • modifiedstring

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use OSV Batch Vulnerability Query API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.