curl --request GET \
--url https://data-api.compute-index.com/v1/txn-aggregate/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/txn-aggregate/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data-api.compute-index.com/v1/txn-aggregate/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data-api.compute-index.com/v1/txn-aggregate/analytics",
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://data-api.compute-index.com/v1/txn-aggregate/analytics"
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://data-api.compute-index.com/v1/txn-aggregate/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/txn-aggregate/analytics")
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{
"count": 2,
"data": [
{
"blend_axis": null,
"blend_region_group": null,
"blend_tenor_days": null,
"contract_type": "reserved",
"discount_percentage": 59.1,
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_model": "H100",
"is_rolling": false,
"price": 2.9,
"region_group": "other",
"tenor_days": 60,
"total_gpu_count": 64,
"total_gpu_hours": null,
"transaction_date": "2024-09-10"
},
{
"blend_axis": null,
"blend_region_group": null,
"blend_tenor_days": null,
"contract_type": "reserved",
"discount_percentage": 71.5,
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_model": "H100",
"is_rolling": false,
"price": 1.92,
"region_group": "apac",
"tenor_days": 360,
"total_gpu_count": 8,
"total_gpu_hours": 288,
"transaction_date": "2024-12-16"
}
],
"filters": {
"commitment_days_max": null,
"commitment_days_min": null,
"contract_type": "reserved",
"discount_percentage_max": null,
"discount_percentage_min": null,
"end_date": null,
"gpu_canonical_name": null,
"gpu_count_max": null,
"gpu_count_min": null,
"gpu_model": "H100",
"limit": 2,
"price_difference_max": null,
"price_difference_min": null,
"region_group": null,
"start_date": null
}
}Transaction Aggregates: Bulk
Returns transaction blends ordered by transaction_date ascending, capped at limit rows without pagination — intended for retrieving a full filtered window in one call. Each row is a volume-weighted blend of settled transactions from the same (GPU model, region group, contract type, reserved tenor) bucket, adjacent by date. Only the volume-weighted price is published (no median/min/max), and rows are NOT additive: neighbouring rows can share underlying transactions, so never SUM total_gpu_count / total_gpu_hours across rows.
curl --request GET \
--url https://data-api.compute-index.com/v1/txn-aggregate/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/txn-aggregate/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data-api.compute-index.com/v1/txn-aggregate/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data-api.compute-index.com/v1/txn-aggregate/analytics",
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://data-api.compute-index.com/v1/txn-aggregate/analytics"
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://data-api.compute-index.com/v1/txn-aggregate/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/txn-aggregate/analytics")
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{
"count": 2,
"data": [
{
"blend_axis": null,
"blend_region_group": null,
"blend_tenor_days": null,
"contract_type": "reserved",
"discount_percentage": 59.1,
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_model": "H100",
"is_rolling": false,
"price": 2.9,
"region_group": "other",
"tenor_days": 60,
"total_gpu_count": 64,
"total_gpu_hours": null,
"transaction_date": "2024-09-10"
},
{
"blend_axis": null,
"blend_region_group": null,
"blend_tenor_days": null,
"contract_type": "reserved",
"discount_percentage": 71.5,
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_model": "H100",
"is_rolling": false,
"price": 1.92,
"region_group": "apac",
"tenor_days": 360,
"total_gpu_count": 8,
"total_gpu_hours": 288,
"transaction_date": "2024-12-16"
}
],
"filters": {
"commitment_days_max": null,
"commitment_days_min": null,
"contract_type": "reserved",
"discount_percentage_max": null,
"discount_percentage_min": null,
"end_date": null,
"gpu_canonical_name": null,
"gpu_count_max": null,
"gpu_count_min": null,
"gpu_model": "H100",
"limit": 2,
"price_difference_max": null,
"price_difference_min": null,
"region_group": null,
"start_date": null
}
}transaction_date ascending, capped at limit rows without pagination — intended for retrieving a full filtered window in one call. Same bucketing and non-additivity rules as the paginated Blends endpoint.
total_gpu_count / total_gpu_hours across rows.Example
# Full H100 reserved window in one call
curl -H "Authorization: Bearer $TOKEN" \
"https://data-api.compute-index.com/v1/txn-aggregate/analytics?gpu_model=H100&contract_type=reserved&limit=1000"
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter by GPU model (comma-separated). Example: H100,H200
Filter by GPU canonical name (comma-separated). Example: nvidia-h100-sxm5-80gb
Filter by region group (comma-separated). Options: us, eu, apac, other
Filter by contract type (comma-separated). Options: ondemand, spot, reserved
Include transactions on/after this date (YYYY-MM-DD)
Include transactions on/before this date (YYYY-MM-DD)
Filter txn rows by GPU quantity (pre-aggregation)
Filter txn rows by GPU quantity (pre-aggregation)
Filter txn rows by commitment days (pre-aggregation)
Filter txn rows by commitment days (pre-aggregation)
Filter aggregate rows by volume-weighted discount percentage (post-aggregation)
Filter aggregate rows by volume-weighted discount percentage (post-aggregation)
Filter aggregate rows by reference_price - price (post-aggregation)
Filter aggregate rows by reference_price - price (post-aggregation)
Maximum number of rows returned (max 10000)
1 <= x <= 10000