# OSV Batch Vulnerability Query API

Query OSV vulnerabilities in batches via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Osv, pass parameters such as queries, and retrieve structured data including id and modified for dependency inventory, and targeted triage, ready for production pipelines and AI agent automation using a single OpenAny API key.

Documentation: https://openany.si/market/apis/osv/osv-batch-vulnerability-query-api/?offering=faf13500-da6b-4820-96f9-04e39afff365
API ID: faf13500-da6b-4820-96f9-04e39afff365
Provider: osv
Contract revision: 2
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/osv/v1/querybatch
Page update time: 2026-12-03T02:49:10.481Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.005 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:09.749Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "5000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OSV Batch Vulnerability Query API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "Batch query format.",
      "properties": {
        "queries": {
          "description": "The queries that form this batch query. Maximum 1000 queries per the official operation summary; additionally subject to the 1 MiB platform request limit.",
          "items": {
            "description": "Query format.",
            "properties": {
              "commit": {
                "description": "The commit hash to query for. If specified, `version` should not be set.",
                "type": "string"
              },
              "package": {
                "description": "The package to query against. When a `commit` hash is given, this is\noptional. Use name AND ecosystem OR purl. Do not combine purl with name or ecosystem. OSV validates these semantic combinations.",
                "properties": {
                  "ecosystem": {
                    "description": "Required. The ecosystem for this package.\nFor the complete list of valid ecosystem names, see\n<https://ossf.github.io/osv-schema/#affectedpackage-field>.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Required. Name of the package. Should match the name used in the package\necosystem (e.g. the npm package name). For C/C++ projects integrated in\nOSS-Fuzz, this is the name used for the integration.",
                    "type": "string"
                  },
                  "purl": {
                    "description": "Optional. The package URL for this package.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "page_token": {
                "description": "Continuation token from the prior result. In a batch, use the token belonging to the same query item.",
                "type": "string"
              },
              "version": {
                "description": "The version string to query for. A fuzzy match is done against upstream\nversions. 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.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "maxItems": 1000,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "vulns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "modified": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live OSV paired capture - 2026-11-19
```bash
curl \
  'https://api.openany.si/v1/agent-apis/osv/v1/querybatch' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "queries": [
    {
      "package": {
        "purl": "pkg:pypi/mlflow@0.4.0"
      }
    },
    {
      "commit": "6879efc2c1596d11a6a6ad296f80063b558d5e0f"
    },
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "jinja2"
      },
      "version": "2.4.1"
    }
  ]
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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"
        }
      ]
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- osv: https://openany.si/market/apis/osv/osv-batch-vulnerability-query-api/?offering=faf13500-da6b-4820-96f9-04e39afff365

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
