Skip to main content
GET
/
properties
/
se
/
{externalId}
/
energy-declarations
Get Boverket energy declarations for a property
curl --request GET \
  --url https://lens-api.tic.io/properties/se/{externalId}/energy-declarations \
  --header 'x-api-key: <api-key>'
import requests

url = "https://lens-api.tic.io/properties/se/{externalId}/energy-declarations"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://lens-api.tic.io/properties/se/{externalId}/energy-declarations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/properties/se/{externalId}/energy-declarations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://lens-api.tic.io/properties/se/{externalId}/energy-declarations"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/properties/se/{externalId}/energy-declarations")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://lens-api.tic.io/properties/se/{externalId}/energy-declarations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "propertyExternalUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "kommun": "<string>",
  "fastighetsbeteckning": "<string>",
  "fromCache": true,
  "fetchedAtUtc": "2023-11-07T05:31:56Z",
  "declarations": [
    {
      "id": 123,
      "energiklass": "<string>",
      "primarenergital": "<string>",
      "energiprestanda": "<string>",
      "radonmatning": "<string>",
      "ventilationskontroll": "<string>",
      "byggnadsar": 123,
      "utford": "<string>",
      "giltighet": "<string>",
      "fastigheter": [
        {
          "kommun": "<string>",
          "fastighetsbeteckning": "<string>",
          "adresser": [
            {
              "adress": "<string>",
              "postnummer": "<string>",
              "postort": "<string>",
              "additionalData": {}
            }
          ],
          "additionalData": {}
        }
      ],
      "additionalData": {}
    }
  ]
}
Pro+ tier

Authorizations

x-api-key
string
header
required

Path Parameters

externalId
string<uuid>
required

Lantmäteriet fastighet UUID

Query Parameters

refresh
boolean
default:false

Bypass the local cache and re-fetch from Boverket

Response

Energy declarations for the property (empty list if Boverket holds none)

propertyExternalUUID
string<uuid>
kommun
null | string
fastighetsbeteckning
null | string
fromCache
boolean
fetchedAtUtc
null | string<date-time>
declarations
null | object[]