> ## 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 declared location
This is the current method that accepts ComponentRequest for enhanced component identification
Replaces the deprecated GetComponentContributors method



## OpenAPI

````yaml /api-reference/geoprovenance-openapi.json get /v2/geoprovenance/countries/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/countries/component:
    get:
      tags:
        - GeoProvenance
      summary: >-
        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
      operationId: GeoProvenance_GetCountryContributorsByComponent
      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/v2ComponentContributorResponse'
        '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:
    v2ComponentContributorResponse:
      type: object
      example:
        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
      properties:
        component_locations:
          $ref: '#/components/schemas/v2ComponentLocationInfo'
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        *

        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.
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2ComponentLocationInfo:
      type: object
      properties:
        purl:
          type: string
          title: The Package URL string identifying the component
        declared_locations:
          type: array
          items:
            $ref: '#/components/schemas/v2DeclaredLocation'
          title: List of locations declared in the component's repository
        curated_locations:
          type: array
          items:
            $ref: '#/components/schemas/v2CuratedLocation'
          title: List of SCANOSS curated locations based on analysis
        info_message:
          type: string
          description: |-
            Status message describing the outcome of processing this component.
            Replaces the removed `error_message` field (position 4).
        info_code:
          type: string
          description: |-
            Status code identifying the outcome of processing this component.
            Replaces the removed `error_code` field (position 5).

            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 given component
    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: {}
    v2DeclaredLocation:
      type: object
      properties:
        type:
          type: string
          title: >-
            Source type of the declared location (e.g., "owner" or
            "contributor")
        location:
          type: string
          title: >-
            Geographic location declared in the repository
            (Country/State/City/Province/Place)
      title: Declared location information for the project
    v2CuratedLocation:
      type: object
      properties:
        country:
          type: string
          title: Country name for the owner or contributor
        count:
          type: integer
          format: int32
          title: Number of users or contributors from this specific country
      title: SCANOSS curated provenance information about the project
    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.

````