Skip to content

List all project dependencies

GET
/api/v4/projects/{id}/dependencies

Lists all dependencies for a specified project. This operation partially mirrors the dependency list feature, which is available only for languages and package managers supported by Gemnasium. Responses are paginated and return 20 results by default.

id
required
One of:
string

The ID or URL-encoded path of the project

package_manager
Array<string>
nullable

Returns dependencies belonging to specified package managers: bundler, yarn, npm, pnpm, bun, maven, composer, pip, conan, go, nuget, sbt, gradle, pipenv, poetry, setuptools, apk, conda, pub, cargo.

Example
?package_manager=maven,yarn
page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
name
string
version
string
package_manager
string
dependency_file_path
string
vulnerabilities
object
severity
string
id
string
name
string
url
string
licenses
object
spdx_identifier
string
name
string
url
string
malware

Malware status: true if a GLAM identifier is present, false if the SSCS add-on is active but none found, null if the SSCS add-on is inactive.

boolean
Example generated
{
"name": "example",
"version": "example",
"package_manager": "example",
"dependency_file_path": "example",
"vulnerabilities": {
"severity": "example",
"id": "example",
"name": "example",
"url": "example"
},
"licenses": {
"spdx_identifier": "example",
"name": "example",
"url": "example"
},
"malware": true
}

Bad Request

Unauthorized

Not found