Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man weather

/weather

agentutility / locale / weather
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
locale
CATEGORY
uncategorized
STATUS
live
NAME
weather current conditions and forecast for any latitude/longitude
synonym alias of weather-forecast — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/weather
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Current conditions and forecast for any latitude/longitude. Returns present weather plus a 1-7 day daily forecast (temp max/min, precipitation, sunrise/sunset, UV index) and an optional hourly forecast. A simple weather API on the Open-Meteo backend.

INPUTrequest schema
propertytypedescriptionreq?
latitudenumberDecimal degrees, range [-90, 90]. Positive north.required
longitudenumberDecimal degrees, range [-180, 180]. Positive east.required
unitsstring'metric' (°C, km/h, mm) or 'imperial' (°F, mph, inch). Default 'metric'.
enum: metric · imperial
optional
forecast_daysnumberNumber of forecast days, 1-7. Default 3.optional
hourlybooleanIf true, include hourly temperature, precipitation, and weather code arrays. Default false.optional
OUTPUTresponse shape
fieldtypedescription
locationstringEcho of the requested coordinates with resolved place name, timezone, and elevation for the forecast point.
currentstringCurrent conditions snapshot: temperature, apparent temp, humidity, wind speed/direction, and weather code.
dailystringArray of 1-7 day forecasts with temp max/min, precipitation totals, sunrise/sunset times, and UV index.
unitsstringUnit labels for each returned field (e.g. temperature in C or F, wind in km/h, precipitation in mm).
sourcestringUpstream data provider identifier, set to open-meteo for this endpoint.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/weather \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the weather tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
weatherlocaleforecastcurrent-conditionshourly-forecastuv-indexopen-meteo
methods
POST
cluster
locale
price
$0.005 USDC per call
ADJACENTother endpoints in locale
endpointdescriptionprice
air-qualityReturns current air quality readings and AQI category for any latitude/longitude, with optional hourly forecast rows for the next 1-72 hours.$0.005
airport-code-lookupResolves airport codes to airport name, municipality, country, region, coordinates, elevation, scheduled-service flag, homepage, and Wiki…$0.005
astro-timesSunrise sunset times.$0.005
climate-dataReturns historical daily temperature, precipitation, humidity, wind, and solar radiation for any latitude/longitude.$0.005
country-infoCountry info lookup.$0.005
current-weatherLooks up current weather conditions for a latitude/longitude: temperature, humidity, precipitation, wind, and WMO condition code.$0.005
holiday-lookupHoliday calendar.$0.005
iata-airport-infoLooks up airport metadata from an IATA or ICAO code.$0.005
SEE ALSO
agentutility · locale · x402 · mcp · llms.txt · registry.json · bazaar.x402.org