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

# Get asset locations

> Retrieves the top 10 countries by IP count for a workspace. Batches IP lookups to the geo IP service and aggregates results by country.



## OpenAPI

````yaml /api-reference/openapi.json get /api/statistic/asset-locations
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/statistic/asset-locations:
    get:
      tags:
        - Statistic
      summary: Get asset locations
      description: >-
        Retrieves the top 10 countries by IP count for a workspace. Batches IP
        lookups to the geo IP service and aggregates results by country.
      operationId: StatisticController_getAssetLocations
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
                type: array
                items:
                  $ref: '#/components/schemas/AssetLocationDto'
components:
  schemas:
    AppResponseSerialization:
      type: object
      properties: {}
    AssetLocationDto:
      type: object
      properties:
        countryCode:
          type: string
          example: US
          description: ISO 3166-1 alpha-2 country code
        country:
          type: string
          example: United States
          description: Full country name
        count:
          type: number
          example: 42
          description: Number of IP addresses in this country
      required:
        - countryCode
        - country
        - count

````