Back to catalogue

Weather Intelligence

Production-ready weather data endpoints built on Open-Meteo and wrapped in x402 payment flows for both testnet and mainnet.

mainnettestnet Current weather with practical operational fieldsDaily and hourly forecast selectionArchive and history-summary endpointsMainnet and testnet route families

8 endpoints available

Click any endpoint to see details, example requests, and try it live with your Freighter wallet.

GET /weather/current
mainnet $0.01 USD

Current weather conditions for a latitude and longitude.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/weather/current?latitude=51.5072&longitude=-0.1276&timezone=auto"
  • latitude
  • longitude
  • timezone=auto
GET /testnet/weather/current
testnet $0.01 USD

Current weather conditions for a latitude and longitude.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/testnet/weather/current?latitude=51.5072&longitude=-0.1276&timezone=auto"
  • latitude
  • longitude
  • timezone=auto
GET /weather/forecast
mainnet $0.01 USD

Forecast weather data with optional daily and hourly field selection.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/weather/forecast?latitude=51.5072&longitude=-0.1276&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&forecast_days=5&timezone=auto"
  • latitude
  • longitude
  • daily=comma,separated,fields
  • hourly=comma,separated,fields
  • forecast_days=1..16
  • timezone=auto
GET /testnet/weather/forecast
testnet $0.01 USD

Forecast weather data with optional daily and hourly field selection.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/testnet/weather/forecast?latitude=51.5072&longitude=-0.1276&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&forecast_days=5&timezone=auto"
  • latitude
  • longitude
  • daily=comma,separated,fields
  • hourly=comma,separated,fields
  • forecast_days=1..16
  • timezone=auto
GET /weather/archive
mainnet $0.01 USD

Historical archive weather data across a date range.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/weather/archive?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=auto"
  • latitude
  • longitude
  • start_date=YYYY-MM-DD
  • end_date=YYYY-MM-DD
  • daily=comma,separated,fields
  • hourly=comma,separated,fields
  • timezone=auto
GET /testnet/weather/archive
testnet $0.01 USD

Historical archive weather data across a date range.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/testnet/weather/archive?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=auto"
  • latitude
  • longitude
  • start_date=YYYY-MM-DD
  • end_date=YYYY-MM-DD
  • daily=comma,separated,fields
  • hourly=comma,separated,fields
  • timezone=auto
GET /weather/history-summary
mainnet $0.01 USD

Compact summary view over an archive range with hottest, coldest, and precipitation totals.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/weather/history-summary?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&timezone=auto"
  • latitude
  • longitude
  • start_date=YYYY-MM-DD
  • end_date=YYYY-MM-DD
  • timezone=auto
GET /testnet/weather/history-summary
testnet $0.01 USD

Compact summary view over an archive range with hottest, coldest, and precipitation totals.

query.json

Edit this JSON before trying the endpoint. The paid retry uses the exact same payload.

curl
curl "https://xlm402.com/testnet/weather/history-summary?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&timezone=auto"
  • latitude
  • longitude
  • start_date=YYYY-MM-DD
  • end_date=YYYY-MM-DD
  • timezone=auto