threat-feed endpoint returns verified threats added to the OSM database within a rolling time window. Poll it every hour with hours=1 to never miss a threat.
Subscription Required: This is a paid endpoint available to Researcher Pro and Enterprise users.
- Keep blocklists current: Pull newly verified threats on a schedule and automatically update your block rules without manual review.
- Power automated alerting: Feed new threats into your SIEM, SOAR, or internal alerting pipeline as they are verified.
- Recover missed threats: Use a larger
hoursvalue (up to 24) to catch up after a poller outage without re-ingesting your entire threat history.
?apikey=osm_your_token
Paid Access Required This endpoint requires a Core or Enterprise API key. Standard API tokens will receive a 403 Forbidden response.
Query parameters
ecosystem is required:
- Valid values for packages:
npm,pypi,crates,nuget,maven,go,packagist,rubygems,vscode,openvsx,brew, andskills. - Valid values for other malicious assets:
repositoryandcontainer. - Not supported:
domain,wallet,ip,url.
hours let’s you select a look back window between 1 and 24 hours. If you don’t specify a value, the default is 1. For example, hours=6 returns all threats verified in the last 6 hours.
unverifiedprovides threat submissions that haven’t been verified by the OpenSourceMalware team. See Get unverified scans for instructions.
Response example
Success (200)
version_info field or a null response. This indicates that all versions are malicious, which is common with malicious assets.
401 — Missing API token
401 — Invalid or inactive token
403 — Requires Pro/Editor/Admin
400 — Missing threat_id
400 — Invalid UUID
404 — Not found or not verified/modified
cURL examples
Poll for npm threats in the last hour (default):Get unverified scans
Verified threats are accurate, but they lag behind real-time scanning by however long human review takes. If you’d rather trade a small false-positive risk for the freshest possible signal, you can pull scan results directly from OpenSourceMalware’s detection pipeline before a researcher has confirmed them. Addunverified=1 to any threat-feed request:

