> ## 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.

# 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



## OpenAPI

````yaml /api-reference/geoprovenance-openapi.json get /v2/geoprovenance/origin/component
openapi: 3.0.0
info:
  title: SCANOSS GEO Provenance Service
  version: '2.0'
  contact:
    name: scanoss-geoprovenance
    url: https://github.com/scanoss/geoprovenance
    email: support@scanoss.com
servers: []
security: []
tags:
  - name: GeoProvenance
paths:
  /v2/geoprovenance/origin/component:
    get:
      tags:
        - GeoProvenance
      summary: >-
        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
      operationId: GeoProvenance_GetOriginByComponent
      parameters:
        - name: purl
          description: Package URL identifying the component to analyze.
          in: query
          required: true
          schema:
            type: string
        - name: requirement
          description: >-
            Version constraint for component resolution when PURL lacks explicit
            version.
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2ComponentOriginResponse'
        '404':
          description: Returned when the resource does not exist.
          content:
            application/json:
              schema:
                type: string
                format: string
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
components:
  schemas:
    v2ComponentOriginResponse:
      type: object
      example:
        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
      properties:
        component_locations:
          $ref: '#/components/schemas/v2ComponentLocation'
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        *

        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.
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2ComponentLocation:
      type: object
      properties:
        purl:
          type: string
          title: The Package URL string identifying the component
        locations:
          type: array
          items:
            $ref: '#/components/schemas/geoprovenancev2Location'
          title: The list of countries with contributors and their percentages
        info_message:
          type: string
          description: |-
            Status message describing the outcome of processing this component.
            Replaces the removed `error_message` field (position 3).
        info_code:
          type: string
          description: >-
            Status code identifying the outcome of processing this component.
            Always populated.

            Replaces the removed `error_code` field (position 4).


            Possible values:
              - "INVALID_PURL":           The provided Package URL (PURL) is invalid or malformed.
              - "COMPONENT_NOT_FOUND":    The requested component could not be found in the database.
              - "NO_INFO":                No geo-provenance information is available for the requested component.
              - "TOO_MANY_CONTRIBUTORS":  The component exceeds the supported contributor threshold.
      title: Information about a component and its geographic origins
    v2StatusResponse:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/v2StatusCode'
        message:
          type: string
          title: Status message
        db:
          $ref: '#/components/schemas/StatusResponseDB'
        server:
          $ref: '#/components/schemas/StatusResponseServer'
      description: Detailed response details.
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    geoprovenancev2Location:
      type: object
      properties:
        name:
          type: string
          title: ISO country code (e.g., "US", "GB", "FR")
        percentage:
          type: number
          format: float
          title: Percentage of developers from this country
      title: Origin country details for geo-provenance analysis
    v2StatusCode:
      type: string
      enum:
        - UNSPECIFIED
        - SUCCESS
        - SUCCEEDED_WITH_WARNINGS
        - WARNING
        - FAILED
      default: UNSPECIFIED
      description: Status code Enum.
    StatusResponseDB:
      type: object
      properties:
        schema_version:
          type: string
          title: Semantic schema version (e.g., 'v1.0.0')
        created_at:
          type: string
          title: When this DB was built (ISO 8601 format)
      description: Database version information.
    StatusResponseServer:
      type: object
      properties:
        version:
          type: string
          title: Semantic version (e.g., 'v1.0.0')
      description: Server information.

````