# 24KLabs Weather Forecast API

> 24KLabs Weather Forecast API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns daily high/low temperatures, precipitation, and weather conditions for the next N days at any latitude/longitude coordinate using Open-Meteo data.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/weather-forecast
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24klabs-weather-forecast-api-9c4bcf5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sNbyjPtTGaKCzlbgpp2aT

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 24klabs-weather-forecast-api-9c4bcf5f -d '<json body>'
```

Example prompt: Can you pull the weather forecast for the next 7 days at latitude 40.7128, longitude -74.0060 — I need daily highs, lows, precipitation, and general conditions?

## When to prefer this

Choose this endpoint when you need a structured multi-day daily weather forecast (highs, lows, precipitation, conditions) for any arbitrary coordinates globally. It wraps Open-Meteo's free-tier data behind a simple paid API call, making it ideal for agents that need weather data without managing Open-Meteo API keys directly. Prefer this over current-conditions endpoints when planning ahead over multiple days.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error
- Requesting too many forecast days beyond available range returns an error
- Network or upstream Open-Meteo API outage causes failure
- Missing required lat/lon parameters results in a bad request error

## How this service works

Daily high/low, precipitation, and conditions for the next N days at any lat/lon (Open-Meteo).

## Output

Returns a day-by-day forecast array covering the requested number of days, with each entry containing the daily maximum temperature, daily minimum temperature, precipitation amount, and a general weather condition description for the given latitude/longitude location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number"
  },
  "lon": {
   "type": "number"
  },
  "days": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": []
 }
}
```

## More

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