$ man current-weather
/current-weather
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
localeCATEGORY
uncategorized
STATUS
● live
NAME
current-weather — looks up current weather conditions for a latitude/longitude: temperature, humidity, precipitation, wind, and wmo condition code
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
Looks up current weather conditions for a latitude/longitude: temperature, humidity, precipitation, wind, and WMO condition code. Optional hourly and daily forecast included. Use it as a live weather conditions lookup.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| latitude | number | Decimal degrees, range [-90, 90]. Positive north. | required |
| longitude | number | Decimal degrees, range [-180, 180]. Positive east. | required |
| units | string | 'metric' (°C, km/h, mm) or 'imperial' (°F, mph, inch). Default 'metric'. enum: metric · imperial | optional |
| forecast_days | number | Number of forecast days, 1-7. Default 3. | optional |
| hourly | boolean | If true, include hourly temperature, precipitation, and weather code arrays. Default false. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| location | string | — |
| current | string | — |
| daily | string | — |
| units | string | — |
| source | string | — |
EXAMPLES — two 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.002 USDC per call
ADJACENT — other endpoints in locale
| endpoint | description | price |
|---|---|---|
| weather | Current conditions and forecast for any latitude/longitude. | $0.002 |
| weather-api | Weather API returning current conditions, hourly forecast, and a 1-7 day daily forecast for any latitude/longitude. | $0.002 |
| weather-forecast | Returns current conditions, a 1-7 day daily forecast, and an optional hourly forecast for any latitude/longitude. | $0.002 |
| earthquakes-recent | Returns recent earthquakes from USGS for any time window (hour, day, week, month) above a magnitude threshold. | $0.003 |
| air-quality | Returns 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-lookup | Resolves airport codes to airport name, municipality, country, region, coordinates, elevation, scheduled-service flag, homepage, and Wiki… | $0.005 |
| astro-times | Sunrise sunset times. | $0.005 |
| climate-data | Returns historical daily temperature, precipitation, humidity, wind, and solar radiation for any latitude/longitude. | $0.005 |
SEE ALSO