Skip to main content
GET
/
v2
/
geoprovenance
/
countries
/
component
Get component-level Geo Provenance based on contributor declared location This is the current method that accepts ComponentRequest for enhanced component identification Replaces the deprecated GetComponentContributors method
curl --request GET \
  --url https://api.example.com/v2/geoprovenance/countries/component
{
  "component_location": {
    "purl": "pkg:github/scanoss/engine@5.0.0",
    "declared_locations": [
      {
        "type": "owner",
        "location": "Barcelona, Spain"
      },
      {
        "type": "contributor",
        "location": "Berlin, Germany"
      }
    ],
    "curated_locations": [
      {
        "country": "Spain",
        "count": 8
      },
      {
        "country": "Germany",
        "count": 3
      },
      {
        "country": "United States",
        "count": 2
      }
    ]
  },
  "status": {
    "status": "SUCCESS",
    "message": "Geo-provenance 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.

Query Parameters

purl
string
required

Package URL identifying the component to analyze.

requirement
string

Version constraint for component resolution when PURL lacks explicit version.

Response

A successful response.

Component level Provenance Response data (JSON payload) Contains geo-provenance information for components based on contributor declared locations. This is the current response format that replaces the deprecated ContributorResponse.

component_locations
Information about a given component · object
status
object

Detailed response details.