Kadastrs API

Connect LivingRoom / other services

Versioned JSON API for first-party apps (modern-real-estate-quest). Open VARIS / VZD data only — no owner names.

Endpoints

Auth

Optional. If CADASTRE_API_KEYS is set, send X-Api-Key or Authorization: Bearer. CORS is open for localhost and livingroom.lv; add more with CADASTRE_CORS_ORIGINS.

LivingRoom example

const base = import.meta.env.VITE_CADASTRE_API_URL;
const key = import.meta.env.VITE_CADASTRE_API_KEY;
const res = await fetch(
  `${base}/api/v1/lookup?q=${encodeURIComponent(address)}`,
  { headers: key ? { "X-Api-Key": key } : {} },
);
const place = await res.json();
// place.cadastre.code, place.address.lat, place.address.lon

← Back to map