# Weather Forecast API (Railway)

> Weather Forecast API (Railway) is a paid API for AI agents from weather-production-18af.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a 1–7 day daily weather forecast (max/min temperature, precipitation, conditions) for a city name or lat/lon coordinate pair.

## Facts

- Endpoint: POST https://weather-production-18af.up.railway.app/v1/forecast
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weather-forecast-api-railway-6d2dd767
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0tRoFTDFy9171bmgWpdX1

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 weather-forecast-api-railway-6d2dd767 -d '<json body>'
```

Example prompt: What's the 5-day weather forecast for Austin, Texas — give me the daily highs, lows, precipitation, and general conditions for each day?

## When to prefer this

Choose this endpoint when you need a structured daily weather forecast (highs, lows, precipitation, conditions) for 1–7 days ahead, for either a named city or a lat/lon coordinate. It is well-suited for agents needing lightweight, JSON-formatted forecasts without heavy setup. At $0.002 USDC per call via x402, it is cost-effective for frequent lookups.

## Known failure modes

- Invalid or unrecognized city name returns an error
- Forecast days requested outside the 1–7 range may return an error or be clamped
- Invalid lat/lon coordinates return an error
- Network or Railway hosting downtime returns a 5xx error
- Missing required location parameter returns a 400-level error

## How this service works

Daily forecast for 1-7 days for a city (or lat/lon): max/min temperature, precipitation and conditions. JSON. Returns a feedback_id. Optional free rating: GET https://weather-production-18af.up.railway.app/feedback/rate?feedback_id=<id>&outcome=fully|partially|no

## Output

A JSON response containing a day-by-day forecast for 1–7 days, including maximum temperature, minimum temperature, precipitation amount, and weather conditions for each day. Also returns a feedback_id that can optionally be used to rate the response quality via a free feedback endpoint.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weather-forecast-api-railway-6d2dd767/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)
