Quickstart
Your first dataset call in three steps.
1. Get a key
Verify your email, start Free or choose a plan, then create a key.
bash
export GLOOM_DATASETS_KEY=gds_...2. Call a dataset
Read GPU rental prices. Each language makes the same request.
curl https://api.gloom.sh/v1/gpu/prices \
-H "Authorization: Bearer $GLOOM_DATASETS_KEY"import os
import requests
response = requests.get(
"https://api.gloom.sh/v1/gpu/prices",
headers={"Authorization": f"Bearer {os.environ['GLOOM_DATASETS_KEY']}"},
)
response.raise_for_status()
print(response.json())const response = await fetch(
"https://api.gloom.sh/v1/gpu/prices",
{ headers: { Authorization: `Bearer ${process.env.GLOOM_DATASETS_KEY}` } },
)
if (!response.ok) throw new Error(await response.text())
console.log(await response.json())3. Read the answer
json
{
"data": [
{
"id": "aws-list:aws:A10:24:PCIe:list",
"label": "A10 24GB PCIe",
"sourceLabel": "AWS",
"source": "aws-list",
"skuKey": "aws:A10:24:PCIe:list",
"provider": "AWS",
"providerClass": "hyperscaler",
"region": "US East (N. Virginia)",
"gpuModel": "A10",
"gpuCount": 8,
"formFactor": "PCIe",
"memoryGb": 24,
"basis": "list",
"pricePerGpuHr": 2.036,
"priceNodeHr": 16.288,
"currency": "USD",
"availability": null,
"observedAt": "2026-12-04T22:57:28.410Z",
"effectiveAt": null,
"provenance": "live",
"sourceUrl": null,
"evidenceUrl": null,
"provenanceLabel": "live observation",
"change1d": 0,
"change7d": 0,
"change30d": 0,
"stale": false
},
{
"id": "aws-spot:aws:A10:24:PCIe:spot",
"label": "A10 24GB PCIe",
"sourceLabel": "AWS",
"source": "aws-spot",
"skuKey": "aws:A10:24:PCIe:spot",
"provider": "AWS",
"providerClass": "hyperscaler",
"region": "region median",
"gpuModel": "A10",
"gpuCount": 8,
"formFactor": "PCIe",
"memoryGb": 24,
"basis": "spot",
"pricePerGpuHr": 2.09570625,
"priceNodeHr": 16.76565,
"currency": "USD",
"availability": null,
"observedAt": "2026-12-05T11:21:19.917Z",
"effectiveAt": null,
"provenance": "live",
"sourceUrl": null,
"evidenceUrl": null,
"provenanceLabel": "live observation",
"change1d": 0,
"change7d": 0,
"change30d": -3.15254687662,
"stale": false
},
// … 3 more items
],
"meta": {
"dataset": "gpu",
"requestId": "sample-request",
"asOf": null,
"dataThrough": "2026-12-05T12:03:41.136Z",
"historyStart": null,
"updatedAt": "2026-12-05T12:03:41.136Z",
"page": null,
"next": null,
"coverage": {
"totalRows": 290,
"gaps": []
},
"symbols": null,
"sampledAt": "2026-12-05T12:05:55.821Z",
"source": [
{
"attribution": "Cloud infrastructure providers"
},
{
"attribution": "Compute rental marketplaces"
},
// … 2 more items
]
}
}Trimmed · 2026-12-05
X-Credits-Cost: spent. X-Credits-Remaining: balance. See Errors for failures.