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

# Aggregate sites by country or GPU type

> Aggregate power capacity, GPU quantity, and site counts grouped by country or by GPU type. Useful for regional/technology risk rollups. Defaults to neo-cloud sites; `scope=all` widens to the full set. For `by=gpu_type`, a site listing multiple chips (e.g. `H100/A100`) contributes to each of its chip-type buckets; sites with no recognized chip fall under `Other`.


## Overview

Aggregate power capacity, GPU quantity, and site counts grouped by country or by GPU type. Useful for regional/technology risk rollups. Defaults to neo-cloud sites; `scope=all` widens to the full set. For `by=gpu_type`, a site listing multiple chips (e.g. `H100/A100`) contributes to each of its chip-type buckets; sites with no recognized chip fall under `Other`.


## OpenAPI

````yaml openapi.yaml GET /api/neocloud/sites/aggregate
openapi: 3.1.0
info:
  title: Ornn Data API
  version: 1.0.0
  description: >
    Read-only REST API for GPU and memory market data. The price index is the
    going rate of compute in USD per GPU-hour, a weighted average of all
    verified compute transactions across the market.
servers:
  - url: https://api.ornnai.com
security:
  - bearerAuth: []
tags:
  - name: Current Prices
  - name: Historical Prices
  - name: Analytics
  - name: Memory
  - name: Token Prices
  - name: Workload Cost
  - name: LLM Coding
  - name: Neo-Cloud Sites
  - name: Reference
paths:
  /api/neocloud/sites/aggregate:
    get:
      tags:
        - Neo-Cloud Sites
      summary: Aggregate sites by country or GPU type
      description: >
        Aggregate power capacity, GPU quantity, and site counts grouped by
        country or by GPU type. Useful for regional/technology risk rollups.
        Defaults to neo-cloud sites; `scope=all` widens to the full set. For
        `by=gpu_type`, a site listing multiple chips (e.g. `H100/A100`)
        contributes to each of its chip-type buckets; sites with no recognized
        chip fall under `Other`.
      parameters:
        - name: by
          in: query
          required: true
          description: 'Grouping dimension: country or gpu_type.'
          schema:
            type: string
            enum:
              - country
              - gpu_type
        - name: scope
          in: query
          description: neocloud (default) or all.
          schema:
            type: string
            enum:
              - neocloud
              - all
        - name: country
          in: query
          description: Restrict to a country before aggregating.
          schema:
            type: string
            example: France
        - name: gpu_type
          in: query
          description: Restrict to sites containing this GPU type before aggregating.
          schema:
            type: string
            example: H100
      responses:
        '200':
          description: Aggregated totals.
          content:
            application/json:
              example:
                success: true
                by: country
                count: 6
                query:
                  by: country
                  scope: neocloud
                totals:
                  - key: United States
                    site_count: 100
                    total_power_mw: 1000
                    total_gpu_qty: 100000
                  - key: Norway
                    site_count: 10
                    total_power_mw: 500
                    total_gpu_qty: 50000
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl
            "https://api.ornnai.com/api/neocloud/sites/aggregate?by=country" \
              -H "Authorization: Bearer YOUR_API_KEY"
        - lang: python
          label: Python
          source: |
            import requests

            resp = requests.get(
                "https://api.ornnai.com/api/neocloud/sites/aggregate",
                params={"by": "country"},
                headers={"Authorization": "Bearer YOUR_API_KEY"},
            )
            totals = resp.json()["totals"]
        - lang: javascript
          label: JavaScript
          source: |
            const res = await fetch(
              "https://api.ornnai.com/api/neocloud/sites/aggregate?by=country",
              { headers: { Authorization: "Bearer YOUR_API_KEY" } },
            );
            const { totals } = await res.json();
components:
  responses:
    BadRequest:
      description: A required parameter is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
            message: 'API key required. Use Authorization: Bearer YOUR_API_KEY'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Bad request
        message:
          type: string
          example: >-
            Invalid GPU type. Allowed: H100 SXM, H200, A100 SXM4, RTX 5090,
            B200, RTX PRO 6000 WS
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token. Create one in the dashboard.

````