cURL
curl "https://api.ornnai.com/api/neocloud/sites/aggregate?by=country" \
-H "Authorization: Bearer YOUR_API_KEY"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"]
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();
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ornnai.com/api/neocloud/sites/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ornnai.com/api/neocloud/sites/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ornnai.com/api/neocloud/sites/aggregate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornnai.com/api/neocloud/sites/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
]
}{
"error": "Bad request",
"message": "Invalid GPU type. Allowed: H100 SXM, H200, A100 SXM4, RTX 5090, B200, RTX PRO 6000 WS"
}{
"error": "Unauthorized",
"message": "API key required. Use Authorization: Bearer YOUR_API_KEY"
}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.
GET
/
api
/
neocloud
/
sites
/
aggregate
cURL
curl "https://api.ornnai.com/api/neocloud/sites/aggregate?by=country" \
-H "Authorization: Bearer YOUR_API_KEY"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"]
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();
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ornnai.com/api/neocloud/sites/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ornnai.com/api/neocloud/sites/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ornnai.com/api/neocloud/sites/aggregate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornnai.com/api/neocloud/sites/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
]
}{
"error": "Bad request",
"message": "Invalid GPU type. Allowed: H100 SXM, H200, A100 SXM4, RTX 5090, B200, RTX PRO 6000 WS"
}{
"error": "Unauthorized",
"message": "API key required. Use Authorization: Bearer YOUR_API_KEY"
}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. To drill a by=country bucket down to its sites, pass its key as country (with the same scope) to the region query.Authorizations
API key passed as a Bearer token. Create one in the dashboard.
Query Parameters
Grouping dimension: country or gpu_type.
Available options:
country, gpu_type neocloud (default) or all.
Available options:
neocloud, all Restrict to a country before aggregating ('Unknown' matches sites with no country on file).
Example:
"France"
Restrict to sites containing this GPU type before aggregating.
Example:
"H100"
Response
Aggregated totals.

