# PennyRail Weather by City

> PennyRail Weather by City is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Fetches current weather conditions for a specified city via a micropayment-gated settlement endpoint

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/weather.current--weather-by-city
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-weather-by-city-6385b2e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_poMwHULUrJmfy_gRHxk4Z

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 pennyrail-weather-by-city-6385b2e3 -d '<json body>'
```

Example prompt: What's the current weather in Tokyo right now? I need the live conditions — temperature, sky status, all of it.

## When to prefer this

Choose this endpoint when you need real-time current weather conditions for a specific city and are operating in a micropayment-enabled (x402) environment where per-call USDC billing is acceptable. Useful when integrating weather lookups into agent workflows that already handle x402 payment flows.

## Known failure modes

- City name not recognized or ambiguous — returns error or empty result
- Payment of 0.003 USDC not fulfilled — request blocked with 402 Payment Required
- Upstream weather data provider unavailable — service error returned
- Malformed input object — request rejected with validation error
- Network timeout from weather data source — incomplete response

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing current weather conditions for the requested city, including temperature, weather status, and related atmospheric data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-weather-by-city-6385b2e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
