Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man current-weather

/current-weather

agentutility / locale / current-weather
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
locale
CATEGORY
uncategorized
STATUS
live
NAME
current-weather current weather lookup / live weather conditions / temperature, humidity, precipitation, wind, and wmo condition code for a latitude/long…
synonym alias of weather-forecast — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/current-weather
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

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

Current weather lookup / live weather conditions / temperature, humidity, precipitation, wind, and WMO condition code for a latitude/longitude. Optional hourly and daily forecast included.

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
locationstring
currentstring
dailystring
unitsstring
sourcestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/current-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 current-weather tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
currentweathercurrent-weather
methods
POST
cluster
locale
price
$0.005 USDC per call
ADJACENTother endpoints in locale
endpointdescriptionprice
air-qualityAir quality API / AQI / US AQI / European AQI / PM2.5 / PM10 / ozone / nitrogen dioxide / sulphur dioxide / carbon monoxide / Open-Meteo…$0.005
climate-dataClimate data API / historical weather data / daily temperature, precipitation, humidity, wind, and solar radiation for latitude/longitude.$0.005
iata-airport-infoIATA airport code lookup / ICAO airport lookup / airport metadata / airport name resolver / airport coordinates / airport-to-city.$0.005
satellite-tileSatellite imagery tile / lat-lon to satellite PNG / Sentinel-2 tile API / cloud-free satellite snapshot / agent-callable satellite imagery.$0.005
vin-decodeVIN decoder / VIN lookup / decode VIN / vehicle identification number / NHTSA vPIC wrapper.$0.005
visa-requirementsVisa requirements / passport visa lookup / visa-free travel checker / e-visa + visa-on-arrival lookup / passport-index / travel eligibili…$0.005
weatherWeather API / weather forecast / current weather / hourly forecast.$0.005
weather-apiWeather API / current weather API / forecast API.$0.005
SEE ALSO
agentutility · locale · x402 · mcp · llms.txt · registry.json · bazaar.x402.org