# Weather History API — The Stall x402

> Weather History API — The Stall x402 is a paid API for AI agents from the-stall.intuitek.ai, paid per call via x402, $0.059/call, status unknown (last checked 2026-09-15).

Retrieves historical daily weather observations for any location worldwide, covering dates back to 1940, via a pay-per-call x402 USDC endpoint.

## Facts

- Endpoint: GET https://the-stall.intuitek.ai/cap/weather-history
- Price: $0.059/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weather-history-api-the-stall-x402-78edf083
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-pdBhOQNKU7do-JHf858y

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 weather-history-api-the-stall-x402-78edf083
```

Example prompt: Can you pull the daily high and low temperatures plus total precipitation for Austin, TX from January 1, 2023 to March 31, 2023, in imperial units?

## When to prefer this

Use this endpoint when you need historical daily weather data for any global location going back as far as 1940, with no API key setup required and pay-per-call USDC pricing. Ideal for agents that need on-demand climate lookups without subscription commitments.

## Known failure modes

- Missing required 'location' parameter returns a 400 validation error
- Missing 'start_date' parameter returns a 400 validation error
- Date before 1940-01-01 may return empty or error response
- end_date more recent than ~5 days before today may be rejected or return incomplete data
- Invalid location string that cannot be geocoded returns an error
- Unsupported variable name in 'vars' parameter returns a validation error
- Payment failure or insufficient USDC balance returns HTTP 402

## How this service works

Historical daily weather (temperature, precipitation, wind, sunshine) for any location from 1940 to ~5 days ago. Uses ERA5 reanalysis data. Accepts city name or lat,lng. Returns per-day values plus period summary stats. Useful for seasonal analysis, anomaly detection, and climate-context enrichment.

## Output

Returns a structured JSON object with daily historical weather observations for the specified location and date range, including requested variables such as max/min/mean temperature, precipitation sum, wind speed, sunshine duration, and more — each as a time-series array indexed by date.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "vars": "temperature_2m_max,temperature_2m_min,precipitation_sum",
   "units": "imperial",
   "end_date": "2023-03-31",
   "location": "Austin, TX",
   "start_date": "2023-01-01"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weather-history-api-the-stall-x402-78edf083/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from the-stall.intuitek.ai](https://www.zero.xyz/host/the-stall.intuitek.ai/llms.txt)
