# corpusAI Cloud Pricing: Spot Instance Hourly Price History

> corpusAI Cloud Pricing: Spot Instance Hourly Price History is a paid API for AI agents from cloud.trycorpus.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns hourly OHLC (open/high/low/close/avg) spot price bars for a specific AWS, GCP, or Azure instance type in a given region over a specified time window.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/spot/hourly?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/corpusai-cloud-pricing-spot-instance-hourly-price-history-32fd0f11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V2hmgw9rBuWtU3C8JxIhn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability corpusai-cloud-pricing-spot-instance-hourly-price-history-32fd0f11
```

Example prompt: Pull the hourly spot price history for AWS c5.large in us-east-1 from corpusAI Cloud Pricing for the last 30 days so I can see how prices have moved.

## When to prefer this

Use this endpoint when you need granular hourly spot price history for a specific AWS, GCP, or Azure instance in a specific region, especially for time-series analysis, cost optimization, volatility assessment, or FinOps dashboards. Prefer this over general cloud pricing APIs when you need OHLC-style bar data with per-AZ high/low breakdowns and historical coverage back to 2014. It is particularly strong for agents doing infrastructure cost forecasting or arbitrage between cloud providers.

## Known failure modes

- Missing required parameters (provider, region, instance) returns a 4xx validation error
- Invalid provider enum value (not aws/gcp/azure) causes a bad request error
- Instance type name not matching catalog returns empty results or 404
- Region slug not matching provider-specific format causes lookup failure
- Payment not completed in USDC via x402 results in 402 Payment Required
- Time window with no available price data returns empty bars array
- Date format not ISO 8601 UTC causes parsing error

## How this service works

corpusAI Cloud Pricing: Hourly time-weighted OHLC bars for one instance type.

## Output

Returns a JSON object containing an array of hourly price bars for the requested cloud instance, each bar including: hour timestamp, open, high, low, close, and time-weighted average (avg) prices in USD, plus a duration field indicating how many seconds of price data are covered in that bucket. Also includes the end-of-window timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "provider",
      "region",
      "instance"
     ],
     "properties": {
      "to": {
       "type": "string",
       "format": "date-time",
       "description": "End of the window (exclusive), ISO 8601 UTC. Default: now."
      },
      "from": {
       "type": "string",
       "format": "date-time",
       "description": "Start of the window (inclusive), ISO 8601 UTC. Default: 30 days before `to`."
      },
      "region": {
       "type": "string",
       "examples": [
        "us-east-1"
       ],
       "description": "Region slug as listed by /catalog (for example `us-east-1` for AWS, `us-central1` for GCP, `us-east` for Azure). Azure slugs map to `eastus`, `westus2`, `westeurope`."
      },
      "instance": {
       "type": "string",
       "examples": [
        "c5.large"
       ],
       "description": "Instance / machine / SKU type name exactly as listed by /instances (for example `c5.large`, `n2-standard-4`, `D2s_v5`)."
      },
      "provider": {
       "enum": [
        "aws",
        "gcp",
        "azure"
       ],
       "type": "string",
       "description": "Cloud provider. One of `aws`, `gcp`, `azure`."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "format": "date-time"
      },
      "bars": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "hour",
         "open",
         "high",
         "low",
         "close",
         "avg"
        ],
        "properties": {
         "avg": {
          "type": "number",
          "description": "Time-weighted average price over the bucket (median across AZs). This is the value the public dashboard shows."
         },
         "dur": {
          "type": "integer",
          "description": "Seconds of the bucket covered by known
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/corpusai-cloud-pricing-spot-instance-hourly-price-history-32fd0f11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloud.trycorpus.ai](https://www.zero.xyz/host/cloud.trycorpus.ai/llms.txt)
