Skip to content
onelayer.
All tools

Tool detail

events

Returns raw spot price-change events for one instance type/region/zone within a time window, up to 10,000 rows.

Categories: Compute pricing

Use when

  • get raw spot price-change events for one instance type over time
  • pull a time-windowed spot price event log for one availability zone

Not for

  • not a current snapshot - historical change events only
  • not multi-instance - one instance type per call

Inputs

GET query params: provider, region, instance (required); optional az, from/to (ISO 8601), limit (<=10000, default 5000), product, include_repeats

Admitted input schema

{
  "type": "object",
  "properties": {
    "az": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Restrict to one availability zone / zone id (for example `use1-az1`). Default: all zones."
    },
    "from": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "format": "date-time",
      "description": "Start of the window (inclusive), ISO 8601 UTC. Default: 7 days before `to`."
    },
    "include_repeats": {
      "type": "boolean",
      "description": "Keep events whose price equals the previous event of the same (az, product) series. Default false.",
      "default": false
    },
    "instance": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Instance / machine / SKU type name exactly as listed by /instances (for example `c5.large`, `n2-standard-4`, `D2s_v5`).",
      "examples": [
        "c5.large"
      ]
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000,
      "description": "Maximum rows to return (1 to 10000). Default 5000.",
      "default": 5000
    },
    "product": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Restrict to one product / OS string (for example `Linux/UNIX`, `Spot`, `Linux`). Default: all."
    },
    "provider": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "aws",
        "gcp",
        "azure"
      ],
      "description": "Cloud provider. One of `aws`, `gcp`, `azure`."
    },
    "region": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "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`.",
      "examples": [
        "us-east-1"
      ]
    },
    "to": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "format": "date-time",
      "description": "End of the window (exclusive), ISO 8601 UTC. Default: now."
    }
  },
  "required": [
    "provider",
    "region",
    "instance"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://cloud.trycorpus.ai/v1/spot/events

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://cloud.trycorpus.ai/v1/spot/events
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z