Resolve lifecycle status for many purls in one call
curl --request POST \
--url https://api.scanoss.com/v3/components/status \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
},
{
"purl": "pkg:npm/lodash"
}
]
}
'import requests
url = "https://api.scanoss.com/v3/components/status"
payload = { "components": [{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}, { "purl": "pkg:npm/lodash" }] }
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({
components: [
{purl: 'pkg:github/scanoss/engine', requirement: 'v5.4.5'},
{purl: 'pkg:npm/lodash'}
]
})
};
fetch('https://api.scanoss.com/v3/components/status', 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/components/status",
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([
'components' => [
[
'purl' => 'pkg:github/scanoss/engine',
'requirement' => 'v5.4.5'
],
[
'purl' => 'pkg:npm/lodash'
]
]
]),
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/components/status"
payload := strings.NewReader("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\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/components/status")
.header("Content-Type", "application/json")
.body("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/components/status")
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 \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"components": [
{
"purl": "<string>",
"name": "<string>",
"requirement": "<string>",
"version_status": {
"version": "<string>",
"status": "<string>",
"repository_status": "<string>",
"indexed_date": "<string>",
"status_change_date": "<string>",
"info_code": "REQUIREMENT_NOT_MET",
"info_message": "<string>"
},
"component_status": {
"status": "<string>",
"repository_status": "<string>",
"first_indexed_date": "<string>",
"last_indexed_date": "<string>",
"status_change_date": "<string>",
"info_code": "REQUIREMENT_NOT_MET",
"info_message": "<string>"
}
}
],
"status": {
"status": "SUCCESS",
"message": "<string>"
}
}{
"status": "error",
"error": {
"code": "INVALID_QUERY",
"message": "purl query parameter is required"
},
"timestamp": "2026-05-19T11:39:56Z"
}{
"status": "error",
"error": {
"code": "INTERNAL_ERROR",
"message": "..."
},
"timestamp": "2026-05-19T11:39:56Z"
}{
"status": "error",
"error": {
"code": "TIMEOUT",
"message": "request timed out"
},
"timestamp": "2026-05-19T11:39:56Z"
}components
Resolve lifecycle status for many purls in one call
POST
/
v3
/
components
/
status
Resolve lifecycle status for many purls in one call
curl --request POST \
--url https://api.scanoss.com/v3/components/status \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
},
{
"purl": "pkg:npm/lodash"
}
]
}
'import requests
url = "https://api.scanoss.com/v3/components/status"
payload = { "components": [{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}, { "purl": "pkg:npm/lodash" }] }
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({
components: [
{purl: 'pkg:github/scanoss/engine', requirement: 'v5.4.5'},
{purl: 'pkg:npm/lodash'}
]
})
};
fetch('https://api.scanoss.com/v3/components/status', 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/components/status",
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([
'components' => [
[
'purl' => 'pkg:github/scanoss/engine',
'requirement' => 'v5.4.5'
],
[
'purl' => 'pkg:npm/lodash'
]
]
]),
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/components/status"
payload := strings.NewReader("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\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/components/status")
.header("Content-Type", "application/json")
.body("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/components/status")
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 \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n },\n {\n \"purl\": \"pkg:npm/lodash\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"components": [
{
"purl": "<string>",
"name": "<string>",
"requirement": "<string>",
"version_status": {
"version": "<string>",
"status": "<string>",
"repository_status": "<string>",
"indexed_date": "<string>",
"status_change_date": "<string>",
"info_code": "REQUIREMENT_NOT_MET",
"info_message": "<string>"
},
"component_status": {
"status": "<string>",
"repository_status": "<string>",
"first_indexed_date": "<string>",
"last_indexed_date": "<string>",
"status_change_date": "<string>",
"info_code": "REQUIREMENT_NOT_MET",
"info_message": "<string>"
}
}
],
"status": {
"status": "SUCCESS",
"message": "<string>"
}
}{
"status": "error",
"error": {
"code": "INVALID_QUERY",
"message": "purl query parameter is required"
},
"timestamp": "2026-05-19T11:39:56Z"
}{
"status": "error",
"error": {
"code": "INTERNAL_ERROR",
"message": "..."
},
"timestamp": "2026-05-19T11:39:56Z"
}{
"status": "error",
"error": {
"code": "TIMEOUT",
"message": "request timed out"
},
"timestamp": "2026-05-19T11:39:56Z"
}Body
application/json
Minimum array length:
1Show child attributes
Show child attributes
Optional request-level search configuration applied to every component
in the batch (for GET endpoints the same knobs are query params). All
fields are optional; the defaults disable every fallback (strict version
matching, no related results). Honored by endpoints that support search
criteria — currently /v3/license/evidence.
Show child attributes
Show child attributes