Skip to main content
The query-latest endpoint pulls the most recent verified threats (up to 100) added to the database for a given ecosystem. This is a free endpoint available to all authenticated users. Use this endpoint to:
  • Monitor recent threats in your ecosystem: Poll this endpoint on a schedule to stay current on new verified threats in the registries your organization depends on.
  • Build real-time security dashboards: Feed the response into an internal dashboard to give your security team visibility into emerging supply chain threats as they are verified.
  • Automate security scanning: Integrate the endpoint into CI/CD pipelines or dependency scanning workflows to flag newly verified threats against packages in your environment.
  • Research attack patterns: Pull recent threats to analyze trends in attacker behavior, targeting patterns, or payload types across ecosystems.
Use the /query-latest endpoint to pull the most recent verified threats added to the database for a given ecosystem. The endpoint returns up to 100 records per request, ordered by most recently added. This is a free endpoint available to all authenticated users.
This is the free version of threat-feed. If you have a subscription, use that API instead for a better experience.
Endpoint
Required header
Alternative: Pass API key as query parameter: ?apikey=osm_your_token

Query parameters

An ecosystem string (package ecosystem or threat type) is required. Valid values for packages: npm, pypi, crates, nuget, maven, go, packagist, rubygems, vscode, openvsx, brew, and skills. Valid values for other malicious assets: repository andcontainer. Not supported: domain, wallet, ip, url.

Response example

Success (200)

Depending on how you’ve integrated the API, you may see a blank version_info field or a null response. This indicates that all versions are malicious, which is common with malicious assets.

Errors

API error responses

Click this card for the latest list of error responses.

cURL example