# Latvia Building Energy Certificates: Energy Class by Address (`buildingsignal/latvia-building-energy-certificates`) Actor

Every building energy certificate issued in Latvia: address, cadastral number, building type, year built, area, energy class (A+ to G), heating, hot water and primary energy per m2, nearly zero energy flag, expert, purpose and dates. Filter by class, type, city.

- **URL**: https://apify.com/buildingsignal/latvia-building-energy-certificates.md
- **Developed by:** [BuildingSignal](https://apify.com/buildingsignal) (community)
- **Categories:** Real estate, Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Latvia Building Energy Certificates: Energy Class by Address

Every building energy certificate issued in Latvia, from the national Construction Information System (BIS): about 61,000 certificates for apartment buildings, houses, offices and public buildings, updated every day. Each one comes with the address and cadastral number, the energy class and the energy use per square meter for heating, hot water, ventilation, lighting and cooling.

### What you get

| Field | Example |
|---|---|
| `certificateNumber`, `issuedDate`, `validUntil` | BIS-ĒED-2-2026-6352, 2026-11-23, 2029-11-23 |
| `address`, `city`, `cadastralIds` | Rīga, Vītolu iela 2A, Rīga, 01000170136001 |
| `buildingType`, `yearBuilt`, `floorsAbove` | apartment building, 2026, 7 |
| `totalAreaM2`, `referenceAreaM2` | 3587.2, 3213.3 |
| `energyClass` | A |
| `heatingKwhM2`, `hotWaterKwhM2`, `primaryTotalKwhM2` | 39.36, 29.62, energy per m2 a year |
| `nearlyZeroEnergy` | meets nearly zero energy requirements |
| `independentExpert`, `purpose` | expert name, voluntary, sale, new build |

### Filters

- Status: valid, expired, cancelled.
- Energy class, building type and address.
- Purpose: new build, sale, rent, voluntary.
- Issued from a date, minimum area.

Results come newest first.

### Use cases

- Insulation, heating, window and solar firms finding low-class buildings to renovate.
- Apartment building managers and ESCOs benchmarking energy use.
- Real estate agents and valuers checking a building's class.
- Analysts tracking energy performance of the Latvian building stock.

### Pricing

You pay per certificate delivered. A run with no match returns one explanation row and is not charged for results. Free Apify plans get up to 10 results per run.

### Example input

```json
{
    "energyClasses": ["E", "F"],
    "buildingTypes": ["Daudzdzīvokļu"],
    "addressContains": ["Rīga"],
    "maxRecords": 200
}
```

# Actor input Schema

## `status` (type: `string`):

Certificate status.

## `energyClasses` (type: `array`):

For example A+, A, B for efficient buildings, or E, F for renovation leads.

## `buildingTypes` (type: `array`):

Part of the building type in Latvian, for example Daudzdzīvokļu (apartment buildings), viendzīvokļa (single family), biroju (offices).

## `addressContains` (type: `array`):

City or street, for example Rīga, Jūrmala, Liepāja.

## `purposes` (type: `array`):

Why the certificate was made, for example jaunbūve (new build), pārdošana (sale), īre (rent), brīvprātīgi (voluntary).

## `issuedFrom` (type: `string`):

YYYY-MM-DD.

## `minArea` (type: `integer`):

Only buildings at least this large.

## `maxRecords` (type: `integer`):

Free Apify plans are limited to 10 per run.

## Actor input object example

```json
{
  "status": "valid",
  "maxRecords": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "status": "valid",
    "maxRecords": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("buildingsignal/latvia-building-energy-certificates").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "status": "valid",
    "maxRecords": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("buildingsignal/latvia-building-energy-certificates").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "status": "valid",
  "maxRecords": 50
}' |
apify call buildingsignal/latvia-building-energy-certificates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,buildingsignal/latvia-building-energy-certificates"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4kh0YQQpjYOUJAOhe/builds/FB1OAgseDxkeeP4RI/openapi.json
