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
- GET /api/v1
- GET /api/v1/search?q=Brīvības bulvāris 30, Rīga
- GET /api/v1/lookup?q=Meiju ceļš 36, Jelgava&photos=1
- GET /api/v1/lookup?kods=101062962
- GET /api/v1/reverse?lat=56.660757&lon=23.705891
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