Data tools / FX, rates, news, weather and knowledge

Weather forecast API by latitude and longitude

Use when you need a weather forecast for a latitude/longitude anywhere in the world: hourly temperature, wind speed and direction, humidity, pressure, cloud cover, precipitation and weather symbol for the next 1-240 hours from MET Norway, plus active official NWS alerts (event, severity, headline) for points in the United States. CC BY 4.0 attribution in every reply. $0.001 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/weather?lat=40.71&lon=-74.01&hours=48'
ParameterRequiredWhat it is
latyeslatitude in decimal degrees
lonyeslongitude in decimal degrees
hoursnoforecast horizon in hours (hourly steps first, then 6-hourly as MET publishes)

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "lat": 40.71,
  "lon": -74.01,
  "requested": {
    "lat": 40.7128,
    "lon": -74.006
  },
  "hours": 1,
  "updatedAt": "2026-10-05T11:19:21Z",
  "generatedAt": "2026-10-05T12:43:00.000Z",
  "units": {
    "tempC": "celsius",
    "windMs": "m/s",
    "windFromDeg": "degrees",
    "humidityPct": "%",
    "pressureHpa": "hPa",
    "cloudPct": "%",
    "precipMm": "mm over precipHours after time"
  },
  "points": [
    {
      "time": "2026-10-05T12:00:00Z",
      "tempC": 13.5,
      "windMs": 3.5,
      "windFromDeg": 248.7,
      "humidityPct": 93.8,
      "pressureHpa": 1015.3,
      "cloudPct": 3.9,
      "precipMm": 0,
      "precipHours": 1,
      "symbol": "clearsky_day"
    }
  ],
  "alerts": [],
  "alertsStatus": "ok",
  "attribution": {
    "forecast": "Data from MET Norway (The Norwegian Meteorological Institute), licensed under CC BY 4.0 and NLOD 2.0. Changes: P0 selected the requested hours and renamed fields; values are unchanged.",
    "forecastLicense": "https://creativecommons.org/licenses/by/4.0/",
    "forecastSource": "https://api.met.no/weatherapi/locationforecast/2.0/documentation",
    "alerts": "Active alerts from the U.S. National Weather Service (api.weather.gov), public domain. Alert texts are quoted, long description/instruction fields are shortened (truncated:true; full text at the alert url). P0 is not affiliated with or endorsed by NOAA/NWS."
  },
  "note": "Forecast, not an observation. Coordinates are rounded to 0.01 degrees (about 1 km). Not for aviation, marine or life-safety decisions; use official sources for warnings."
}

Free sample, no payment: /weather/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/fx-rates-news-weather-data, tool weather. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools