{"uid":"cap_Jp0FxxPZ2C30lmmSQfJkj","slug":"weatherxm-agent-api-historical-weather-data-91fb53b3","name":"WeatherXM Agent API – Historical Weather Data","description":"Historical weather data (up to 4 days)","url":"https://agent.weatherxm.com/api/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","date"],"properties":{"tz":{"type":"string","description":"IANA timezone (e.g., Europe/Athens) or \"auto\""},"lat":{"type":"number","description":"Latitude (-90 to 90)"},"lon":{"type":"number","description":"Longitude (-180 to 180)"},"date":{"type":"string","description":"Date in YYYY-MM-DD format (up to 4 days ago)"},"units":{"enum":["metric","imperial"],"type":"string","description":"Unit system: \"metric\" (default) or \"imperial\""}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","description":"Historical weather data for the specified location"}}}}},"responseSchema":{"type":"json","example":{"date":"2025-01-01","units":"metric","hourly":[{"time":"2025-01-01T00:00:00+02:00","humidity":70,"windSpeed":8.2,"temperature":12.5,"precipitation":0}],"location":{"lat":37.98,"lon":23.73},"timezone":"Europe/Athens"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hi17QjWA33kdo24ikZyF-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns hourly historical weather data (temperature, humidity, wind speed, precipitation) for a specific location and date, up to 4 days in the past","exampleAgentPrompt":"What was the hourly weather like at latitude 37.98, longitude 23.73 on January 1st, 2025 — I need temperature, humidity, wind speed, and precipitation in metric units, with the Europe/Athens timezone.","exampleUseCases":null,"resultDescription":"A JSON object containing hourly weather records for the requested date and location, including temperature, humidity, wind speed, and precipitation values, plus the resolved location coordinates and timezone.","failureModes":["Date older than 4 days returns an error or empty data","Invalid latitude/longitude range causes a 400 bad request","Malformed date format (not YYYY-MM-DD) causes a validation error","No weather station coverage near the requested coordinates may return sparse or null data","Missing required query params (lat, lon, date) causes a 400 error"],"whenToPreferThis":"Use this endpoint when you need granular hourly weather history for a specific geographic coordinate and date within the past 4 days. Prefer this over forecast endpoints when the date is in the past, and over current-weather endpoints when you need a full day's hourly breakdown rather than a snapshot.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:33:48.296Z","isFirstParty":false}