# OpenWeather Current Conditions

> OpenWeather Current Conditions is a paid API for AI agents from openweather-coral.vercel.app, paid per call via x402, $0.002/call, down (last probed 2026-10-12); live alternatives: NWS Multi-Period Weather Forecast ($0.001) and Weather Forecast ($0.001).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [NWS Multi-Period Weather Forecast](https://www.zero.xyz/c/nws-multi-period-weather-forecast-us-8ecf4277) ($0.001)
- [Weather Forecast](https://www.zero.xyz/c/zeroclick-x402-service-registry-weather-0cd7c167) ($0.001)

Returns real-time weather conditions for a city or coordinates, including temperature, feels-like, humidity, wind, pressure, visibility, and sunrise/sunset times

## Facts

- Endpoint: GET https://openweather-coral.vercel.app/weather/current?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Last successful call: 2026-07-01
- Success rate: 85% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 14
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openweather-coral-vercel-app-233d77f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JtvXRlHme9pudou7SFnF9

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 openweather-coral-vercel-app-233d77f2
```

Example prompt: What's the current weather in London right now — temperature, feels-like, humidity, and wind conditions?

## When to prefer this

Use this endpoint when you need a single, comprehensive snapshot of current weather conditions for a specific location — temperature, wind, humidity, pressure, visibility, and sunrise/sunset all in one call. Prefer this over forecast endpoints when historical or future data is not needed. Choose city-name querying for convenience or lat/lon for precision. If air quality data is also needed, pair with the sibling AQI endpoint.

## Known failure modes

- Unknown city name returns an error — use lat/lon instead for ambiguous city names
- Missing required city or lat/lon parameter results in a 400 bad request
- Rate limiting or payment failure (402) if USDC balance is insufficient
- Stale data if OpenWeatherMap upstream is delayed — check updated_at field
- Lat/lon outside valid ranges (-90 to 90, -180 to 180) may return an error

## How this service works

Current weather conditions for any city: temperature, feels-like, humidity, wind, pressure, visibility, sunrise/sunset

## Output

A JSON object with the city name, country, coordinates, current temperature (with min/max and feels-like in Celsius), humidity percentage, atmospheric pressure, visibility in meters, wind speed/direction/gust, cloud cover percentage, precipitation (rain/snow last hour), a weather description and icon code, and UTC timestamps for sunrise, sunset, and last data update.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": "51.5074",
   "lon": "-0.1278"
  }
 }
}
```

## 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": "string",
       "description": "Latitude (alternative to city)"
      },
      "lon": {
       "type": "string",
       "description": "Longitude (alternative to city)"
      },
      "city": {
       "type": "string",
       "description": "City name (e.g. London, Tokyo, New York)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "city": {
       "type": "string"
      },
      "wind": {
       "type": "object"
      },
      "weather": {
       "type": "object"
      },
      "humidity": {
       "type": "number"
      },
      "temperature": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openweather-coral-vercel-app-233d77f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openweather-coral.vercel.app](https://www.zero.xyz/host/openweather-coral.vercel.app/llms.txt)
