Per-file copyright evidence for one or many components
curl --request POST \
--url https://api.scanoss.com/v3/copyright/evidence \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}
],
"search": {
"max_results_per_purl": 1,
"show_related_results": false,
"show_url": false,
"on_version_not_found": "strict",
"encoded": "none"
}
}
'import requests
url = "https://api.scanoss.com/v3/copyright/evidence"
payload = {
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}
],
"search": {
"max_results_per_purl": 1,
"show_related_results": False,
"show_url": False,
"on_version_not_found": "strict",
"encoded": "none"
}
}
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'}],
search: {
max_results_per_purl: 1,
show_related_results: false,
show_url: false,
on_version_not_found: 'strict',
encoded: 'none'
}
})
};
fetch('https://api.scanoss.com/v3/copyright/evidence', 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/copyright/evidence",
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'
]
],
'search' => [
'max_results_per_purl' => 1,
'show_related_results' => false,
'show_url' => false,
'on_version_not_found' => 'strict',
'encoded' => 'none'
]
]),
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/copyright/evidence"
payload := strings.NewReader("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n }\n ],\n \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\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/copyright/evidence")
.header("Content-Type", "application/json")
.body("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n }\n ],\n \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/copyright/evidence")
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 \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\n }\n}"
response = http.request(request)
puts response.read_body{
"components": [
{
"purl": "<string>",
"version": "<string>",
"requirement": "<string>",
"files": [
{
"file": "main.go",
"file_id": "874550fd5e1d9cbde2d9836802332357",
"detections": [
{
"copyright": "Copyright (C) 2024 Example Corp. All rights reserved.",
"detector": "licenseclassifier",
"evidence": {
"start": 1,
"end": 1,
"evidence_url": "<string>"
},
"source": "header_declared",
"holder": "Example Corp."
}
]
}
],
"url": "<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"
}copyright
Per-file copyright evidence for one or many components
Same per-file shape as /v3/license/evidence, but each detection
carries a copyright statement (and optional parsed holder) instead
of a license_id / confidence.
NOTE: copyright detection is not yet available in the knowledge base.
The endpoint currently resolves the component identity and returns an
empty files array with info_code: NO_INFO. The response contract
is final.
POST
/
v3
/
copyright
/
evidence
Per-file copyright evidence for one or many components
curl --request POST \
--url https://api.scanoss.com/v3/copyright/evidence \
--header 'Content-Type: application/json' \
--data '
{
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}
],
"search": {
"max_results_per_purl": 1,
"show_related_results": false,
"show_url": false,
"on_version_not_found": "strict",
"encoded": "none"
}
}
'import requests
url = "https://api.scanoss.com/v3/copyright/evidence"
payload = {
"components": [
{
"purl": "pkg:github/scanoss/engine",
"requirement": "v5.4.5"
}
],
"search": {
"max_results_per_purl": 1,
"show_related_results": False,
"show_url": False,
"on_version_not_found": "strict",
"encoded": "none"
}
}
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'}],
search: {
max_results_per_purl: 1,
show_related_results: false,
show_url: false,
on_version_not_found: 'strict',
encoded: 'none'
}
})
};
fetch('https://api.scanoss.com/v3/copyright/evidence', 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/copyright/evidence",
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'
]
],
'search' => [
'max_results_per_purl' => 1,
'show_related_results' => false,
'show_url' => false,
'on_version_not_found' => 'strict',
'encoded' => 'none'
]
]),
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/copyright/evidence"
payload := strings.NewReader("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n }\n ],\n \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\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/copyright/evidence")
.header("Content-Type", "application/json")
.body("{\n \"components\": [\n {\n \"purl\": \"pkg:github/scanoss/engine\",\n \"requirement\": \"v5.4.5\"\n }\n ],\n \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scanoss.com/v3/copyright/evidence")
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 \"search\": {\n \"max_results_per_purl\": 1,\n \"show_related_results\": false,\n \"show_url\": false,\n \"on_version_not_found\": \"strict\",\n \"encoded\": \"none\"\n }\n}"
response = http.request(request)
puts response.read_body{
"components": [
{
"purl": "<string>",
"version": "<string>",
"requirement": "<string>",
"files": [
{
"file": "main.go",
"file_id": "874550fd5e1d9cbde2d9836802332357",
"detections": [
{
"copyright": "Copyright (C) 2024 Example Corp. All rights reserved.",
"detector": "licenseclassifier",
"evidence": {
"start": 1,
"end": 1,
"evidence_url": "<string>"
},
"source": "header_declared",
"holder": "Example Corp."
}
]
}
],
"url": "<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