Contributor origin distribution for many purls
curl --request POST \
--url https://api.scanoss.com/v3/geoprovenance/origin \
--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/geoprovenance/origin"
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/geoprovenance/origin', 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/geoprovenance/origin",
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/geoprovenance/origin"
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/geoprovenance/origin")
.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/geoprovenance/origin")
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_locations": [
{
"purl": "<string>",
"locations": [
{
"name": "<string>",
"percentage": 123
}
],
"info_code": "<string>",
"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"
}geoprovenance
Contributor origin distribution for many purls
POST
/
v3
/
geoprovenance
/
origin
Contributor origin distribution for many purls
curl --request POST \
--url https://api.scanoss.com/v3/geoprovenance/origin \
--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/geoprovenance/origin"
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/geoprovenance/origin', 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/geoprovenance/origin",
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/geoprovenance/origin"
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/geoprovenance/origin")
.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/geoprovenance/origin")
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_locations": [
{
"purl": "<string>",
"locations": [
{
"name": "<string>",
"percentage": 123
}
],
"info_code": "<string>",
"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"
}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