# Gerbsoda402 Weather API

> Gerbsoda402 Weather API is a paid API for AI agents from api.gerbsoda402.xyz, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Returns current live weather conditions (temperature, wind speed, condition) for a given city name.

## Facts

- Endpoint: GET https://api.gerbsoda402.xyz/api/weather
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gerbsoda402-weather-api-b1b0e0a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LNuphYLR0xSnoZGCtct5U

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 gerbsoda402-weather-api-b1b0e0a2
```

Example prompt: What's the current weather in Tokyo right now — temperature, wind speed, and conditions?

## When to prefer this

Choose this endpoint when you need real-time weather data for any city worldwide and are operating in an x402 micropayment environment. It is a lightweight, low-cost ($0.001 USDC) lookup returning structured JSON — ideal for agents that need current conditions without a subscription key or OAuth flow.

## Known failure modes

- Unknown or misspelled city name returns an error or empty result
- Network timeout if upstream weather provider is unavailable
- Missing required 'city' query parameter results in a 400-style error
- Rate or payment failure (x402) if USDC payment is not properly attached

## How this service works

Paid endpoints served over x402: live weather and Minecraft server status.

## Output

A JSON object with the city name, country, current weather condition (e.g. 'Partly cloudy'), observation timestamp (ISO 8601), temperature in Celsius, and wind speed in km/h.

## 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",
     "required": [
      "city"
     ],
     "properties": {
      "city": {
       "type": "string",
       "description": "City name, e.g. 'San Francisco' or 'Tokyo'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "city": "San Francisco",
  "country": "United States",
  "condition": "Partly cloudy",
  "observed_at": "2026-09-01T20:00:00Z",
  "temperature_c": 18.4,
  "windspeed_kmh": 14.2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gerbsoda402-weather-api-b1b0e0a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gerbsoda402.xyz](https://www.zero.xyz/host/api.gerbsoda402.xyz/llms.txt)
