Skip to content

Title: Question: terms for using the hosted API (api.osv.dev) in a commercial product #6264

Open

Description

@franklinosuji2-afk

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:

  1. 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.
  2. 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.
  3. 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?
  4. 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?
  5. 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.
  6. Records from sources with restrictive or unstated licences (for example the CC-BY-NC-ND 4.0 Wolfi data mentioned in Clarify licenses of aggregated data, in particular undisclosed CC-BY-ND-NC licensed data #6218): is there a way to filter these out when querying npm and PyPI, or are they never returned for those ecosystems?

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.

Thank you!

Activity

  1. michaelkedar commented on Nov 3, 2026

    @michaelkedar
    Member

    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.

  2. xnox commented on Nov 10, 2026

    @xnox
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions