# Maxwell International Weather Forecast API

> Maxwell International Weather Forecast API is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-30).

Returns a multi-period weather forecast (temperature, wind, conditions) for a given location using official NWS grid data

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/weather/forecast?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-international-weather-forecast-api-6d0eabeb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jOwX14zwfCd9nprkTS4QY

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 maxwell-international-weather-forecast-api-6d0eabeb
```

Example prompt: What's the weather forecast for the next few days at coordinates 39.7°N, 104.9°W near Denver, Colorado? I need temperature in Fahrenheit, wind speed, and a detailed forecast for each period.

## When to prefer this

Choose this endpoint when you need official US National Weather Service forecast data resolved from latitude/longitude coordinates, with structured multi-period forecasts including both Fahrenheit and Celsius temperatures, wind details, and human-readable forecast text. Prefer this over general weather APIs when NWS authority and official forecast grid data are required, or when building US-focused weather-dependent decision systems.

## Known failure modes

- Coordinates outside NWS coverage area (non-US locations) may return no forecast data
- NWS upstream API outage causing failed grid resolution
- Cache miss with slow upstream response
- Invalid or missing query parameters returning 400 error
- Coordinates in ocean or non-continental US grid areas returning no WFO match
- Payment failure (402) if x402 micropayment not processed correctly

## How this service works

NWS daily/period forecast (about 7 days, day and night periods) for a US point or grid. From the NWS (US and territories), cached and refreshed about every 3 hours; a location not yet cached answers 404, is not charged, and is queued.

## Output

Returns a JSON object containing multiple forecast periods (e.g. Tonight, Tomorrow, Tomorrow Night), each with start/end times, daytime flag, temperature in °F and °C, wind speed and direction, short forecast summary, and detailed forecast text. Also includes NWS WFO office code, grid coordinates (gridX/gridY), state, country, cache hit/miss status, and generation timestamp. Source class indicates official NWS API data resolved from lat/lon.

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sku": "weather.forecast",
  "wfo": "BOU",
  "cache": "hit",
  "gridX": 63,
  "gridY": 62,
  "state": "Colorado",
  "country": "United States",
  "periods": [
   {
    "name": "Tonight",
    "endTime": "2026-09-26T06:00:00-06:00",
    "isDaytime": false,
    "startTime": "2026-09-25T21:00:00-06:00",
    "windSpeed": "5 to 8 mph",
    "temperature": 53,
    "temperatureC": 11.7,
    "shortForecast": "Mostly Clear",
    "windDirection": "SSW",
    "temperatureUnit": "F",
    "detailedForecast": "Mostly clear. Low around 53, with temperatures rising to around 55 overnight...."
   }
  ],
  "updatedAt": null,
  "generatedAt": "2026-09-26T03:52:17.125Z",
  "sourceClass": "official-api",
  "resolvedFrom": "latlon"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-international-weather-forecast-api-6d0eabeb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maxwellinternational.ai](https://www.zero.xyz/host/api.maxwellinternational.ai/llms.txt)
