Skip to main content
POST
Scan a lockfile
Send a whole lockfile and get back every package in it that is known malware, has known vulnerabilities, or is installed from git instead of the registry. This covers transitive dependencies too, which a list of direct dependencies misses. Supported files: The file is analyzed in memory and not stored. Each request costs 5 units of your rate limit. The body can be up to 5 MB.

Request

Send the file as the raw body and its name as ?filename=:
Or as JSON:

Example

Response

In a requirements.txt, only exact pins (==) can be checked. Other lines are counted in packages but make the check partial and add an unpinned-dependencies finding. line is set for findings in a requirements.txt and null for lockfiles.

Rules

To check a single package in more depth, including install scripts, typosquatting, maintainers and release history, use Check a package.

Errors

Rejected requests are not charged.

Query Parameters

filename
string

Required for a raw body. One of package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, poetry.lock, uv.lock or requirements.txt (requirements-*.txt is also accepted).

Body

Lockfile contents

Response

Lockfile report

lockfile
object
required
summary
object
required
findings
object[]
required
checks
object
required
checked_at
string<date-time>
required