# x402.outpimp.com Live Weather API

> x402.outpimp.com Live Weather API is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns real-time weather conditions including temperature, humidity, wind, precipitation, UV index, and optionally a 3-day forecast and astronomy data for any city worldwide.

## Facts

- Endpoint: POST https://x402.outpimp.com/getWeather
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-outpimp-com-live-weather-api-3aac2840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pq7iNFVGOl_SH4Egyet2Z

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 x402-outpimp-com-live-weather-api-3aac2840 -d '<json body>'
```

Example prompt: What's the current weather in Barcelona right now — temperature, humidity, and wind speed in metric units, and also include today's sunrise and sunset times?

## When to prefer this

Choose this endpoint when you need live, real-time weather data that an LLM cannot know on its own, including current conditions, multi-day forecasts, or astronomical data for any city worldwide. It supports 74 languages and both metric and imperial units, making it ideal for multilingual or international use cases. Prefer this over static or cached weather sources when freshness is critical.

## Known failure modes

- Returns HTTP 400 if the city parameter is missing or empty
- May return an error or empty result if the city name is unrecognized or misspelled
- Network timeouts possible when fetching from live external weather data provider
- Invalid language codes may fall back to English or return an error

## How this service works

Live weather API. Returns real-time weather conditions, temperature, feels-like temperature, humidity, wind speed, precipitation, and UV index for any city worldwide — live external data an LLM cannot know on its own. Supports metric/imperial units, 74 languages, and optional 3-day forecast and sun/moon astronomy data.

## Output

Returns a JSON object with real-time weather data including current temperature, feels-like temperature, humidity, wind speed, precipitation, and UV index for the requested city. Optionally includes a 3-day forecast (min/max/avg temperature, UV index, sun hours) and/or astronomy data (sunrise, sunset, moonrise, moonset, moon phase). Responds with HTTP 400 if the city parameter is missing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "city": {
   "type": "string",
   "description": "City name, e.g. \"san-francisco\" or \"london\"."
  },
  "lang": {
   "type": "string",
   "default": "en",
   "description": "Language code for the weather conditions text, e.g. \"de\" or \"fr\". Passed through to the weather provider. Defaults to English."
  },
  "units": {
   "enum": [
    "metric",
    "imperial"
   ],
   "type": "string",
   "default": "metric",
   "description": "Unit system for temperature and wind speed. Defaults to \"metric\"."
  },
  "includeForecast": {
   "type": "boolean",
   "default": false,
   "description": "Include a 3-day forecast (min/max/avg temp, UV index, sun hours per day). Defaults to false."
  },
  "includeAstronomy": {
   "type": "boolean",
   "default": false,
   "description": "Include today's sunrise, sunset, moonrise, moonset, and moon phase. Defaults to false."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-outpimp-com-live-weather-api-3aac2840/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
