Get a current U
Get a current U.S. weather forecast from NOAA and the National Weather Service by latitude and longitude. Use this weather API when an agent needs forecast temperature, conditions, wind, day/night periods, or detailed local forecast text for U.S. coordinates.
20000 (raw units)
price
4
calls / 30d
2
unique payers
2026-08-31
updated
Provider
x402-trends-server.onrender.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xF61F957D9aC432309219549b1Ae79Ae8b7C71fF5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"lat": 33.68,
"lon": -117.18
},
"type": "http"
},
"output": {
"example": {
"coordinates": {
"lat": 33.68,
"lon": -117.18
},
"location": {
"city": "Menifee",
"state": "CA"
},
"payment": "verified",
"periods": [
{
"detailedForecast": "Mostly clear overnight with light winds.",
"endTime": "2026-08-16T06:00:00-07:00",
"isDaytime": false,
"name": "Tonight",
"shortForecast": "Mostly Clear",
"startTime": "2026-08-15T18:00:00-07:00",
"temperature": 68,
"temperatureUnit": "F",
"windDirection": "SW",
"windSpeed": "5 mph"
}
],
"retrievedAt": "2026-08-15T20:00:00.000Z",
"source": "NOAA National Weather Service",
"status": "success"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"lat": {
"description": "Latitude for the U.S. forecast location.",
"maximum": 90,
"minimum": -90,
"type": "number"
},
"lon": {
"description": "Longitude for the U.S. forecast location.",
"maximum": 180,
"minimum": -180,
"type": "number"
}
},
"required": [
"lat",
"lon"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"coordinates": {
"additionalProperties": false,
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"required": [
"lat",
"lon"
],
"type": "object"
},
"location": {
"additionalProperties": false,
"properties": {
"city": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
}
},
"required": [
"city",
"state"
],
"type": "object"
},
"payment": {
"type": "string"
},
"periods": {
"items": {
"additionalProperties": false,
"properties": {
"detailedForecast": {
"type": [
"string",
"null"
]
},
"endTime": {
"type": [
"string",
"null"
]
},
"isDaytime": {
"type": [
"boolean",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"shortForecast": {
"type": [
"string",
"null"
]
},
"startTime": {
"type": [
"string",
"null"
]
},
"temperature": {
"type": [
"number",
"null"
]
},
"temperatureUnit": {
"type": [
"string",
"null"
]
},
"windDirection": {
"type": [
"string",
"null"
]
},
"windSpeed": {
"type": [
"string",
"null"
]
}
},
"required": [],
"type": "object"
},
"type": "array"
},
"retrievedAt": {
"type": "string"
},
"source": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"status",
"source",
"coordinates",
"location",
"periods",
"retrievedAt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402-trends-server.onrender.com/api/weather" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402-trends-server.onrender.com/api/weather");
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://x402-trends-server.onrender.com/api/weather")
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/6509.json, and this resource appears in /discovery/resources and /discovery/search.