US weather forecast API: official National Weather Service forecast for any US lat/lon — n
US weather forecast API: official National Weather Service forecast for any US lat/lon — next four periods (~48 hours, day/night): temperature, wind, short and detailed forecast text, plus resolved place name. UNITED STATES COVERAGE ONLY; points outside NWS coverage return an unpaid 404. Public-domain government data. Use for logistics, travel, and event-planning agents. Cached up to 10 minutes; nearby coordinates (within ~0.1°/11km) may share a cached forecast.
3000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-30
updated
Provider
gateway.stride20k.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x552Cc4A10878C7F20574489D47184249657Ca3f6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"lat": "39.7456",
"lon": "-97.0892"
},
"type": "http"
},
"output": {
"example": {
"data": {
"location": "Linn, KS",
"periods": [
{
"detailedForecast": "Showers and thunderstorms before 4am.",
"isDaytime": false,
"name": "Tonight",
"shortForecast": "Showers And Thunderstorms",
"startTime": "2026-07-03T21:00:00-05:00",
"temperature": 71,
"temperatureUnit": "F",
"windDirection": "E",
"windSpeed": "5 to 10 mph"
}
],
"updated": "2026-07-03T18:00:00+00:00"
},
"endpoint": "/weather/us",
"meta": {
"attribution": null,
"cached": false,
"fetchedAt": "2026-07-04T00:00:00.000Z",
"source": "NWS"
},
"ok": true
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"lat": {
"description": "Latitude in decimal degrees, -90 to 90 (US coverage).",
"pattern": "-?(90(\\.0+)?|[0-8]?\\d(\\.\\d+)?)",
"type": "string"
},
"lon": {
"description": "Longitude in decimal degrees, -180 to 180 (US coverage).",
"pattern": "-?(180(\\.0+)?|(1[0-7]\\d|\\d{1,2})(\\.\\d+)?)",
"type": "string"
}
},
"required": [
"lat",
"lon"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"location": {
"description": "Resolved 'City, ST' for the point, when known.",
"type": "string"
},
"periods": {
"description": "Up to 4 periods: { name, startTime, isDaytime, temperature, temperatureUnit, windSpeed, windDirection, shortForecast, detailedForecast }.",
"minItems": 1,
"type": "array"
},
"updated": {
"description": "NWS forecast update timestamp, ISO 8601.",
"type": "string"
}
},
"required": [
"periods"
],
"type": "object"
},
"endpoint": {
"description": "Always \"/weather/us\".",
"type": "string"
},
"meta": {
"properties": {
"attribution": {
"description": "Licensing attribution when the source requires it.",
"type": [
"string",
"null"
]
},
"cached": {
"description": "Whether this response was served from cache.",
"type": "boolean"
},
"fetchedAt": {
"description": "ISO 8601 time the data was actually retrieved from the upstream.",
"type": "string"
},
"source": {
"description": "Upstream source: NWS.",
"type": "string"
}
},
"required": [
"source",
"cached",
"fetchedAt"
],
"type": "object"
},
"ok": {
"description": "true on success.",
"type": "boolean"
}
},
"required": [
"ok",
"endpoint",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://gateway.stride20k.com/weather/us" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://gateway.stride20k.com/weather/us");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://gateway.stride20k.com/weather/us")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1164.json, and this resource appears in /discovery/resources and /discovery/search.