GET /v1/forecast/denver

dynamic ($0.01 for hours ≤ 48, $0.03 beyond)realtimetier: datacache 900sEngine B — Weather Intelligence

Hourly weather forecast for Denver: temperature, precipitation probability, and wind, up to 168 hours out. NWS-derived series, bias-blended with our calibrated station model where covered — every response labels the method that produced it. Same shape as /v1/forecast/point with the Denver coordinates built in.

Pricing: $0.01 for hours ≤ 48, $0.03 beyond

Parameters

NameInTypeRequiredNotes
hoursqueryintegerno (default: 48)
unitsquerystringno (default: "imperial") — one of "metric", "imperial"

Example

curl "https://x402-factory.com/v1/forecast/denver?hours=24"

Central Park, next 24h — $0.01.

Example response

{
  "data": {
    "hourly": [
      {
        "t": "2026-07-18T12:00:00.000Z",
        "temp": 86.7,
        "feels_like": 86.9,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 10.9,
        "gust": 18.6,
        "humidity_pct": 56,
        "cloud_pct": 22
      },
      {
        "t": "2026-07-18T13:00:00.000Z",
        "temp": 85.1,
        "feels_like": 85.5,
        "precip_prob": 0.08,
        "precip_amount": 0,
        "wind": 2.9,
        "gust": 7.6,
        "humidity_pct": 57,
        "cloud_pct": 20
      },
      {
        "t": "2026-07-18T14:00:00.000Z",
        "temp": 83.3,
        "feels_like": 83.3,
        "precip_prob": 0.08,
        "precip_amount": 0,
        "wind": 2.9,
        "gust": 7.1,
        "humidity_pct": 42,
        "cloud_pct": 30
      },
      {
        "t": "2026-07-18T15:00:00.000Z",
        "temp": 81.5,
        "feels_like": 81.5,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 2.9,
        "gust": 7.5,
        "humidity_pct": 54,
        "cloud_pct": 7
      },
      {
        "t": "2026-07-18T16:00:00.000Z",
        "temp": 78.8,
        "feels_like": 78.8,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 3.1,
        "gust": 7,
        "humidity_pct": 56,
        "cloud_pct": 20
      },
      {
        "t": "2026-07-18T17:00:00.000Z",
        "temp": 76.6,
        "feels_like": 76.6,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 3.4,
        "gust": 7.3,
        "humidity_pct": 53,
        "cloud_pct": 15
      },
      {
        "t": "2026-07-18T18:00:00.000Z",
        "temp": 75.4,
        "feels_like": 75.4,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 3.8,
        "gust": 7.2,
        "humidity_pct": 52,
        "cloud_pct": 10
      },
      {
        "t": "2026-07-18T19:00:00.000Z",
        "temp": 72.3,
        "feels_like": 72.3,
        "precip_prob": 0.06,
        "precip_amount": 0,
        "wind": 7.4,
        "gust": 13.9,
        "humidity_pct": 51,
        "cloud_pct": 12
      },
      {
        "t": "2026-07-18T20:00:00.000Z",
        "temp": 70.3,
        "feels_like": 70.3,
        "precip_prob": 0.06,
        "precip_amount": 0,
        "wind": 7.9,
        "gust": 12.9,
        "humidity_pct": 43,
        "cloud_pct": 5
      },
      {
        "t": "2026-07-18T21:00:00.000Z",
        "temp": 71.4,
        "feels_like": 71.4,
        "precip_prob": 0.06,
        "precip_amount": 0,
        "wind": 8.3,
        "gust": 15.5,
        "humidity_pct": 53,
        "cloud_pct": 29
      },
      {
        "t": "2026-07-18T22:00:00.000Z",
        "temp": 69.1,
        "feels_like": 69.1,
        "precip_prob": 0.06,
        "precip_amount": 0,
        "wind": 8.8,
        "gust": 14.6,
        "humidity_pct": 52,
        "cloud_pct": 8
      },
      {
        "t": "2026-07-18T23:00:00.000Z",
        "temp": 71.8,
        "feels_like": 71.8,
        "precip_prob": 0.07,
        "precip_amount": 0,
        "wind": 9.2,
        "gust": 15.2,
        "humidity_pct": 46,
        "cloud_pct": 27
      },
      {
        "t": "2026-07-19T00:00:00.000Z",
        "temp": 74.3,
        "feels_like": 74.3,
        "precip_prob": 0.76,
        "precip_amount": 0.07,
        "wind": 10.3,
        "gust": 17.5,
        "humidity_pct": 45,
        "cloud_pct": 87
      },
      {
        "t": "2026-07-19T01:00:00.000Z",
        "temp": 76.5,
        "feels_like": 76.5,
        "precip_prob": 0.62,
        "precip_amount": 0.1,
        "wind": 15.2,
        "gust": 23.9,
        "humidity_pct": 52,
        "cloud_pct": 80
      },
      {
        "t": "2026-07-19T02:00:00.000Z",
        "temp": 76.5,
        "feels_like": 76.5,
        "precip_prob": 0.64,
        "precip_amount": 0.11,
        "wind": 15.2,
        "gust": 22.7,
        "humidity_pct": 48,
        "cloud_pct": 64
      },
      {
        "t": "2026-07-19T03:00:00.000Z",
        "temp": 79.3,
        "feels_like": 79.3,
        "precip_prob": 0.65,
        "precip_amount": 0.11,
        "wind": 15.2,
        "gust": 24.5,
        "humidity_pct": 45,
        "cloud_pct": 63
      },
      {
        "t": "2026-07-19T04:00:00.000Z",
        "temp": 81.1,
        "feels_like": 81.1,
        "precip_prob": 0.66,
        "precip_amount": 0.12,
        "wind": 15,
        "gust": 23.1,
        "humidity_pct": 50,
        "cloud_pct": 81
      },
      {
        "t": "2026-07-19T05:00:00.000Z",
        "temp": 84.2,
        "feels_like": 84.2,
        "precip_prob": 0.66,
        "precip_amount": 0.12,
        "wind": 14.7,
        "gust": 23.5,
        "humidity_pct": 48,
        "cloud_pct": 62
      },
      {
        "t": "2026-07-19T06:00:00.000Z",
        "temp": 84.4,
        "feels_like": 84.4,
        "precip_prob": 0.66,
        "precip_amount": 0.12,
        "wind": 14.3,
        "gust": 22.4,
        "humidity_pct": 44,
        "cloud_pct": 79
      },
      {
        "t": "2026-07-19T07:00:00.000Z",
        "temp": 88,
        "feels_like": 88,
        "precip_prob": 0.79,
        "precip_amount": 0.06,
        "wind": 4.8,
        "gust": 10.3,
        "humidity_pct": 54,
        "cloud_pct": 68
      },
      {
        "t": "2026-07-19T08:00:00.000Z",
        "temp": 87.3,
        "feels_like": 87.3,
        "precip_prob": 0.78,
        "precip_amount": 0.06,
        "wind": 4.3,
        "gust": 9.6,
        "humidity_pct": 40,
        "cloud_pct": 67
      },
      {
        "t": "2026-07-19T09:00:00.000Z",
        "temp": 89.4,
        "feels_like": 89.4,
        "precip_prob": 0.76,
        "precip_amount": 0.06,
        "wind": 3.9,
        "gust": 7.6,
        "humidity_pct": 51,
        "cloud_pct": 88
      },
      {
        "t": "2026-07-19T10:00:00.000Z",
        "temp": 89.4,
        "feels_like": 89.4,
        "precip_prob": 0.73,
        "precip_amount": 0.05,
        "wind": 3.4,
        "gust": 7.4,
        "humidity_pct": 45,
        "cloud_pct": 63
      },
      {
        "t": "2026-07-19T11:00:00.000Z",
        "temp": 88.5,
        "feels_like": 88.5,
        "precip_prob": 0.7,
        "precip_amount": 0.05,
        "wind": 3,
        "gust": 7.5,
        "humidity_pct": 49,
        "cloud_pct": 66
      }
    ],
    "model_run_at": "2026-07-18T12:00:00.000Z",
    "units": "imperial"
  },
  "meta": {
    "endpoint": "/v1/forecast/denver",
    "version": "1.0.0",
    "generated_at": "2026-09-13T09:52:16.480Z",
    "freshness": "realtime",
    "sources": [
      "stub-model"
    ],
    "request_id": "req_00000000",
    "docs": "https://x402-factory.com/docs/weather.forecast.denver",
    "data_mode": "live"
  }
}

