GET /v1/forecast/detroitdynamic ($0.01 for hours ≤ 48, $0.03 beyond)realtimetier: datacache 900sEngine B — Weather Intelligence
Hourly weather forecast for Detroit: 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 Detroit coordinates built in.
Pricing: $0.01 for hours ≤ 48, $0.03 beyond
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
hours | query | integer | no | (default: 48) |
units | query | string | no | (default: "imperial") — one of "metric", "imperial" |
curl "https://x402-factory.com/v1/forecast/detroit?hours=24"
Central Park, next 24h — $0.01.
{
"data": {
"hourly": [
{
"t": "2026-07-18T12:00:00.000Z",
"temp": 81.3,
"feels_like": 82.8,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 4.7,
"gust": 8.6,
"humidity_pct": 64,
"cloud_pct": 24
},
{
"t": "2026-07-18T13:00:00.000Z",
"temp": 81.1,
"feels_like": 81.1,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 4.7,
"gust": 10.4,
"humidity_pct": 51,
"cloud_pct": 31
},
{
"t": "2026-07-18T14:00:00.000Z",
"temp": 78.8,
"feels_like": 78.8,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 4.8,
"gust": 9.2,
"humidity_pct": 55,
"cloud_pct": 16
},
{
"t": "2026-07-18T15:00:00.000Z",
"temp": 74.8,
"feels_like": 74.8,
"precip_prob": 0.1,
"precip_amount": 0,
"wind": 5,
"gust": 10.9,
"humidity_pct": 52,
"cloud_pct": 31
},
{
"t": "2026-07-18T16:00:00.000Z",
"temp": 72.7,
"feels_like": 72.7,
"precip_prob": 0.1,
"precip_amount": 0,
"wind": 5.4,
"gust": 9.5,
"humidity_pct": 57,
"cloud_pct": 13
},
{
"t": "2026-07-18T17:00:00.000Z",
"temp": 71.8,
"feels_like": 71.8,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 5.8,
"gust": 10.5,
"humidity_pct": 62,
"cloud_pct": 18
},
{
"t": "2026-07-18T18:00:00.000Z",
"temp": 71.4,
"feels_like": 71.4,
"precip_prob": 0.1,
"precip_amount": 0,
"wind": 10.8,
"gust": 17.5,
"humidity_pct": 49,
"cloud_pct": 27
},
{
"t": "2026-07-18T19:00:00.000Z",
"temp": 70.5,
"feels_like": 70.5,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 11.3,
"gust": 19.5,
"humidity_pct": 58,
"cloud_pct": 33
},
{
"t": "2026-07-18T20:00:00.000Z",
"temp": 69.6,
"feels_like": 69.6,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 11.8,
"gust": 20.2,
"humidity_pct": 66,
"cloud_pct": 11
},
{
"t": "2026-07-18T21:00:00.000Z",
"temp": 67.5,
"feels_like": 67.5,
"precip_prob": 0.11,
"precip_amount": 0,
"wind": 12.2,
"gust": 18.8,
"humidity_pct": 58,
"cloud_pct": 13
},
{
"t": "2026-07-18T22:00:00.000Z",
"temp": 68.7,
"feels_like": 68.7,
"precip_prob": 0.12,
"precip_amount": 0,
"wind": 12.6,
"gust": 19.8,
"humidity_pct": 65,
"cloud_pct": 36
},
{
"t": "2026-07-18T23:00:00.000Z",
"temp": 71.1,
"feels_like": 71.1,
"precip_prob": 0.12,
"precip_amount": 0,
"wind": 12.8,
"gust": 21.1,
"humidity_pct": 62,
"cloud_pct": 27
},
{
"t": "2026-07-19T00:00:00.000Z",
"temp": 72.3,
"feels_like": 72.3,
"precip_prob": 0.15,
"precip_amount": 0,
"wind": 13.5,
"gust": 20.9,
"humidity_pct": 49,
"cloud_pct": 26
},
{
"t": "2026-07-19T01:00:00.000Z",
"temp": 73.8,
"feels_like": 73.8,
"precip_prob": 0.15,
"precip_amount": 0,
"wind": 13.5,
"gust": 20.6,
"humidity_pct": 57,
"cloud_pct": 37
},
{
"t": "2026-07-19T02:00:00.000Z",
"temp": 77.7,
"feels_like": 77.7,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 13.4,
"gust": 20.8,
"humidity_pct": 54,
"cloud_pct": 31
},
{
"t": "2026-07-19T03:00:00.000Z",
"temp": 77.9,
"feels_like": 77.9,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 13.2,
"gust": 22.1,
"humidity_pct": 61,
"cloud_pct": 35
},
{
"t": "2026-07-19T04:00:00.000Z",
"temp": 82.2,
"feels_like": 82.2,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 12.8,
"gust": 21.3,
"humidity_pct": 51,
"cloud_pct": 14
},
{
"t": "2026-07-19T05:00:00.000Z",
"temp": 83.7,
"feels_like": 84.9,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 12.4,
"gust": 19.1,
"humidity_pct": 63,
"cloud_pct": 38
},
{
"t": "2026-07-19T06:00:00.000Z",
"temp": 84.6,
"feels_like": 84.6,
"precip_prob": 0.19,
"precip_amount": 0,
"wind": 11.5,
"gust": 18,
"humidity_pct": 51,
"cloud_pct": 40
},
{
"t": "2026-07-19T07:00:00.000Z",
"temp": 86.4,
"feels_like": 86.4,
"precip_prob": 0.18,
"precip_amount": 0,
"wind": 11,
"gust": 17.2,
"humidity_pct": 56,
"cloud_pct": 18
},
{
"t": "2026-07-19T08:00:00.000Z",
"temp": 86.5,
"feels_like": 86.5,
"precip_prob": 0.18,
"precip_amount": 0,
"wind": 10.5,
"gust": 17.8,
"humidity_pct": 49,
"cloud_pct": 23
},
{
"t": "2026-07-19T09:00:00.000Z",
"temp": 84.7,
"feels_like": 85.8,
"precip_prob": 0.17,
"precip_amount": 0,
"wind": 10.1,
"gust": 15.7,
"humidity_pct": 62,
"cloud_pct": 24
},
{
"t": "2026-07-19T10:00:00.000Z",
"temp": 86.7,
"feels_like": 87.1,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 9.8,
"gust": 16.2,
"humidity_pct": 57,
"cloud_pct": 28
},
{
"t": "2026-07-19T11:00:00.000Z",
"temp": 84.6,
"feels_like": 84.6,
"precip_prob": 0.16,
"precip_amount": 0,
"wind": 9.5,
"gust": 15.6,
"humidity_pct": 52,
"cloud_pct": 33
}
],
"model_run_at": "2026-07-18T12:00:00.000Z",
"units": "imperial"
},
"meta": {
"endpoint": "/v1/forecast/detroit",
"version": "1.0.0",
"generated_at": "2026-09-13T09:52:16.481Z",
"freshness": "realtime",
"sources": [
"stub-model"
],
"request_id": "req_00000000",
"docs": "https://x402-factory.com/docs/weather.forecast.detroit",
"data_mode": "live"
}
}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 } }.
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.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMS | Input failed validation; message lists the offending fields. |
| 404 | NOT_FOUND | No matching resource; suggestion may point to a sibling endpoint. |
| 410 | RESOLVED | Market/event settled; body includes a resolution summary. |
| 503 | STALE_DATA | Upstream feed down; stale data is never silently served beyond 2× cache TTL. |
| 500 | INTERNAL | Our bug. The request_id helps us find it. |