# Losbeto Weather — Pay-Per-Call Current Weather by City

> Losbeto Weather — Pay-Per-Call Current Weather by City is a paid API for AI agents from losbeto-production-dd7c.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-24).

Returns current weather conditions for a given city, paid via USDC micropayment (x402), no API key required.

## Facts

- Endpoint: GET https://losbeto-production-dd7c.up.railway.app/weather?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-weather-pay-per-call-current-weather-by-city-dfa55b06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xtLPiLQ-Q6KEGEtz9wcST

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 losbeto-weather-pay-per-call-current-weather-by-city-dfa55b06
```

Example prompt: What's the current weather in São Paulo — temperature, humidity, wind, and whether it's daytime?

## When to prefer this

Choose this endpoint when you need real-time, pay-per-call weather data for any city without API key registration, and you're operating in a USDC-compatible (Base, Solana, Algorand, or Polygon) payment context via the x402 protocol. Ideal for AI agents that require zero-setup weather lookups billed as micropayments.

## Known failure modes

- Unrecognized or misspelled city name may return an error or fall back to a best-guess geocode result
- x402 payment failure (insufficient USDC balance or unsupported chain) blocks the response
- Rate or service downtime on the upstream weather provider may result in stale or unavailable data
- Missing required 'city' query parameter returns a validation error

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.

## Output

A JSON object with current weather conditions including temperature (°C), feels-like temperature, humidity percentage, wind speed (km/h), wind direction (degrees), precipitation (mm), atmospheric pressure (hPa), cloud cover percentage, WMO weather code, human-readable condition string, is_day flag, observed timestamp, plus resolved location details (latitude, longitude, timezone, resolved name).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "city"
     ],
     "properties": {
      "city": {
       "type": "string",
       "description": "city parameter"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "ts": {
       "type": "integer"
      },
      "units": {
       "type": "object",
       "properties": {
        "wind": {
         "type": "string"
        },
        "pressure": {
         "type": "string"
        },
        "temperature": {
         "type": "string"
        },
        "precipitation": {
         "type": "string"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "current": {
       "type": "object",
       "properties": {
        "is_day": {
         "type": "integer"
        },
        "temp_c": {
         "type": "number"
        },
        "wind_kmh": {
         "type": "number"
        },
        "wmo_code": {
         "type": "integer"
        },
        "condition": {
         "type": "string"
        },
        "precip_mm": {
         "type": "number"
        },
        "observed_at": {
         "type": "string"
        },
        "feels_like_c": {
         "type": "number"
        },
        "humidity_pct": {
         "type": "integer"
        },
        "pressure_hpa": {
         "type": "number"
        },
        "wind_dir_deg": {
         "type": "integer"
        },
        "cloud_cover_pct": {
         "type": "integer"
        }
       }
      },
      "version": {
       "type": "string"
      },
      "location": {
       "type": "object",
       "properties": {
        "query": {},
        "latitude": {
         "type": "number"
        },
        "resolved": {
         "type": "string"
        },
        "timezone": {
         "type": "string"
        },
        "longitude": {
         "type": "number"
        }
       }
      },
      "provider": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-weather-pay-per-call-current-weather-by-city-dfa55b06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from losbeto-production-dd7c.up.railway.app](https://www.zero.xyz/host/losbeto-production-dd7c.up.railway.app/llms.txt)
