# Cracked Weather Forecast

> Cracked Weather Forecast is a paid API for AI agents from cracked.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns current weather conditions plus a multi-day daily forecast for a given latitude/longitude coordinate pair, routed via the Cracked agent tool platform.

## Facts

- Endpoint: POST https://cracked.ai/v1/run
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cracked-weather-forecast-2a8a9c4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9hjm-wsxPOKxCNPHicyQn

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 cracked-weather-forecast-2a8a9c4b -d '<json body>'
```

Example prompt: What's the current weather and 5-day forecast for coordinates 40.7128° N, 74.0060° W in Fahrenheit?

## When to prefer this

Choose this endpoint when your agent needs weather forecast data (current conditions + multi-day outlook) and you want a single, pay-per-call interface that handles provider routing automatically. It's ideal when you don't want to manage an Open-Meteo integration directly, need micropayment billing per call via x402/USDC, and want a simple capability-based POST interface. Pair with a geocoding step first if you only have a city name rather than coordinates.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error response
- Requesting too many forecast days beyond provider limit may return partial or error data
- Network or provider outage causes a failed run (not billed)
- Missing required capability field in POST body returns a schema validation error
- Unsupported units value may return an error or default behavior

## How this service works

Weather forecast: Current conditions plus daily forecast for coordinates. Use geocode first for a city name. Smart run on Cracked, the tool router for agents: POST {"capability":"weather-forecast","input":{...}} with input fields latitude, longitude, days, units; free schema at GET /v1/capabilities?id=weather-forecast. Quote = provider price + platform fee, never below $0.01; failed runs are never settled.

## Output

A JSON object containing current weather conditions (e.g. temperature_2m) and a daily forecast array for the requested number of days, along with run metadata including runId, billing amount in USD, payment settlement status on Base network, and the underlying provider (open-meteo).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "description": "Tool input; the schema comes from POST /v1/inspect or GET /v1/capabilities?id=<id>"
  },
  "endpoint": {
   "type": "string",
   "description": "Direct run: endpoint path from POST /v1/discover"
  },
  "provider": {
   "type": "string",
   "description": "Direct run: provider id from POST /v1/discover"
  },
  "capability": {
   "type": "string",
   "description": "Smart run: capability id such as web-search, instagram-profile or weather-forecast (GET /v1/capabilities lists them with their input fields)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "runId": "run_01J8X0Q5M3N7V9Y2K4T6W8Z0A1",
  "output": {
   "current": {
    "temperature_2m": 31.4
   }
  },
  "status": "COMPLETED",
  "billing": {
   "totalUsd": 0.001
  },
  "payment": {
   "network": "eip155:8453",
   "settled": true,
   "transaction": "0x5b1e0b1f5e2c7a5f4d3b2a1908f7e6d5c4b3a291807f6e5d4c3b2a1908f7e6d5"
  },
  "endpoint": "/forecast",
  "provider": "open-meteo"
 }
}
```

## More

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