OpenAI is partnering with Hacktron to find vulnerabilities in its systems. Read the announcement.

Skip to content Hacktron Sign in [S]
Hacktron Sign in [S] Customers Docs Contact Sign in

Get scoped npm package verdict

1 min
, View, ChatGPT, Claude, Perplexity, OpenAPI

Copy page

Get scoped npm package verdict

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Returns a fast dependency verdict for a scoped npm package, such as @scope/name. GitHub Action scans use it to flag known-malicious dependencies. scope and packageName are separate path segments, and the package version is a required query parameter.

For unscoped packages, use GET /hfw/verdict/{ecosystem}/{packageName}.

This is a public, fast-mode endpoint. It covers feed-backed verdicts only and normally returns straight away. To wait briefly for an upstream verdict, set wait_seconds.

Request

GET /hfw/verdict/{ecosystem}/{scope}/{packageName}

This endpoint takes no API key.

Path parameters

ParameterDescription
ecosystem
string, required
One of npm or pypi.
scope
string, required
packageName
string, required

Query parameters

ParameterDescription
version
string, required
Package version to check.
wait_seconds
number
Seconds to wait for an upstream verdict. Fast mode normally returns immediately. Default 0. At least 0. At most 8.

Responses

200 OK

FieldDescription
status
string, required
One of ready, pending, or scanning.
ecosystem
string, required
One of npm or pypi.
package
string, required
version
string, required
level
string, required
One of clean, suspicious, malicious, or unknown.
confidence
string, required
summary
string, required
findings
array of object, required
source
string
osv_id
string
[↓] [↑] [enter] to visit
Menu
[M]
Next in menu
[J]
Previous in menu
[K]
Find
[F]
Ask
[A]
Sign in
[S]
Copy page
[C]
Listen
[L]
Justification
[R]
Language
[G]
Dark mode
[D]
High contrast
[H]
Shortcuts
[I]
Close
[Esc]