Skip to main content
The query-by-username endpoint returns all verified threats linked to a specific publisher or author username within an ecosystem.
Subscription Required: This is a paid endpoint available to Researcher Pro and Enterprise users.
Use this endpoint to:
  • Investigate suspicious publishers: Look up all known malicious packages associated with a specific npm publisher, PyPI author, or other ecosystem account.
  • Track threat actors: Monitor whether a known malicious username has published additional packages across registries.
  • Enrich incident response: Quickly surface all threats tied to a publisher identified during an active investigation.
Endpoint
Required header
Alternative: Pass API key as query parameter: ?apikey=osm_your_token

Query parameters

ecosystem is required. Package ecosystem (npm, pypi, rubygems, vscode, skills, etc.) username is required. Publisher/author username to search for.

Response examples

Threats found

No threats

401 — Missing API token

401 — Invalid token

401 — Inactive token

403 — Requires Pro/Enterprise

400 — Missing params

500 — Failed to verify permissions

500 — Database query failed

cURL example