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



## OpenAPI

````yaml /api-reference/geoprovenance-openapi.json post /v2/geoprovenance/countries
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:
    post:
      tags:
        - GeoProvenance
      summary: '[DEPRECATED] Get component-level Geo Provenance by contributor location'
      operationId: GeoProvenance_GetComponentContributors
      requestBody:
        $ref: '#/components/requestBodies/v2PurlRequest'
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2ContributorResponse'
        '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:
    v2ContributorResponse:
      type: object
      properties:
        purls:
          type: array
          items:
            $ref: '#/components/schemas/v2ContributorResponsePurls'
          title: Geo-provenance details for each requested component
        status:
          $ref: '#/components/schemas/v2StatusResponse'
      description: >-
        *

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

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

        Contains geo-provenance information for components based on contributor
        declared locations.
    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.
    v2ContributorResponsePurls:
      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.
            Always populated.

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


            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: Information about a 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;
    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.

````