# agent402.tools Current Weather

> agent402.tools Current Weather is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns real-time weather conditions for any lat/lon coordinate on Earth, including temperature, humidity, wind, precipitation, and human-readable condition via Open-Meteo.

## Facts

- Endpoint: GET https://agent402.tools/api/weather-current
- 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/agent402-tools-current-weather-ecef81bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EoTYYbBKBviWgk7vfZga7

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 agent402-tools-current-weather-ecef81bd
```

Example prompt: What are the current weather conditions at latitude 48.86, longitude 2.35 — give me temperature in Celsius, humidity, wind speed, and a plain-English description of the conditions?

## When to prefer this

Use this endpoint when you need real-time weather conditions for a specific geographic coordinate globally, without needing an API key, and when you want a ready-to-use human-readable condition alongside raw meteorological data. Prefer this over forecast endpoints when only current/live conditions are needed.

## Known failure modes

- Missing lat or lon parameter — returns 400 or error response
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) — invalid coordinate error
- Payment not attached or insufficient — 402 Payment Required
- Upstream Open-Meteo API unavailable — 502 or timeout
- Invalid units value (not 'celsius' or 'fahrenheit') — may default or error

## How this service works

Current weather conditions for any location on Earth: temperature, feels-like, humidity, wind speed/direction/gusts, precipitation, cloud cover, pressure, and human-readable condition. Open-Meteo, no key, global. ?lat=48.86&lon=2.35.

## Output

A JSON object containing current weather at the given coordinates: temperature (°C or °F), feels-like temperature, humidity percentage, wind speed, wind direction in degrees, wind gusts, precipitation amount, cloud cover percentage, atmospheric pressure, and a human-readable weather condition string.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 48.86,
   "lon": 2.35,
   "units": "celsius"
  }
 }
}
```

## 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": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "units": {
       "type": "string",
       "description": "Temperature unit: celsius (default) or fahrenheit"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "lat",
      "lon",
      "current",
      "source"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "current": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 48.8566,
  "lon": 2.3522,
  "source": "api.open-meteo.com (CC BY 4.0)",
  "current": {
   "time": "2026-06-23T14:00",
   "unit": "°C",
   "isDay": true,
   "humidity": 55,
   "pressure": 1015.2,
   "windUnit": "km/h",
   "condition": "Partly cloudy",
   "feelsLike": 21.8,
   "windGusts": 18.3,
   "windSpeed": 12.5,
   "cloudCover": 40,
   "temperature": 22.4,
   "weatherCode": 2,
   "precipitation": 0,
   "windDirection": 220
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-current-weather-ecef81bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
