$ man weather-api
/weather-api
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
localeCATEGORY
uncategorized
STATUS
● live
NAME
weather-api — weather api / current weather api / forecast api
synonym alias of weather-forecast — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/weather-api
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Weather API / current weather API / forecast API. Returns current conditions, hourly forecast, and 1-7 day daily forecast for latitude/longitude with metric or imperial units. Open-Meteo backend.
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/weather-api \
-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-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- localeweatherapiweather-api
- methods
- POST
- cluster
- locale
- price
- $0.005 USDC per call
ADJACENT — other endpoints in locale
| endpoint | description | price |
|---|---|---|
| air-quality | Air quality API / AQI / US AQI / European AQI / PM2.5 / PM10 / ozone / nitrogen dioxide / sulphur dioxide / carbon monoxide / Open-Meteo… | $0.005 |
| climate-data | Climate data API / historical weather data / daily temperature, precipitation, humidity, wind, and solar radiation for latitude/longitude. | $0.005 |
| current-weather | Current weather lookup / live weather conditions / temperature, humidity, precipitation, wind, and WMO condition code for a latitude/long… | $0.005 |
| iata-airport-info | IATA airport code lookup / ICAO airport lookup / airport metadata / airport name resolver / airport coordinates / airport-to-city. | $0.005 |
| satellite-tile | Satellite imagery tile / lat-lon to satellite PNG / Sentinel-2 tile API / cloud-free satellite snapshot / agent-callable satellite imagery. | $0.005 |
| vin-decode | VIN decoder / VIN lookup / decode VIN / vehicle identification number / NHTSA vPIC wrapper. | $0.005 |
| visa-requirements | Visa requirements / passport visa lookup / visa-free travel checker / e-visa + visa-on-arrival lookup / passport-index / travel eligibili… | $0.005 |
| weather | Weather API / weather forecast / current weather / hourly forecast. | $0.005 |
SEE ALSO