Get Custom Index As Of
curl --request GET \
--url https://data-api.compute-index.com/v1/custom-index/as-of \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/custom-index/as-of"
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/custom-index/as-of', 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/custom-index/as-of",
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/custom-index/as-of"
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/custom-index/as-of")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/custom-index/as-of")
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{
"data": [
{
"blended_value": 2.6221,
"contract_type": "combined",
"gpu_family": "hopper",
"gpu_model": "h100",
"index_id": "h100-us",
"index_name": "h100",
"index_units": "usd_per_gpu_per_hr",
"index_value": 2.5872,
"p5": 1.4864,
"p95": 4.2853,
"region_group": "US",
"timestamp": "2026-07-14T23:30:00+00:00",
"vendor_category": "neocloud"
}
],
"filters": {
"as_of": "2026-07-14",
"contract_type": "combined",
"index_id": "h100-us",
"region_group": "US",
"vendor_category": "neocloud"
},
"total_count": 1
}Intraday Index
Intraday Index: Index As Of Date
GET
/
v1
/
custom-index
/
as-of
Get Custom Index As Of
curl --request GET \
--url https://data-api.compute-index.com/v1/custom-index/as-of \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/custom-index/as-of"
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/custom-index/as-of', 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/custom-index/as-of",
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/custom-index/as-of"
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/custom-index/as-of")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/custom-index/as-of")
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{
"data": [
{
"blended_value": 2.6221,
"contract_type": "combined",
"gpu_family": "hopper",
"gpu_model": "h100",
"index_id": "h100-us",
"index_name": "h100",
"index_units": "usd_per_gpu_per_hr",
"index_value": 2.5872,
"p5": 1.4864,
"p95": 4.2853,
"region_group": "US",
"timestamp": "2026-07-14T23:30:00+00:00",
"vendor_category": "neocloud"
}
],
"filters": {
"as_of": "2026-07-14",
"contract_type": "combined",
"index_id": "h100-us",
"region_group": "US",
"vendor_category": "neocloud"
},
"total_count": 1
}Premium — historical data. This endpoint requires the
custom-index-history scope, granted separately from custom-index — a token can have current access without history. Contact david@compute-index.com to request access.The Intraday Index is available to authorized clients. Your API token must have the required permissions added — contact david@compute-index.com to request access.
Example
Intraday value for a single index as of a UTC date (that day’s last realized 30-minute interval):curl -H "Authorization: Bearer $TOKEN" \
"https://data-api.compute-index.com/v1/custom-index/as-of?index_id=h100-us&as_of=2026-01-01"
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
As-of time (UTC): YYYY-MM-DD or ISO-8601 datetime. Capped at now.
Index id (e.g. h100-us). Defaults to your sole index.