{"uid":"cap_xEvVytgcmHkbTlPJn56jH","slug":"historical-daily-weather-by-location-and-date-range-299217c8","name":"Historical Daily Weather by Location and Date Range","description":"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.","url":"https://agent402.tools/api/weather-history","method":"GET","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":{"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)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IfH75Y8SGny5eeux2IU59","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:03:21.465Z","isFirstParty":false}