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

# [DEPRECATED] Get component-level Geo Provenance by contributor origin commit times



## OpenAPI

````yaml /api-reference/geoprovenance-openapi.json post /v2/geoprovenance/origin
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:
    post:
      tags:
        - GeoProvenance
      summary: >-
        [DEPRECATED] Get component-level Geo Provenance by contributor origin
        commit times
      operationId: GeoProvenance_GetComponentOrigin
      requestBody:
        $ref: '#/components/requestBodies/v2PurlRequest'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2OriginResponse'
        '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:
  requestBodies:
    v2PurlRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/v2PurlRequest'
      description: |-
        Purl request data (JSON payload)
        WARNING: PurlRequest is deprecated, use ComponentsRequest instead.
      required: true
  schemas:
    v2OriginResponse:
      type: object
      properties:
        purls:
          type: array
          items:
            $ref: '#/components/schemas/v2OriginResponsePurls'
          title: Geo-provenance details for each requested component
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        *

        [DEPRECATED] Component level Origin Response data (JSON payload)

        This message is deprecated. Use ComponentOriginResponse instead for
        better component handling.

        Contains geo-provenance information based on contributor origin commit
        times.
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2PurlRequest:
      type: object
      properties:
        purls:
          type: array
          items:
            $ref: '#/components/schemas/v2PurlRequestPurls'
          title: JSON request purls
      description: |-
        Purl request data (JSON payload)
        WARNING: PurlRequest is deprecated, use ComponentsRequest instead.
    v2OriginResponsePurls:
      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:
              - "SUCCESS":                Component processed successfully.
              - "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: |-
        Origin country details for geo-provenance analysis
        Information about the given Package URL (PURL)
    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: {}
    v2PurlRequestPurls:
      type: object
      properties:
        purl:
          type: string
          title: '@description: purl to be requested'
        requirement:
          type: string
      title: >-
        TODO: Refactor this API

        - Remove nested Purls message and replace with top-level Purl message
        type.

        - Update field definition below to: repeated Purl purls = 1;
    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.

````