# 1gateway Global Weather Forecast

> 1gateway Global Weather Forecast is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns current conditions, hourly forecasts (up to 72 hours), and ~10-day daily forecasts for any lat/lon on Earth, powered by MET Norway data

## Facts

- Endpoint: GET https://1gateway.dev/v1/weather/global?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-global-weather-forecast-cfb2db06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_otf_fR9C5oXIOOtg2Gu7W

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 1gateway-global-weather-forecast-cfb2db06
```

Example prompt: What's the weather like right now in London, and can you give me the hourly forecast for the next 24 hours and the 10-day daily outlook? London is at lat 51.5072, lon -0.1276, timezone Europe/London.

## When to prefer this

Choose this endpoint when you need a globally-available, low-cost weather forecast with structured current, hourly, and daily data from a reputable meteorological source (MET Norway) via a simple GET with lat/lon. Prefer it over generic weather APIs when you need MET Norway symbol codes, elevation metadata, and timezone-aware daily summaries in one call at $0.002 per request. Best for agents needing programmatic weather enrichment without managing API keys.

## Known failure modes

- Missing required lat or lon parameters returns an error
- Lat out of range (-90 to 90) or lon out of range (-180 to 180) returns validation error
- Invalid IANA timezone string may cause daily summary to fall back to UTC or return error
- hours value outside 0-72 range returns validation error
- MET Norway upstream outage may result in stale or unavailable data
- Payment failure (x402) if USDC balance insufficient or payment not attached
- Coordinates at sea or in very remote locations may still return data but with lower accuracy

## How this service works

Use when an agent needs the weather anywhere in the world. Input: lat, lon, optional hours (0-72 hourly steps, default 24), tz (IANA zone for daily summaries, default UTC). Output: JSON current temperature, symbol, wind, humidity, cloud, pressure; hourly series; daily min/max, precipitation, max wind, symbol for ~10 days. Data: MET Norway. Example: ?lat=51.5072&lon=-0.1276&tz=Europe/London

## Output

A JSON object containing: location metadata (lat, lon, timezone, elevation); updatedAt timestamp; current conditions (temperature in °C, wind speed in m/s, wind direction, cloud %, humidity %, pressure hPa, precipitation next hour, weather symbol); an hourly array for up to 72 steps (time, local hour, temperature, wind, cloud, humidity, precipitation, symbol); and a daily array for ~10 days (date, min/max temp, precipitation mm, max wind, symbol). Attribution credit to MET Norway CC BY 4.0 is included.

## 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": [
      "lat",
      "lon"
     ],
     "properties": {
      "tz": {
       "type": "string",
       "examples": [
        "Europe/London"
       ],
       "maxLength": 64,
       "description": "IANA time zone for daily summaries and local hours (default UTC)"
      },
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "examples": [
        51.5072
       ],
       "description": "Latitude, WGS84 decimal degrees (rounded to 0.01)"
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "examples": [
        -0.1276
       ],
       "description": "Longitude, WGS84 decimal degrees (rounded to 0.01)"
      },
      "hours": {
       "type": "integer",
       "maximum": 72,
       "minimum": 0,
       "examples": [
        24
       ],
       "description": "Hourly steps to return (default 24)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "location",
      "updatedAt",
      "current",
      "hourly",
      "daily",
      "units",
      "attribution",
      "note"
     ],
     "properties": {
      "note": {
       "type": "string"
      },
      "daily": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "maxC": {
          "type": "number"
         },
         "minC": {
          "type": "number"
         },
         "symbol": {
          "type": [
           "string",
           "null"
          ]
         },
         "maxWindMs": {
          "type": "number"
         },
         "precipitationMm": {
          "type": "number"
         }
        }
       }
      },
      "units": {
       "type": "object",
       "properties": {
        "wind": {
         "type": "string"
        },
    
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Coordinates rounded to 0.01° (~1 km). Symbols are MET Norway weather symbol codes (e.g. clearsky_day, lightrain). Daily values use the requested time zone; the…",
  "daily": [
   {
    "date": "2026-10-18",
    "maxC": 13.1,
    "minC": 9.1,
    "symbol": "rainshowers_night",
    "maxWindMs": 5.2,
    "precipitationMm": 1
   }
  ],
  "units": {
   "wind": "m/s",
   "pressure": "hPa",
   "temperature": "°C",
   "precipitation": "mm"
  },
  "hourly": [
   {
    "time": "2026-10-18T15:00:00Z",
    "symbol": "partlycloudy_day",
    "windMs": 5.2,
    "cloudPct": 80.5,
    "localHour": 16,
    "humidityPct": 52.1,
    "windFromDeg": 19,
    "temperatureC": 13.1,
    "precipitationMm": 0
   }
  ],
  "current": {
   "time": "2026-10-18T15:00:00Z",
   "symbol": "partlycloudy_day",
   "windMs": 5.2,
   "cloudPct": 80.5,
   "humidityPct": 52.1,
   "pressureHpa": 1027.7,
   "windFromDeg": 19,
   "temperatureC": 13.1,
   "precipitationNextHourMm": 0
  },
  "location": {
   "lat": 51.51,
   "lon": -0.13,
   "timezone": "Europe/London",
   "elevationM": 17
  },
  "updatedAt": "2026-10-18T13:17:51Z",
  "attribution": "Weather forecast data from MET Norway (The Norwegian Meteorological Institute), CC BY 4.0."
 }
}
```

## More

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