Skip to main content
GET
/
v2
/
geoprovenance
/
origin
/
component
Get component-level Geo Provenance based on contributor origin commit times This is the current method that accepts ComponentRequest for enhanced component identification Replaces the deprecated GetComponentOrigin method
curl --request GET \
  --url https://api.example.com/v2/geoprovenance/origin/component
{
  "component_locations": {
    "purl": "pkg:github/scanoss/engine@5.0.0",
    "locations": [
      {
        "name": "ES",
        "percentage": 65.5
      },
      {
        "name": "DE",
        "percentage": 20.3
      },
      {
        "name": "US",
        "percentage": 14.2
      }
    ]
  },
  "status": {
    "status": "SUCCESS",
    "message": "Geo-provenance origin 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 Origin Response data (JSON payload) Contains geo-provenance information based on contributor origin commit times. This is the current response format that replaces the deprecated OriginResponse. Provides enhanced component identification and location data.

component_locations
Information about a component and its geographic origins · object
status
object

Detailed response details.