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

/weather-current-city

agentutility / locale / weather-current-city
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
locale
CATEGORY
uncategorized
STATUS
live
NAME
weather-current-city returns current weather for any city or place name, no coordinates needed
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

Returns current weather for any city or place name, no coordinates needed. Geocodes the 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. Use it as a city weather API or instant weather lookup by place name.

INPUTrequest schema
propertytypedescriptionreq?
citystringCity or place name, e.g. 'Paris', 'San Francisco', or 'Springfield'.required
querystringAlias for city.optional
country_codestringOptional two-letter ISO country code to disambiguate, e.g. 'US', 'FR', 'JP'.optional
unitsstringMetric or imperial output units. Default metric.
enum: metric · imperial
optional
forecast_daysnumberDaily forecast days to include, 1-7. Default 1.optional
hourlybooleanIf true, include hourly temperature, precipitation, and weather code arrays.optional
OUTPUTresponse shape
fieldtypedescription
querystring
resolved_locationstring
currentstring
sourcestring
EXAMPLEStwo 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
ADJACENTother endpoints in locale
endpointdescriptionprice
city-weatherReturns current weather by city name with an instant geocoded lookup.$0.01
currentInstant current weather by city name: geocodes a city or place name, then returns current Open-Meteo temperature, feels-like, humidity, w…$0.01
current-weather-cityCurrent weather city lookup / city-name weather conditions.$0.01
flight-statusTracks live aircraft positions from the OpenSky Network.$0.01
property-taxProperty tax lookup.$0.01
property-tax-assessmentSearches county assessor records by address or parcel ID for owner, assessed value, and property details.$0.01
satellite-addressTurns a street address into a cloud-free satellite image in one call.$0.01
sports-scheduleReturns upcoming games and recent results for major sports leagues: MLB, NBA, NHL, NFL, WNBA, MLS, EPL, La Liga, Bundesliga, and Serie A.$0.01
SEE ALSO
agentutility · locale · x402 · mcp · llms.txt · registry.json · bazaar.x402.org