{"uid":"cap_ycHuASmKlDsgc4QX1K8IO","slug":"tbs-weather-climate-api-historical-daily-weather-2812a743","name":"TBS Weather & Climate API – Historical Daily Weather","description":"Historical daily weather (archive): temperature min/max, precipitation, conditions for a past date range. City or lat/lon. start/end optional — defaults to last 7 complete UTC days.","url":"https://x402.tbs-digital.com/weather/historical?utm_source=zero.xyz","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","properties":{"end":{"type":"string","description":"End date YYYY-MM-DD (optional, default: yesterday)"},"lat":{"type":"number","description":"Latitude -90..90 (alternative to city)"},"lon":{"type":"number","description":"Longitude -180..180 (alternative to city)"},"city":{"type":"string","description":"City name (alternative to lat/lon)"},"start":{"type":"string","description":"Start date YYYY-MM-DD (optional, default: 7 days ago)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"daily":{"type":"array"},"payer":{"type":"object","properties":{"address":{"type":"string","nullable":true},"network":{"type":"string"}}},"range":{"type":"object","properties":{"end":{"type":"string"},"start":{"type":"string"}}},"source":{"type":"string"},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"name":{"type":"string"},"country":{"type":"string"}}},"timezone":{"type":"string"},"request_id":{"type":"string"},"generated_at":{"type":"string"},"utc_offset_seconds":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"daily":[{"date":"2026-06-01","temp_max_c":24.1,"temp_min_c":12.4,"precip_sum_mm":0.2,"condition_code":"1"}],"payer":{"address":"0x0000000000000000000000000000000000000000","network":"base"},"range":{"end":"2026-06-07","start":"2026-06-01"},"source":"open-meteo","location":{"lat":48.85,"lon":2.35,"name":"Paris","country":"FR"},"timezone":"Europe/Paris","request_id":"0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55","generated_at":"2026-08-09T12:00:00.000Z","utc_offset_seconds":7200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_4dcvJFfh2xPK94Q_U-MBW","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 historical daily weather data (temperature min/max, precipitation, conditions) for a specified date range and location (city name or lat/lon coordinates).","exampleAgentPrompt":"Can you pull up the historical daily weather for London from January 5th to January 12th, 2025 — I need the temperature highs and lows and precipitation for each day?","exampleUseCases":[{"title":"Agricultural frost risk review","prompt":"I need to check the daily temperature minimums and precipitation for the San Joaquin Valley (lat 36.7, lon -119.7) from March 1st to March 15th, 2025 — I want to know if there were any frost events during that period."},{"title":"Travel retrospective weather check","prompt":"What was the weather like in Tokyo from April 20th to April 27th, 2025? I want to see the daily highs, lows, and whether it rained each day."},{"title":"Insurance claim weather verification","prompt":"Can you get the historical daily weather data for Miami from August 10th to August 17th, 2025, including precipitation and temperature ranges? I need to verify conditions during that window."}],"resultDescription":"Returns a structured JSON object with a daily array of weather records (temperature min/max, precipitation, conditions) for each date in the requested range, plus location metadata (name, country, lat/lon), timezone info, UTC offset, the data source, and a request ID. Defaults to the last 7 complete UTC days if no date range is specified.","failureModes":["Invalid city name returns location resolution error","Lat/lon out of valid range (-90..90, -180..180) returns validation error","Future dates or unavailable archive dates may return empty or error","Malformed date format (not YYYY-MM-DD) causes bad request","Payment failure via x402 protocol returns 402 status","Very large date ranges may time out or return partial data"],"whenToPreferThis":"Choose this endpoint when you need historical (past) daily weather data — temperature ranges and precipitation — for a specific date range and location. Prefer it over current-weather endpoints when the query involves past dates rather than present or future conditions. It is ideal for retrospective analysis, verification tasks, climate research, or enriching datasets with past weather context. Use city name for convenience or lat/lon for precision.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:45:30.451Z","isFirstParty":false,"canonicalSlug":"tbs-weather-climate-api-historical-daily-weather-2812a743"}