# Current Weather by City or Coordinates

> Current Weather by City or Coordinates is a paid API for AI agents from weather-production-18af.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns current weather conditions (temperature, feels-like, humidity, wind, precipitation) for a given city name or lat/lon coordinates as JSON.

## Facts

- Endpoint: GET https://weather-production-18af.up.railway.app/v1/weather?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/current-weather-by-city-or-coordinates-311ef17d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gVhNAidLctK6DGDF8LCrD

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-or-coordinates-311ef17d
```

Example prompt: What's the current weather in Chicago — temperature, humidity, wind, and whether it's raining?

## When to prefer this

Use this endpoint when you need real-time current weather conditions (not forecasts) for a specific city or geographic coordinate. It is ideal for single-location spot checks where up-to-date temperature, humidity, wind, and precipitation data are needed immediately. For multi-day forecasts, use the sibling forecast endpoint instead.

## Known failure modes

- City name not found or ambiguous — returns error indicating unrecognized location
- Missing required input (neither city nor lat/lon provided) — returns validation error
- Upstream weather data provider unavailable — may return 5xx or timeout
- Invalid lat/lon values outside valid geographic range — returns error

## How this service works

Current weather for a city (or lat/lon): temperature, feels-like, humidity, wind, precipitation and conditions. JSON.

## Output

A JSON object containing current weather data for the queried location, including temperature, feels-like temperature, humidity, wind speed and direction, precipitation amount, and a textual description of conditions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "city": {
       "type": "string",
       "description": "City name. Required unless lat and lon are given."
      },
      "days": {
       "type": "integer",
       "maximum": 7,
       "minimum": 1,
       "description": "Forecast only."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/current-weather-by-city-or-coordinates-311ef17d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from weather-production-18af.up.railway.app](https://www.zero.xyz/host/weather-production-18af.up.railway.app/llms.txt)
