# Current Weather by City Name

> Current Weather by City Name is a paid API for AI agents from web-production-18a32.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns current weather conditions for any city or place name, geocoded via Open-Meteo.

## Facts

- Endpoint: POST https://web-production-18a32.up.railway.app/current-weather
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/current-weather-by-city-name-2951f23c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4j1BS1OvVj44Dyldqj06f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability current-weather-by-city-name-2951f23c -d '<json body>'
```

Example prompt: What's the current weather in Barcelona right now?

## When to prefer this

Choose this endpoint when you need current (real-time) weather conditions for a named city or place and want a simple string input without needing to supply coordinates. It is ideal for conversational agents where users mention a city by name rather than latitude/longitude.

## Known failure modes

- Unrecognized or misspelled city name may return no results or wrong location
- Ambiguous place names (e.g. 'Springfield') may resolve to an unexpected location
- Network or service outage on the Railway-hosted server returns a 5xx error
- Payment failure via x402 protocol results in 402 response before weather data is returned

## How this service works

Current weather conditions by city or place name.

## Output

Returns current weather conditions for the requested city or place, including metrics such as temperature, wind, precipitation, and general atmospheric conditions as sourced from Open-Meteo's geocoded data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "location": {
   "type": "string",
   "description": "City or place name. Geocoded via Open-Meteo."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/current-weather-by-city-name-2951f23c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-18a32.up.railway.app](https://www.zero.xyz/host/web-production-18a32.up.railway.app/llms.txt)
