# Historical Daily Weather by Location and Date Range

> Historical Daily Weather by Location and Date Range 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 historical daily weather data (high/low temp, precipitation, wind, conditions) for any global location and date range up to one year, sourced from the Open-Meteo archive.

## Facts

- Endpoint: GET https://agent402.tools/api/weather-history
- 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/historical-daily-weather-by-location-and-date-range-299217c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xEvVytgcmHkbTlPJn56jH

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 historical-daily-weather-by-location-and-date-range-299217c8
```

Example prompt: What was the daily high and low temperature, precipitation, and wind in London (lat 51.51, lon -0.13) from June 1 to June 7, 2025? Show results in Celsius.

## When to prefer this

Use this endpoint when you need historical daily weather data for any global location going back as far as 1940, especially when no API key is available or desired. Prefer this over real-time or forecast weather endpoints when the date range is entirely in the past (more than 5 days ago). Ideal for climatological analysis, trip retrospectives, insurance or research use cases, or any scenario requiring structured day-by-day weather history at a specific coordinate.

## Known failure modes

- Date range exceeds one year — API returns an error
- Dates are within the last 5 days or in the future — data not available in archive
- Invalid latitude/longitude values outside -90/90 or -180/180 range
- Malformed date format (not YYYY-MM-DD) causes a bad request error
- Network timeout or service unavailability returns a 5xx error
- Payment not processed (x402 payment failure) results in 402 response

## How this service works

Historical daily weather for any location and date range (up to 1 year): high/low temp, precipitation, wind, conditions. Open-Meteo archive, no key, global. Data from 1940 to 5 days ago. ?lat=51.51&lon=-0.13&start=2025-06-01&end=2025-06-07.

## Output

A day-by-day array of historical weather metrics for the specified location and date range, including daily high and low temperatures, precipitation totals, wind speed, and general weather conditions, drawn from the Open-Meteo archive covering data from 1940 to five days ago.

## 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",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "End date, YYYY-MM-DD (max 1 year from start)"
      },
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "start": {
       "type": "string",
       "description": "Start date, YYYY-MM-DD"
      },
      "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",
      "days",
      "source"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "days": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "unit": {
          "type": "string"
         },
         "tempMax": {
          "type": "number"
         },
         "tempMin": {
          "type": "number"
         },
         "windMax": {
          "type": "number"
         },
         "windUnit": {
          "type": "string"
         },
         "condition": {
          "type": "string"
         },
         "precipSum": {
          "type": "number"
         },
         "weatherCode": {
          "type": "integer"
         }
        }
       }
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 51.5074,
  "lon": -0.1278,
  "days": [
   {
    "date": "2025-06-01",
    "unit": "°C",
    "tempMax": 19.8,
    "tempMin": 12.1,
    "windMax": 18.4,
    "windUnit": "km/h",
    "condition": "Slight rain",
    "precipSum": 3.2,
    "weatherCode": 61
   }
  ],
  "source": "api.open-meteo.com (CC BY 4.0)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/historical-daily-weather-by-location-and-date-range-299217c8/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)
