Walk declared dependencies bounded by depth and limit
curl --request POST \
--url https://api.scanoss.com/v3/dependencies/transitive \
--header 'Content-Type: application/json' \
--data '
{
"depth": 2,
"limit": 50,
"components": [
{
"purl": "pkg:npm/express",
"requirement": "4.18.2"
}
]
}
'import requests
url = "https://api.scanoss.com/v3/dependencies/transitive"
payload = {
"depth": 2,
"limit": 50,
"components": [
{
"purl": "pkg:npm/express",
"requirement": "4.18.2"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
depth: 2,
limit: 50,
components: [{purl: 'pkg:npm/express', requirement: '4.18.2'}]
})
};
fetch('https://api.scanoss.com/v3/dependencies/transitive', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scanoss.com/v3/dependencies/transitive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'depth' => 2,
'limit' => 50,
'components' => [
[
'purl' => 'pkg:npm/express',
'requirement' => '4.18.2'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scanoss.com/v3/dependencies/transitive"
payload := strings.NewReader("{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.scanoss.com/v3/dependencies/transitive")
.header("Content-Type", "application/json")
.body("{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/dependencies/transitive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": {
"status": "SUCCESS",
"message": "<string>"
},
"components": [
{
"purl": "<string>",
"requirement": "<string>",
"version": "<string>",
"dependencies": [
{
"purl": "<string>",
"version": "<string>",
"requirement": "<string>"
}
]
}
]
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": "error",
"error": {
"code": "INTERNAL_ERROR",
"message": "..."
},
"timestamp": "2026-05-19T11:39:56Z"
}dependencies
Walk declared dependencies bounded by depth and limit
All entry components must share a purl_type and that purl_type
must be in the supported set (composer, crates, gem, maven, npm).
depth defaults to 2 (max 2); limit defaults to 1000 (max
5000). The response groups the results per requested component:
each entry is echoed (purl, requirement, resolved version) with its
own transitive dependencies. An entry requested without a version or
requirement resolves to the component’s latest version.
POST
/
v3
/
dependencies
/
transitive
Walk declared dependencies bounded by depth and limit
curl --request POST \
--url https://api.scanoss.com/v3/dependencies/transitive \
--header 'Content-Type: application/json' \
--data '
{
"depth": 2,
"limit": 50,
"components": [
{
"purl": "pkg:npm/express",
"requirement": "4.18.2"
}
]
}
'import requests
url = "https://api.scanoss.com/v3/dependencies/transitive"
payload = {
"depth": 2,
"limit": 50,
"components": [
{
"purl": "pkg:npm/express",
"requirement": "4.18.2"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
depth: 2,
limit: 50,
components: [{purl: 'pkg:npm/express', requirement: '4.18.2'}]
})
};
fetch('https://api.scanoss.com/v3/dependencies/transitive', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scanoss.com/v3/dependencies/transitive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'depth' => 2,
'limit' => 50,
'components' => [
[
'purl' => 'pkg:npm/express',
'requirement' => '4.18.2'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scanoss.com/v3/dependencies/transitive"
payload := strings.NewReader("{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.scanoss.com/v3/dependencies/transitive")
.header("Content-Type", "application/json")
.body("{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/dependencies/transitive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"depth\": 2,\n \"limit\": 50,\n \"components\": [\n {\n \"purl\": \"pkg:npm/express\",\n \"requirement\": \"4.18.2\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": {
"status": "SUCCESS",
"message": "<string>"
},
"components": [
{
"purl": "<string>",
"requirement": "<string>",
"version": "<string>",
"dependencies": [
{
"purl": "<string>",
"version": "<string>",
"requirement": "<string>"
}
]
}
]
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"status": "error",
"error": {
"code": "INTERNAL_ERROR",
"message": "..."
},
"timestamp": "2026-05-19T11:39:56Z"
}Body
application/json