API

One endpoint for spot prices across AWS, GCP, Azure.

Normalized schema. 60-second freshness. Historical depth up to 2 years. No agents.

Request
curl https://api.spotprices.io/v1/prices/current \
  -H "Authorization: Bearer sk_live_****" \
  --data-urlencode "vcpu=4" \
  --data-urlencode "mem=16" \
  --data-urlencode "cloud=aws,gcp,azure"
Response
{
  "updated_at": "2026-04-18T14:02:11Z",
  "results": [
    {
      "cloud": "gcp",
      "region": "us-central1",
      "type": "n2-standard-4",
      "vcpu": 4,
      "mem_gb": 16,
      "spot_price": 0.0380,
      "on_demand": 0.194,
      "savings_pct": 80,
      "interrupt_rate": "~5%",
      "spot_score": 0.0408,
      "currency": "USD"
    }
  ]
}
Normalized schema
Same field names whether it is AWS, GCP, or Azure. No if-else in your code.
60-second freshness
We poll each cloud continuously. You query a Postgres-backed cache.
Cross-cloud compare
One call returns the same spec across all three clouds, sorted by price.
Spot Score
Risk-adjusted effective cost. One number instead of two columns.
Historical depth
Up to 2 years on Team. Queryable by hour, day, or week.
Webhooks
Alert when your price drops below a threshold or risk spikes.
Client libraries
TypeScriptPythonGoRustOpenAPI spec