# apiwitchcraft Weather for Micro-Bet Settlement

> apiwitchcraft Weather for Micro-Bet Settlement is a paid API for AI agents from apiwitchcraft.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns weather conditions for a given geographic coordinate, optimized for settling micro-bets on weather outcomes.

## Facts

- Endpoint: GET https://apiwitchcraft.duckdns.org/micro-bet/weather
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiwitchcraft-weather-for-micro-bet-settlement-eff5faf3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9cETEuAF8e8dbXthzeZWJ

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 apiwitchcraft-weather-for-micro-bet-settlement-eff5faf3
```

Example prompt: Can you check the weather conditions at latitude 40.7128 and longitude -74.0060 for today so I can settle a weather micro-bet on whether it rained in New York?

## When to prefer this

Use this endpoint when an AI agent needs to fetch weather conditions at a specific geographic coordinate (lat/lon) for the purpose of resolving or settling a weather-based micro-bet. Prefer this over general weather APIs when operating in a micro-payment (x402) context and needing pay-per-call weather lookups tied to bet settlement workflows.

## Known failure modes

- Missing required lat or lon parameters returns a 400-level error
- Invalid or out-of-range coordinates may return an error or empty result
- Payment not included or insufficient results in a 402 Payment Required response
- Unsupported date range may return no data or an error
- Downstream weather data source unavailable causes a 5xx error

## How this service works

Pay-per-call weather forecast probability API for micro-betting and prediction markets. Given a location and target date, return outcome probabilities (will it rain, temperature bands, wind, precipitation chance) you can price or resolve small weather contracts against. Built for agents and apps that settle micro-wagers per request in USDC — fast, granular, no account or exchange needed. A data and settlement primitive, not real-money gambling.

## Output

Returns weather data (conditions, temperature, etc.) for the specified latitude and longitude, optionally filtered by condition type and date, suitable for verifying and settling weather-based micro-bets.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiwitchcraft-weather-for-micro-bet-settlement-eff5faf3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiwitchcraft.duckdns.org](https://www.zero.xyz/host/apiwitchcraft.duckdns.org/llms.txt)
