OSV Package Vulnerability Query API
Use the OSV Package Vulnerability Query API to find known vulnerabilities affecting an open source package version or Git commit. Identify a package with its name and ecosystem or a Package URL, or provide a commit hash, then continue with a page token when more results are available. Review affected version ranges, published advisories, and available fix references to check dependency updates, investigate a vulnerable release, or add checks to a build workflow. Results reflect the indexed database rather than a scan of your source code. The detail page includes request and response examples, supported parameters, and per-request pricing.
- Selected price
- $0.005 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
osvCurrent OSV Package Vulnerability Query API · POST · View API reference | $0.005 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
vulnsobject[]affectedobject[]database_specificobjectsourcestring
ecosystem_specificobjectseveritystring
packageobjectecosystemstringnamestringpurlstring
rangesobject[]eventsobject[]introducedstringfixedstring
repostringtypestring
versionsstring[]
detailsstringidstringmodifiedstringpublishedstringreferencesobject[]typestringurlstring
schema_versionstringsummarystring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
vulns?: Array<{
affected?: Array<{
database_specific?: {
source?: string;
};
ecosystem_specific?: {
severity?: string;
};
package?: {
ecosystem?: string;
name?: string;
purl?: string;
};
ranges?: Array<{
events?: Array<{
introduced?: string;
fixed?: string;
}>;
repo?: string;
type?: string;
}>;
versions?: Array<string>;
}>;
details?: string;
id?: string;
modified?: string;
published?: string;
references?: Array<{
type?: string;
url?: string;
}>;
schema_version?: string;
summary?: string;
}>;
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/osv/v1/query- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/osv/v1/query' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby"
},
"version": "2.1.2"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
commit | JSON request bodybody | string | No | The commit hash to query for. If specified, `version` should not be set. |
package | JSON request bodybody | object | No | 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.Nested fields and variants
|
page_token | JSON request bodybody | string | No | Continuation token from the prior result. In a batch, use the token belonging to the same query item. |
version | JSON request bodybody | string | No | 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. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"vulns": [
{
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby",
"purl": "pkg:generic/mruby"
},
"ranges": [
{
"events": [
{
"introduced": "9cdf439db52b66447b4e37c61179d54fad6c8f33"
},
{
"fixed": "97319697c8f9f6ff27b32589947e1918e3015503"
}
],
"repo": "https://github.com/mruby/mruby",
"type": "GIT"
}
],
"versions": [
"2.1.2",
"2.1.2-rc",
"2.1.2-rc2"
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n",
"id": "OSV-2020-744",
"modified": "2022-04-13T03:04:39.780694Z",
"published": "2020-07-04T00:00:01.948828Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801"
}
],
"schema_version": "1.7.3",
"summary": "Heap-double-free in mrb_default_allocf"
}
]
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# OSV Package Vulnerability Query API
Use the OSV Package Vulnerability Query API to find known vulnerabilities affecting an open source package version or Git commit. Identify a package with its name and ecosystem or a Package URL, or provide a commit hash, then continue with a page token when more results are available. Review affected version ranges, published advisories, and available fix references to check dependency updates, investigate a vulnerable release, or add checks to a build workflow. Results reflect the indexed database rather than a scan of your source code. The detail page includes request and response examples, supported parameters, and per-request pricing.
Documentation: https://openany.si/apis/a2510498-4401-4086-88c8-a9459e172820
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/osv/v1/query
Price: $0.005 / call
Provider: osv
Contract revision: 1
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/osv/v1/query' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby"
},
"version": "2.1.2"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "OSV Package Vulnerability Query API",
"endpoint": "https://api.openany.si/v1/agent-apis/osv/v1/query",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Query format.",
"json_schema": {
"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"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "5000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live OSV paired capture - 2026-11-19",
"request": {
"body": {
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby"
},
"version": "2.1.2"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"vulns": [
{
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby",
"purl": "pkg:generic/mruby"
},
"ranges": [
{
"events": [
{
"introduced": "9cdf439db52b66447b4e37c61179d54fad6c8f33"
},
{
"fixed": "97319697c8f9f6ff27b32589947e1918e3015503"
}
],
"repo": "https://github.com/mruby/mruby",
"type": "GIT"
}
],
"versions": [
"2.1.2",
"2.1.2-rc",
"2.1.2-rc2"
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n",
"id": "OSV-2020-744",
"modified": "2022-04-13T03:04:39.780694Z",
"published": "2020-07-04T00:00:01.948828Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801"
}
],
"schema_version": "1.7.3",
"summary": "Heap-double-free in mrb_default_allocf"
}
]
}
},
{
"http_status": 200,
"name": "Official example · Historical official documentation response",
"request": {
"body": {
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby"
},
"version": "2.1.2"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"vulns": [
{
"affected": [
{
"database_specific": {
"source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml"
},
"ecosystem_specific": {
"severity": "HIGH"
},
"package": {
"ecosystem": "OSS-Fuzz",
"name": "mruby",
"purl": "pkg:generic/mruby"
},
"ranges": [
{
"events": [
{
"introduced": "9cdf439db52b66447b4e37c61179d54fad6c8f33"
},
{
"fixed": "97319697c8f9f6ff27b32589947e1918e3015503"
}
],
"repo": "https://github.com/mruby/mruby",
"type": "GIT"
}
],
"versions": [
"2.1.2",
"2.1.2-rc",
"2.1.2-rc2"
]
}
],
"details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n",
"id": "OSV-2020-744",
"modified": "2022-04-13T03:04:39.780694Z",
"published": "2020-07-04T00:00:01.948828Z",
"references": [
{
"type": "REPORT",
"url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801"
}
],
"schema_version": "1.4.0",
"summary": "Heap-double-free in mrb_default_allocf"
}
]
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example · Live OSV paired capture - 2026-11-19
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Query format.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/osv/v1/query' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "package": { "ecosystem": "OSS-Fuzz", "name": "mruby" }, "version": "2.1.2" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "vulns": [ { "affected": [ { "database_specific": { "source": "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/mruby/OSV-2020-744.yaml" }, "ecosystem_specific": { "severity": "HIGH" }, "package": { "ecosystem": "OSS-Fuzz", "name": "mruby", "purl": "pkg:generic/mruby" }, "ranges": [ { "events": [ { "introduced": "9cdf439db52b66447b4e37c61179d54fad6c8f33" }, { "fixed": "97319697c8f9f6ff27b32589947e1918e3015503" } ], "repo": "https://github.com/mruby/mruby", "type": "GIT" } ], "versions": [ "2.1.2", "2.1.2-rc", "2.1.2-rc2" ] } ], "details": "OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801\n\n```\nCrash type: Heap-double-free\nCrash state:\nmrb_default_allocf\nmrb_free\nobj_free\n```\n", "id": "OSV-2020-744", "modified": "2022-04-13T03:04:39.780694Z", "published": "2020-07-04T00:00:01.948828Z", "references": [ { "type": "REPORT", "url": "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23801" } ], "schema_version": "1.7.3", "summary": "Heap-double-free in mrb_default_allocf" } ] }
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 Package Vulnerability Query API with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.