Response schema (data payload)

{
  "type": "object",
  "properties": {
    "hourly": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "t": {
            "type": "string"
          },
          "temp": {
            "type": "number"
          },
          "feels_like": {
            "type": "number"
          },
          "precip_prob": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "precip_amount": {
            "type": "number"
          },
          "wind": {
            "type": "number"
          },
          "gust": {
            "type": "number"
          },
          "humidity_pct": {
            "type": "number"
          },
          "cloud_pct": {
            "type": "number"
          }
        },
        "required": [
          "t",
          "temp",
          "feels_like",
          "precip_prob",
          "precip_amount",
          "wind",
          "gust",
          "humidity_pct",
          "cloud_pct"
        ],
        "additionalProperties": false
      }
    },
    "model_run_at": {
      "type": "string"
    },
    "units": {
      "type": "string",
      "enum": [
        "metric",
        "imperial"
      ]
    }
  },
  "required": [
    "hourly",
    "model_run_at",
    "units"
  ],
  "additionalProperties": false
}

The platform wraps every payload in an envelope: { "data": …, "meta": { endpoint, version, generated_at, freshness, sources, request_id, docs, data_mode } }.

Payment (x402)

Unpaid requests receive 402 with payment requirements (accepts). Pay dynamic ($0.01 for hours ≤ 48, $0.03 beyond) in USDC on Base per call via an X-PAYMENT header — see docs.x402.org. With PAYMENT_MODE=disabled (local dev) the endpoint is open.

Errors

StatusCodeMeaning
400INVALID_PARAMSInput failed validation; message lists the offending fields.
404NOT_FOUNDNo matching resource; suggestion may point to a sibling endpoint.
410RESOLVEDMarket/event settled; body includes a resolution summary.
503STALE_DATAUpstream feed down; stale data is never silently served beyond 2× cache TTL.
500INTERNALOur bug. The request_id helps us find it.