You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title: Question: terms for using the hosted API (api.osv.dev) in a commercial product #6264
Title: Question: terms for using the hosted API (api.osv.dev) in a commercial product
Hi, and thank you for OSV.
I am building a small commercial dependency-scanning feature (a SaaS) and would like to use the hosted API to look up known vulnerabilities for npm and PyPI packages. I could not find written terms for this on the documentation pages, so I would like to ask before building anything:
Is it acceptable to call https://api.osv.dev from a commercial, paid service? The API page says there are currently no limits, but I could not find a usage policy or terms of service.
Is there a rate or volume you would ask production users to stay under (for example, queries per second for /v1/querybatch)? Is there a recommended maximum number of queries per batch? The docs do not state one.
Attribution: when we show advisory text (summary, references) from OSV records in a report to our customers, what attribution do you expect for sources such as the GitHub Advisory Database and the PyPI Advisory Database (both listed as CC-BY 4.0)? Is a general credit to OSV and the source database enough?
Caching: may we cache responses for a limited time, and may we keep a local copy built from the documented bulk download (the GCS bucket) to answer our own lookups? Is there any licence statement that applies to the bulk download as a whole?
Are API requests logged or retained, and for how long? We only send ecosystem, package name and exact version, but we want to describe this accurately in our privacy notice.
A short answer, or a pointer to a page I missed, would be very helpful. If there is a better place to ask (a mailing list or a contact address), please let me know.
Hi,
Regarding your legal/licensing questions, I am not a lawyer, so I can't really speak to the specifics on them. I'll try to get back to you with more concrete answers.
Is it acceptable to call https://api.osv.dev from a commercial, paid service? The API page says there are currently no limits, but I could not find a usage policy or terms of service.
Yes, we are fine with people using the OSV API in commercial products.
Is there a rate or volume you would ask production users to stay under (for example, queries per second for /v1/querybatch)? Is there a recommended maximum number of queries per batch? The docs do not state one.
At the moment, we do not impose rate limits on the API, as we are coping with the current demand. The service is provided as-is without an SLA, and we may introduce rate limits or usage policies in the future if needed. The batch query endpoint supports a maximum of 1000 queries in a single request.
Attribution: when we show advisory text (summary, references) from OSV records in a report to our customers, what attribution do you expect for sources such as the GitHub Advisory Database and the PyPI Advisory Database (both listed as CC-BY 4.0)? Is a general credit to OSV and the source database enough?
We would appreciate linking to OSV.dev in your product. For upstream sources (linked here), I can't advise on what satisfies CC-BY-4.0's attribution requirements.
Caching: may we cache responses for a limited time, and may we keep a local copy built from the documented bulk download (the GCS bucket) to answer our own lookups? Is there any licence statement that applies to the bulk download as a whole?
From an operational perspective, we are fine with caching API responses and keeping a local copy from the GCS bulk downloads (and encourage the bulk downloads for higher-volume use). We do not currently publish a separate license statement covering the bulk download as a whole beyond the upstream data source licenses (and you'll want to ensure your use complies with those upstream licenses).
Are API requests logged or retained, and for how long? We only send ecosystem, package name and exact version, but we want to describe this accurately in our privacy notice.
At the OSV application/Cloud Run level today (which may be subject to change), we log the requested endpoint (so GET /v1/vulns/{id} logs the vulnerability ID), standard HTTP request metadata (IP, user agent, status, etc.), and the query's ecosystem - not the package name or version. These have a 365-day log retention in Cloud Logging.
Records from sources with restrictive or unstated licences: is there a way to filter these out when querying npm and PyPI, or are they never returned for those ecosystems?
Chainguard/Wolfi only publish for the Chainguard and Wolfi ecosystems, so there shouldn't be any results from them when querying for npm/PyPI. If you want to filter out specific data sources, you could cross-reference the ID prefix with source.yaml.
The latter license terms are permissive and should be suitable for your needs. If it isn't, or you have any questions or concerns, please reach out - and I can put you in touch with relevant people to discuss this further privately.
Activity
michaelkedar commentedon Nov 3, 2026
Hi,
Regarding your legal/licensing questions, I am not a lawyer, so I can't really speak to the specifics on them. I'll try to get back to you with more concrete answers.
Yes, we are fine with people using the OSV API in commercial products.
At the moment, we do not impose rate limits on the API, as we are coping with the current demand. The service is provided as-is without an SLA, and we may introduce rate limits or usage policies in the future if needed. The batch query endpoint supports a maximum of 1000 queries in a single request.
We would appreciate linking to OSV.dev in your product. For upstream sources (linked here), I can't advise on what satisfies CC-BY-4.0's attribution requirements.
From an operational perspective, we are fine with caching API responses and keeping a local copy from the GCS bulk downloads (and encourage the bulk downloads for higher-volume use). We do not currently publish a separate license statement covering the bulk download as a whole beyond the upstream data source licenses (and you'll want to ensure your use complies with those upstream licenses).
At the OSV application/Cloud Run level today (which may be subject to change), we log the requested endpoint (so
GET /v1/vulns/{id}logs the vulnerability ID), standard HTTP request metadata (IP, user agent, status, etc.), and the query's ecosystem - not the package name or version. These have a 365-day log retention in Cloud Logging.Chainguard/Wolfi only publish for the
ChainguardandWolfiecosystems, so there shouldn't be any results from them when querying fornpm/PyPI. If you want to filter out specific data sources, you could cross-reference the ID prefix withsource.yaml.xnox commentedon Nov 10, 2026
@franklinosuji2-afk
Hi, The Wolfi & Chainguard OSV feed is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0), provided, however, the Chainguard License for Commercial Scanners shall apply to Commercial Scanners available at https://www.chainguard.dev/legal/chainguard-license-for-commercial-scanners, as such terms are defined therein.
The latter license terms are permissive and should be suitable for your needs. If it isn't, or you have any questions or concerns, please reach out - and I can put you in touch with relevant people to discuss this further privately.