# 2s Global Weather Forecast

> 2s Global Weather Forecast is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-13).

Returns daily or hourly weather forecasts for any coordinate on Earth, up to 16 days ahead, in metric or imperial units

## Facts

- Endpoint: GET https://2s.io/api/weather/forecast-global
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-global-weather-forecast-fb89cb30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_voAMkWj6MfCW0Av2GX4ws

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 2s-global-weather-forecast-fb89cb30
```

Example prompt: What's the 10-day weather forecast for London (51.5074, -0.1278) in imperial units — and can you break it down hour by hour?

## When to prefer this

Choose this endpoint when you need a global weather forecast for any arbitrary lat/lon coordinate with flexible horizon (up to 16 days), optionally at hourly granularity, and you want pay-per-call pricing with no API key setup. Prefer this over historical weather endpoints when you need future forecasts, and over city-name-based APIs when you have precise coordinates.

## Known failure modes

- Missing required lat/lon parameters → 400 Bad Request
- lat out of range (-90..90) or lon out of range (-180..180) → 400 validation error
- days parameter outside 1–16 range → validation error or clamped value
- Payment not provided or insufficient USDC → 402 Payment Required
- Upstream weather data provider outage → 503 or degraded response
- Invalid units value (not 'metric' or 'imperial') → 400 error

## How this service works

The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.

## Output

A structured weather forecast for the given coordinates containing either daily summaries or hour-by-hour breakdowns over the requested number of days (1–16), including temperature, precipitation, wind speed, and other meteorological variables in the requested unit system (metric or imperial).

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude (-90..90)."
      },
      "lon": {
       "type": "number",
       "description": "Longitude (-180..180)."
      },
      "days": {
       "type": "integer",
       "description": "Forecast horizon in days (1–16, default 7)."
      },
      "units": {
       "type": "string",
       "description": "metric (°C, km/h, mm — default) or imperial (°F, mph, inch)."
      },
      "hourly": {
       "type": "boolean",
       "description": "Hour-by-hour forecast instead of daily summaries."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-global-weather-forecast-fb89cb30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
