# kand.ee ilm — Mäe-Pärdi weather API # Kand.ee weather — Mäe-Pärdi and Oosaare > Local weather measurements and history for Mäe-Pärdi, Estonia (58.64 N, 23.17 E), > plus sea-water temperature at Oosaare (Saaremaa). Read-only JSON, no key needed. > Local measurements are NOT weather forecasts. Always distinguish the two. ## Mida saab siit küsida / What you can answer - Praegune ilm Mäe-Pärdil (JSON): https://kand.ee/ilm/current - Praegune ilm lihttekstina (kõige lihtsam veebiagentidele): https://kand.ee/ilm/now.txt - Konkreetse päeva ilm: https://kand.ee/ilm/day?date=2026-07-17 - Rekordid (kõigi aegade / aasta): https://kand.ee/ilm/records?metric=air_temperature&scope=all_time - Kas täna on aasta/aja kuumim päev: https://kand.ee/ilm/compare?metric=air_temperature - Kas täna on selle sügise kõige külmem päev: https://kand.ee/ilm/compare?metric=air_temperature&period=season - Kas täna on selle nädala / kuu / aasta külmem kui varasemad päevad: https://kand.ee/ilm/compare?metric=air_temperature&period=week https://kand.ee/ilm/compare?metric=air_temperature&period=month https://kand.ee/ilm/compare?metric=air_temperature&period=year - Ajalugu: https://kand.ee/ilm/history?metric=air_temperature&start=2025-01-01&end=2025-12-31 - Prognoos (Open-Meteo, selgelt eristatud): https://kand.ee/ilm/forecast?days=7 ## Täna vs periood — ühe päringuga / Today vs a period — one request `/ilm/compare?metric=&period=` returns `period.rank` (1 = coldest day of the period) and `period.rank_of`, plus `period.extreme` with the coldest day's date and value. `is_extreme: true` means the requested day IS the period's coldest. You do not need to download history. `period=season` is the meteorological season: spring 03-01, summer 06-01, autumn 09-01, winter 12-01. Precipitation is ranked by wettest daily total. Example answer for "kas täna on selle sügise kõige külmem päev": fetch `/ilm/compare?metric=air_temperature&period=season`, then read `period.is_extreme`, `period.rank`, `period.rank_of`, `period.extreme.date`. ## Lühiijad / Short URLs (same JSON as /ilm/compare) A single URL with no query string is easiest for a custom GPT Action; every one accepts the optional `metric` and `date` parameters. - https://kand.ee/ilm/season (= `/ilm/compare?period=season`, this autumn) - https://kand.ee/ilm/autumn (alias of /ilm/season) - https://kand.ee/ilm/week (= `/ilm/compare?period=week`) - https://kand.ee/ilm/month (= `/ilm/compare?period=month`) - https://kand.ee/ilm/year (= `/ilm/compare?period=year`, the default) - https://kand.ee/ilm/now.txt (plain text, no JSON schema, cacheable for 60 s) - https://kand.ee/ilm?format=text (same plain text on the page URL that every agent already knows; needs no rewrite rule) ## Custom GPT Action / OpenAI Actions Import `https://kand.ee/ilm/openapi.json` as the Action schema. It is OpenAPI 3.0.3 on purpose: the ChatGPT editor has failed to import 3.1 documents with a bare "Internal Error". Every operation returns `application/json`, has a unique `operationId` (`getCurrent`, `getHistory`, `getRecords`, `compareDay`, `getForecast`, `getDay`), and needs no key. If the Action still errors, do not depend on it: `https://kand.ee/ilm/now.txt` returns the same current conditions as one short text page that any browsing tool can read. For "kas täna on selle sügise kõige külmem päev?" call `compareDay` with `period=season` and read `period.is_extreme`, or open `https://kand.ee/ilm/season`. Do not call the bare page `https://kand.ee/ilm` from an Action: it serves HTML unless `format=json` is set. ## Andmekate / Data coverage - `air_temperature`: 2012-11-09 → today (primary sensor `selja`) - `sea_water_temperature` (Oosaare): 2025-08-26 → today - other metrics (humidity, dew_point, feels_like, pressure, wind_speed, wind_gust, precipitation, solar_radiation, uv_index): 2024-11-30 → today; `precipitation` daily totals from 2026-01-08 - Everything is Europe/Tallinn local time. Times in `period_start` are local dates. ## Mõõdikud / Metrics - `air_temperature — local air temperature °C (Mäe-Pärdi)` - `relative_humidity — %` - `dew_point — °C` - `feels_like — °C` - `pressure — hPa` - `wind_speed — km/h` - `wind_gust — km/h` - `precipitation — mm, daily total (use 'total')` - `solar_radiation — W/m²` - `uv_index — unitless` - `sea_water_temperature — °C (Oosaare sea)` ## Endpoints All endpoints accept `GET` and `HEAD` and return JSON (UTF-8), unless noted. Unknown parameters values return HTTP 400 with `{"error": "..."}`. - `GET /ilm/current` — current conditions. No caching. - `GET /ilm/history?metric=&start=YYYY-MM-DD&end=YYYY-MM-DD&aggregation=day|hour|month` Defaults: metric=air_temperature, aggregation=day, start=1 Jan of end year, end=today. `hour` supports only air_temperature and sea_water_temperature, max 366 days. `day`/`month` max 3660 days. Too large → `{"error":"range_too_large"}`. Each point has `minimum`, `mean`, `maximum`, `total` (precipitation only), `samples`. For "how many hot days this summer" fetch the daily `maximum` values and count them yourself; there is no aggregate/COUNT parameter. - `GET /ilm/records?metric=&scope=all_time|year&year=YYYY` — all-time (coverage) or yearly daily extremes with `first_date`, `last_date`, `days_with_data`. - `GET /ilm/compare?metric=&date=YYYY-MM-DD&period=` — one day against the year and all-time. Returns `day`, `day_extremes[]` (each with `rank`, `rank_of`, `year_rank`, `year_rank_of`), `period` (`rank`, `rank_of`, `start`, `end`, `days_with_data`, `is_extreme`, `extreme`), `year` (`maximum`, `minimum`), `all_time` (`first_date`, `last_date`, `days_with_data`, `maximum`, `minimum`). `rank` is against the metric's full coverage (air_temperature since 2012-11-09), `year_rank` against the requested day's own calendar year; rank 1 = highest maximum / lowest minimum. For precipitation only totals are ranked (`minimum` is null). `period` (default `year`) ranks the day's daily minimum inside that window: rank 1 = coldest day of the window, `is_extreme` is true exactly then, and `period.extreme` names the coldest day. For precipitation the direction is `high` (wettest daily total). Parameter order never matters. To answer "kas täna on aasta kuumim päev": `day_extremes[0].year_rank == 1` (daily maximum). To answer "kas täna on kõigi aegade rekord": `day_extremes[0].rank == 1`, or compare `day_extremes[0].value` with `all_time.maximum.value` yourself and mention both dates. To answer "kas täna on selle sügise kõige külmem päev": `/ilm/compare?metric=air_temperature&period=season` → read `period.is_extreme`. - `GET /ilm/forecast?days=1..7` — Open-Meteo forecast for Mäe-Pärdi, `source: "Open-Meteo"`. - `GET /ilm/day?date=YYYY-MM-DD&metrics=air_temperature,sea_water_temperature` — daily summary. - `GET /ilm` — human HTML page; `GET /ilm?format=json` — compact current+forecast snapshot. - `GET /ilm/openapi.json` — OpenAPI 3.0.3 description, importable as a GPT Action. - `GET /ilm/server.json` — MCP server registration metadata. - `GET /ilm/sitemap.xml` — XML sitemap of the public pages above. ## Tõlgendusreeglid / Interpretation rules 1. **Erista kohalik mõõtmine Open-Meteo prognoosist** — distinguish the local measurement (kand.ee, station at Mäe-Pärdi) from the Open-Meteo forecast. Never present the forecast as an observation or the observation as a forecast. Name the source in the answer. 2. `rank == 1` (or `year_rank == 1`) means a record **within kand.ee's coverage only**; say "kand.ee andmetel" (according to kand.ee data), not "Eesti rekord". 3. Monthly aggregation returns `period_start` as the first day of the month. 4. Precipitation is a daily total (`total`); `min`/`mean`/`max` are null for it. 5. Missing values must not be replaced with the forecast. 6. Data is at one station only (Mäe-Pärdi, Eastern Saaremaa). It is not a national record. Nationwide Estonian records come from the Estonian Weather Service (ilmateenistus.ee) and are outside this API. ## MCP - Streamable HTTP MCP: `https://kand.ee/ilm` (POST; also accepts MCP GET with `Accept: text/event-stream`). Tools: `get_current_weather`, `get_weather_history`, `get_weather_records`, `get_weather_forecast`. - If your environment cannot call MCP tools, use the JSON endpoints above with a web fetch. - Contact: kand.ee. Owner-maintained, best effort availability.