Skip to main content
POST
/
v2
/
dependencies
/
transitive
/
components
Get transitive dependency details
curl --request POST \
  --url https://api.example.com/v2/dependencies/transitive/components \
  --header 'Content-Type: application/json' \
  --data '
{
  "depth": 3,
  "limit": 50,
  "components": [
    {
      "purl": "pkg:npm/express",
      "requirement": "4.18.0"
    },
    {
      "purl": "pkg:npm/lodash",
      "requirement": "4.17.0"
    }
  ]
}
'
{
  "dependencies": [
    {
      "purl": "pkg:npm/express@4.18.2",
      "version": "4.18.2"
    },
    {
      "purl": "pkg:npm/body-parser@1.20.1",
      "version": "1.20.1"
    },
    {
      "purl": "pkg:npm/cookie@0.5.0",
      "version": "0.5.0"
    }
  ],
  "status": {
    "status": "SUCCESS",
    "message": "Transitive dependencies successfully retrieved"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
depth
integer<int32>
limit
integer<int32>

TODO: Add scope filters: repeated string scope_include repeated string scope_exclude Using a list of strings allows filtering by multiple scopes simultaneously (e.g., include both "dev" and "test" dependencies in a single request)

components
List of Purls from the same ecosystem Supported ecosystems: "composer", "crates", "maven", "npm", "gem" · object[]

Response

A successful response.

dependencies
Dependency response details · object[]
status
object

Detailed response details.