$ man weather-current-city
/weather-current-city
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
localeCATEGORY
uncategorized
STATUS
● live
NAME
weather-current-city — current weather by city / city weather api / instant weather lookup by place name
SYNOPSIS
POST https://x402.agentutility.ai/weather-current-city
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Current weather by city / city weather API / instant weather lookup by place name. Geocodes a city or place name with Open-Meteo, chooses the best match with optional country_code, then returns current temperature, feels-like, humidity, wind, precipitation, WMO weather code, timezone, and optional daily/hourly forecast from Open-Meteo. No API key.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| city | string | City or place name, e.g. 'Paris', 'San Francisco', or 'Springfield'. | required |
| query | string | Alias for city. | optional |
| country_code | string | Optional two-letter ISO country code to disambiguate, e.g. 'US', 'FR', 'JP'. | optional |
| units | string | Metric or imperial output units. Default metric. enum: metric · imperial | optional |
| forecast_days | number | Daily forecast days to include, 1-7. Default 1. | optional |
| hourly | boolean | If true, include hourly temperature, precipitation, and weather code arrays. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| query | string | — |
| resolved_location | string | — |
| current | string | — |
| source | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/weather-current-city \
-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-current-city tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- localeweathercurrentcityweather-current-city
- methods
- POST
- cluster
- locale
- price
- $0.01 USDC per call
ADJACENT — other endpoints in locale
| endpoint | description | price |
|---|---|---|
| city-weather | City weather API / current weather by city name / instant weather lookup. | $0.01 |
| current-weather-city | Current weather city lookup / city-name weather conditions. | $0.01 |
| flight-status | Flight status / live aircraft position / flight tracker / ICAO24 lookup / callsign lookup / aircraft bounding-box / OpenSky Network state… | $0.01 |
| property-tax | Property tax lookup. | $0.01 |
| property-tax-assessment | Property tax assessor lookup / parcel record search / assessed value finder / owner-name lookup / lot-and-block lookup / NYC PLUTO + SF A… | $0.01 |
| satellite-address | Address to satellite image / one-call address → cloud-free Sentinel-2 thumbnail / postal-code satellite snapshot / place-name to space view. | $0.01 |
| sports-schedule | Sports schedule / MLB / NBA / NHL / NFL / WNBA / MLS / EPL / La Liga / Bundesliga / Serie A — next games + recent results / sports schedu… | $0.01 |
| air-quality | Air quality API / AQI / US AQI / European AQI / PM2.5 / PM10 / ozone / nitrogen dioxide / sulphur dioxide / carbon monoxide / Open-Meteo… | $0.005 |
SEE ALSO