> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corpus.intrace.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Regions

> List distinct locations (regions/cities) with event counts.



## OpenAPI

````yaml /api-reference/corpus-product-openapi.json get /v1/locations/regions
openapi: 3.1.0
info:
  title: Intrace Corpus Product API
  version: 1.0.0
  description: >-
    Professional API for accessing events, actors, locations, and metadata from
    the Intrace corpus database.
servers:
  - url: https://api.corpus.intrace.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/locations/regions:
    get:
      tags:
        - Locations
      summary: List Regions
      description: List distinct locations (regions/cities) with event counts.
      operationId: list_regions_v1_locations_regions_get
      parameters:
        - name: country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by country
            title: Country
          description: Filter by country
        - name: api_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: Api Key
          description: Corpus API key
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: X-Api-Key
          description: Corpus API key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RegionAggregation'
                title: Response List Regions V1 Locations Regions Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RegionAggregation:
      properties:
        location:
          type: string
          title: Location
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        eventCount:
          type: integer
          title: Eventcount
      type: object
      required:
        - location
        - eventCount
      title: RegionAggregation
      description: Event count aggregation by location string (region/city).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````