# x402 Weather API – Current Conditions

> x402 Weather API – Current Conditions is a paid API for AI agents from x402-weather-api-production-04c4.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-03, last successful call 2026-06-10).

Returns current weather conditions (temperature, humidity, wind, precipitation, feels-like, and human-readable description) for any global location by city name or coordinates.

## Facts

- Endpoint: POST https://x402-weather-api-production-04c4.up.railway.app/current?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Last successful call: 2026-06-10
- Success rate: 33% of calls made through Zero
- Activations on Zero: 5
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-current-conditions-9d7e0ab4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GAtYekvNOj9Ax5JD2xyhG

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 x402-weather-api-current-conditions-9d7e0ab4 -d '<json body>'
```

Example prompt: What are the current weather conditions in Amsterdam — temperature, how it feels outside, humidity, and whether it's raining?

## When to prefer this

Use this endpoint when you need real-time current weather conditions (not a forecast) for a specific city or geographic coordinate. Ideal for single-location lookups where you want temperature, humidity, wind, and a plain-language summary in one call. Prefer this over forecast APIs when only the present moment matters.

## Known failure modes

- Unknown or misspelled city name returns an error or empty result
- Latitude/longitude out of valid range (-90 to 90, -180 to 180) causes a validation error
- Missing both location and coordinates results in a bad request error
- Payment of 0.001 USDC not provided or rejected causes a 402 Payment Required response
- Upstream weather data provider outage returns a 503 or timeout

## How this service works

Current weather conditions for any global location — temperature, feels-like, humidity, precipitation, wind, and human-readable weather description.

## Output

A structured response containing current temperature, feels-like temperature, humidity percentage, precipitation amount, wind speed and direction, and a human-readable weather description (e.g. 'Partly cloudy with light winds') for the requested location.

## Example request

```json
{
 "latitude": null,
 "location": "London",
 "longitude": null
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "latitude": {
   "type": [
    "number",
    "null"
   ],
   "description": "Optional latitude override (decimal degrees, -90 to 90)."
  },
  "location": {
   "type": "string",
   "description": "City or place name to fetch weather for (e.g. 'London', 'New York')."
  },
  "longitude": {
   "type": [
    "number",
    "null"
   ],
   "description": "Optional longitude override (decimal degrees, -180 to 180)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-weather-api-current-conditions-9d7e0ab4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-weather-api-production-04c4.up.railway.app](https://www.zero.xyz/host/x402-weather-api-production-04c4.up.railway.app/llms.txt)
