# AllTheBot Weather Forecast

> AllTheBot Weather Forecast is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns current conditions and up to 7-day weather forecasts for any latitude/longitude coordinate worldwide, powered by MET Norway Locationforecast 2.0

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/weather/forecast?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-weather-forecast-9e7e5d06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fGjFZ7pqTT6yBz32pEq7t

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 allthebot-weather-forecast-9e7e5d06
```

Example prompt: What's the weather forecast for the next 3 days at latitude 48.85, longitude 2.35 — give me daily highs, lows, precipitation, and wind speed?

## When to prefer this

Choose this endpoint when you need worldwide weather forecasts (current + up to 7-day daily + 24h hourly) for arbitrary GPS coordinates without requiring an account or API key, paying only $0.002 USDC per call via x402. Ideal for AI agents that need on-demand weather data as part of a larger workflow, especially when avoiding subscription-based weather APIs. Best when you already have coordinates (lat/lon) rather than a place name.

## Known failure modes

- Missing required lat/lon parameters returns a 400 error
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) returns validation error
- days parameter outside 1-7 range returns validation error
- Payment not provided or insufficient USDC balance returns 402 Payment Required
- MET Norway upstream outage may cause delayed or stale data
- Extremely remote or polar coordinates may have reduced forecast accuracy

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with current conditions (temperature in °C, wind in m/s, cloud cover %, precipitation in mm, humidity %, pressure in hPa, wind direction, weather symbol), an hourly array for the next 24 hours, a daily summary array with max/min temps and max wind for up to 7 days, coordinate echo, units metadata, data source attribution, and model update timestamp.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "days": {
       "type": "integer",
       "maximum": 7,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 48.85,
  "lon": 2.35,
  "now": {
   "time": "2026-10-10T10:00:00Z",
   "symbol": "fair",
   "temp_c": 15.4,
   "wind_ms": 4.2,
   "cloud_pct": 35.9,
   "precip_mm": 0,
   "humidity_pct": 68.3,
   "pressure_hpa": 1016.5,
   "wind_dir_deg": 271.6
  },
  "units": {
   "temp": "celsius",
   "wind": "m/s",
   "precip": "mm",
   "pressure": "hPa"
  },
  "source": "MET Norway, Locationforecast 2.0 (api.met.no), CC BY 4.0",
  "next_24h": [
   {
    "time": "2026-10-10T10:00:00Z",
    "symbol": "fair",
    "temp_c": 15.4,
    "wind_ms": 4.2,
    "cloud_pct": 35.9,
    "precip_mm": 0,
    "humidity_pct": 68.3,
    "pressure_hpa": 1016.5,
    "wind_dir_deg": 271.6
   }
  ],
  "daily_utc": [
   {
    "date": "2026-10-10",
    "symbol": "partlycloudy",
    "precip_mm": 0.2,
    "temp_max_c": 17.2,
    "temp_min_c": 11.8,
    "wind_max_ms": 5.4
   }
  ],
  "model_updated": "2026-10-10T09:17:18Z"
 }
}
```

## More

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