# ZL.LV Scraper - Latvia Business Directory & Leads (`normdata/zl-lv-scraper`) Actor

Scrape ZL.LV (zl.lv), the Latvian business directory: companies by category, keyword, city, municipality or postal code with phone, website, address and GPS. Add registration and VAT numbers, NACE, legal status, founding date, e-mails, social links, opening hours and brands.

- **URL**: https://apify.com/normdata/zl-lv-scraper.md
- **Developed by:** [Norm Data](https://apify.com/normdata) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 companies

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

![Norm Data](https://raw.githubusercontent.com/FabriAV/normdata/refs/heads/main/assets/banner_norm2.png)

## 📒 ZL.LV Scraper - Latvia Business Directory & Leads

Extract business leads from **ZL.LV (zl.lv)**, the Latvian business directory (Zelta Lapas). Search any **city, municipality (novads), postal code or Riga district**, pick from the site's **570 categories**, type keywords, or look companies up by **registration number or phone**. Every company comes with its **phone (+371 format)**, address split into street, city, municipality and postal code, **GPS position** and a short description. Turn on **Details** to add the **registration and VAT numbers, founding date, legal address, legal status, NACE code**, number of owners and officers, last annual report, **e-mails**, every phone, website, Facebook, Instagram, LinkedIn and other links, opening hours, industries, keywords, brands and related companies. It reads **all of Latvia** (about 68,000 companies), splits searches past the site's 10,000 cap by itself, and can run on a schedule to send you **only new companies**.

> 👉 **Try it now:** press **Start**. The ready-made input gives you 10 companies in a few seconds.<br>
> 💰 **$0.013 per company** on the Free plan (10 companies per run), from $0.012 on paid plans. [See pricing](#-pricing)

### ✨ Why this scraper?

> - **Register data in one row**<br>
>   Registration number, VAT number, founding date, legal address, legal status, NACE code and activity, owners, officers and last annual report, next to the phone and e-mail.
>
> - **Every company, not the first 10,000**<br>
>   Automatic splitting and re-reading of the site's shuffled lists.
>
> - **Fast**<br>
>   About 1,000 companies in 15 seconds without details, with no proxy needed.
>
> - **Clean, typed data**<br>
>   Phones in +371 format, postal codes as LV-1234, municipalities as "Ogres novads", dates as YYYY-MM-DD, opening hours as day, opens and closes (24h), tracking tags removed from every link.
>
> - **Promoted listings marked**<br>
>   `isPromoted` tells you which companies pay to be shown first.
>
> - **Any place in Latvia**<br>
>   Cities and towns (Rīga, Liepāja, Valmiera...), the 36 municipalities (novadi), postal codes (LV-1050) and Riga districts (Purvciems, Centrs...), with or without accents. Leave everything empty for all of Latvia.
>
> - **Apify platform**<br>
>   Schedule runs, get only new companies, export to Excel or CSV, use the API, or connect Google Sheets, Zapier and Make.

### 🚀 How to scrape ZL.LV

1. Create a free Apify account.
2. Pick the filters you need, or keep the ready-made input.
3. Click **Start**.
4. Download the companies as Excel, CSV or JSON from the **Output** tab.

### 💰 Pricing

#### How much does it cost to scrape ZL.LV?

You pay a one-time **$0.003** per run, plus a price for each company saved (and for each add-on you turn on):

| Charged for | Free | Bronze | Silver | Gold+ |
| --- | --- | --- | --- | --- |
| **Company**: One company saved to the dataset. | 0.013 | 0.012 | 0.011 | 0.01 |
| **Details**: One company page read for register data, e-mails, social links, hours and more. | 0.006 | 0.0055 | 0.005 | 0.0045 |

Example: 1,000 companies cost about **$12** on Bronze. No proxy or compute costs on top.

### 📦 What data you get

| Field | Description |
| --- | --- |
| `logoUrl` | Logo. |
| `id` | ZL.LV id (the company page address). |
| `name` | Company name. |
| `registrationNumber`, `vatNumber` | *(Details)* Registration number and VAT number. |
| `phone` | Main phone (+371 format) and website. |
| `email` | *(Details)* Main e-mail. |
| `address`, `street`, `city`, `municipality`, `postalCode` | Full address, street, city, municipality (novads) and postal code. |
| `latitude`, `longitude` | GPS position. |
| `description` | Short description shown in the list (products and services, in Latvian). |
| `about` | *(Details)* The company's own longer text. |
| `businessType` | *(Details)* Business type (schema.org, like AutoRepair or Dentist). |
| `naceCode`, `naceActivity` | *(Details)* NACE code and activity (in Latvian). |
| `legalStatus`, `legalStatusNote` | *(Details)* Legal status and its note (in Latvian). |
| `legalAddress` | *(Details)* Registered (legal) address. |
| `owners`, `officers` | *(Details)* Number of owners and of officers. |
| `lastAnnualReport` | *(Details)* Year of the last annual report filed. |
| `lastChange` | *(Details)* Last change in the register (in Latvian) and its date, when recent. |
| `rating`, `reviewsCount`, `photosCount` | *(Details)* Rating out of 5 (when rated), number of reviews and of photos. |
| `searchQuery` | The search that found it. |
| `isPromoted` | Whether it is a paid, promoted listing. |
| `url`, `website` | Its ZL.LV page. |
| `facebook`, `instagram`, `linkedin`, `youtube`, `twitter`, `tiktok` | *(Details)* Facebook, Instagram, LinkedIn, YouTube, X (Twitter) and TikTok pages. |
| `emails`, `phones` | *(Details)* Every e-mail and phone it lists. |
| `openingHours` | *(Details)* Opening hours: day (Monday...), opens and closes, one entry per time range. |
| `industries` | *(Details)* Industries (categories) it is listed in, in Latvian. |
| `keywords` | *(Details)* Keywords the company chose. |
| `trademarks` | *(Details)* Brands and trademarks it works with. |
| `relatedCompanies` | *(Details)* Related companies: name, address, phone and ZL.LV page. |
| `foundedAt`, `lastChangeAt` | *(Details)* Founding date. |
| `scrapedAt` | When this row was saved. |
| `error` | Only present when a row failed. The fields that loaded are still there. |

Fields marked *Details* only appear when that add-on is on.

#### Example row (trimmed)

```json
{
  "logoUrl": "https://img.zl.lv/sr/logos/w/h/rockmole-sia_whatsapp-image-2023-03-15-at-18_00_31_jpeg_100x80.jpg",
  "id": "rockmole-sia",
  "name": "Rockmole, SIA",
  "registrationNumber": "40203418123",
  "vatNumber": "LV40203418123",
  "phone": "+37125776659",
  "email": "rockmoleprojekti@gmail.com",
  "address": "Stacijas 21 k-2 - 3, Jūrmala, LV-2008",
  "street": "Stacijas 21 k-2 - 3",
  "city": "Jūrmala",
  "postalCode": "LV-2008",
  "latitude": 56.958007,
  "longitude": 23.689441,
  "description": "ūdensapgādes un kanalizācijas sistēmas, pieslēgšana centrālajiem tīkliem,lietusūdens novadīšanas sistēmas, meliorācijas sistēmas, bioloģiskās attīrīšanas iekārtas, septiķi, ...",
  "about": "SIA \"Rockmole\" ir uzņēmums, kas specializējas iekšējo un ārējo ūdensapgādes un kanalizācijas sistēmu izbūvē, kā arī bioloģisko attīrīšanas iekārtu uzstādīšanā. Mēs piedāvājam arī ...",
  "businessType": "HomeAndConstructionBusiness",
  "naceCode": "4221",
  "naceActivity": "Komunālo ūdenssaimniecības objektu būvniecība",
  "legalStatus": "Teicams juridiskais statuss",
  "legalStatusNote": "Uzņēmumam nav konstatēti juridiski apgrūtinājumi darbībai.",
  "legalAddress": "Stacijas iela 21 k-2 – 3, Jūrmala, LV-2008",
  "owners": 2,
  "officers": 2,
  "lastAnnualReport": 2025,
  "rating": 5,
  "reviewsCount": 2,
  "photosCount": 14,
  "searchQuery": "Jūrmala",
  "isPromoted": false,
  "url": "https://www.zl.lv/lv/uznemums/rockmole-sia/",
  "website": "https://www.rockmole.lv/",
  "facebook": "https://www.facebook.com/profile.php?id=100086243889973",
  "instagram": "https://www.instagram.com/siarockmole/",
  "tiktok": "https://www.tiktok.com/@siarockmole",
  "emails": ["rockmoleprojekti@gmail.com"],
  "phones": ["+37125776659", "+37125776639"],
  "openingHours": [{ "day": "Monday", "opens": "08:00", "closes": "18:00" }],
  "industries": ["Celtniecības un remonta darbi", "Ūdensapgāde un kanalizācija"],
  "keywords": ["Lietusūdens novadīšanas sistēmas", "Bioloģiskās attīrīšanas iekārtas", "Ūdensapgādes un kanalizācijas sistēmas"],
  "foundedAt": "2022-08-05",
  "scrapedAt": "2026-11-04T03:35:55.419Z"
}
```

### ⚙️ Input

| Section | What it's for |
| --- | --- |
| **Maximum results** | Always first, caps the whole run. Empty means no limit. |
| **What to scrape** | Cities, municipalities, postal codes, riga districts, categories, keywords, street, company name, registration numbers and phones. |
| **Filters** | Only with a phone, only with a website and only with an e-mail. |
| **Add-ons** | Details. |
| **Monitoring** | Only new companies and monitor name. |
| **Links** | Links instead of the fields above. Filters are ignored with links. |

#### Input examples

**Every company in Liepāja with register data and e-mails:**

```json
{
  "cities": ["Liepāja"],
  "includeDetails": true
}
```

**Hairdressers in two municipalities:**

```json
{
  "categories": ["frizetavas"],
  "municipalities": ["Ogres", "Siguldas"]
}
```

**Accountants in Rīga with an e-mail:**

```json
{
  "categories": ["gramatvedibas-pakalpojumi"],
  "cities": ["Rīga"],
  "withEmail": true
}
```

**Look up companies by registration number:**

```json
{
  "registrationNumbers": ["45403002470", "42103080623"],
  "includeDetails": true
}
```

**New companies in a postal code every week (schedule this run):**

```json
{
  "postalCodes": ["LV-1050"],
  "onlyNew": true,
  "monitorName": "lv-1050"
}
```

### 🔗 Related scrapers

> - [BuscJá Scraper](https://apify.com/normdata/buscja-scraper): Brazil Business Leads (Telelistas).
> - [Infoisinfo Scraper](https://apify.com/normdata/infoisinfo-scraper): Business Leads in 17 Countries.
> - [Sección Amarilla Scraper](https://apify.com/normdata/seccionamarilla-scraper): Mexico Business Leads & Emails.
> - [Yellow Pages Hong Kong Scraper](https://apify.com/normdata/yp-hk-scraper): yp.com.hk Business Leads.

### ❓ FAQ and troubleshooting

#### Is there a ZL.LV API? Do I need an API key?

> ZL.LV has no public data API for this. This Actor works as a ZL.LV API alternative: it reads the public pages and gives you clean JSON, CSV or Excel, with no API key, no login and no code to maintain. You can also call it from your own code with the Apify API, or from an AI agent through MCP.

#### Why do I get only 10 companies?

> On the Apify free plan each run saves up to 10 results, so you can try it before paying. Any paid plan removes the limit.

#### Is there a limit per search?

> The site shows at most 10,000 companies per search. The scraper splits bigger searches by itself, so you get all of them.

#### Can I search all of Latvia?

> Yes. Leave every place field empty.

#### What is in the base price and what is in Details?

> The base row has the name, main phone, address (street, city, municipality, postal code), GPS, description, website when the list shows it and the promoted flag. Details adds the register data (registration and VAT numbers, founding date, legal address, legal status, NACE, owners, officers, annual report, last change), e-mails, every phone, social pages, about text, opening hours, industries, keywords, brands, related companies, rating and photo count.

#### Few or no results

> ZL.LV is in Latvian: try "frizieris" instead of "hairdresser", or pick a category from the list. The log shows how many companies each search has.

#### A category was skipped

> The log says when a name is not one of the site's categories. Type it under **Keywords** to search it as words.

#### Is this an official ZL.LV tool?

> No. It is independent and not affiliated with ZL.LV. It reads only data ZL.LV publishes on its public pages, at a moderate pace. Use the data in line with ZL.LV's terms and the laws that apply to you.

### 📧 Contact

Need a scraper for a different site, or found something wrong with this one? norm.data.scrapers@gmail.com

# Actor input Schema

## `maxItems` (type: `integer`):

Stop after this many companies in total. Leave empty for no limit. The Apify Free plan is always capped at 10.

## `cities` (type: `array`):

Cities, towns or villages, like Rīga, Liepāja or Valmiera (with or without accents). With categories or keywords, only companies in these cities are kept.

## `municipalities` (type: `array`):

Latvia's 36 municipalities (novadi). The 7 state cities (Rīga, Daugavpils, Jelgava, Jūrmala, Liepāja, Rēzekne, Ventspils) go in Cities.

## `postalCodes` (type: `array`):

Postal codes, like LV-1050 or 1050.

## `rigaDistricts` (type: `array`):

Riga neighbourhoods, like Centrs, Purvciems or Āgenskalns.

## `categories` (type: `array`):

ZL.LV categories (570, in Latvian; type to search). Searched in every city you list, or in all of Latvia.

## `keywords` (type: `array`):

Search words, like frizieris, autoserviss or a brand. Searched like the search box of the site, in every city you list.

## `street` (type: `string`):

Only companies on this street, like Brīvības iela. Not used with categories or keywords.

## `companyName` (type: `string`):

Only companies whose name contains this. Not used with categories or keywords.

## `registrationNumbers` (type: `array`):

Look companies up by registration number (11 digits, like 40103579546). Not used with categories or keywords.

## `phones` (type: `array`):

Look companies up by phone (8 digits, like 29210756). Not used with categories or keywords.

## `withPhone` (type: `boolean`):

Skip companies that show no phone number.

## `withWebsite` (type: `boolean`):

Skip companies that show no website. Most results lists hide it, so this turns on Details.

## `withEmail` (type: `boolean`):

Skip companies that show no e-mail. E-mails are on the company page, so this turns on Details.

## `includeDetails` (type: `boolean`):

From the company's own page: registration and VAT numbers, founding date, legal address, legal status, NACE code and activity, number of owners and officers, last annual report, last change, e-mails, every phone, Facebook, Instagram, LinkedIn and other links, about text, opening hours, industries, keywords, brands, related companies, rating and photo count. One more request per company.

## `onlyNew` (type: `boolean`):

Skip companies saved by earlier runs with the same monitor name.

## `monitorName` (type: `string`):

Runs with the same name share their history. Use a different name for each schedule.

## `startUrls` (type: `array`):

ZL.LV category pages (https://www.zl.lv/lv/kategorija/frizetavas/), search pages (https://www.zl.lv/lv/kategorija/?QProdukts=logi), detailed search results (https://detalizetas-meklesanas-rezultats.zl.lv/?QPilseta=Valmiera) or company pages (https://www.zl.lv/lv/uznemums/lade-sia-115720/). Filters are ignored with links.

## Actor input object example

```json
{
  "maxItems": 10,
  "cities": [
    "Liepāja"
  ],
  "includeDetails": true
}
```

# 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 = {
    "maxItems": 10,
    "cities": [
        "Liepāja"
    ],
    "includeDetails": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("normdata/zl-lv-scraper").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 = {
    "maxItems": 10,
    "cities": ["Liepāja"],
    "includeDetails": True,
}

# Run the Actor and wait for it to finish
run = client.actor("normdata/zl-lv-scraper").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 '{
  "maxItems": 10,
  "cities": [
    "Liepāja"
  ],
  "includeDetails": true
}' |
apify call normdata/zl-lv-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,normdata/zl-lv-scraper"
        }
    }
}
```

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/LF8wuSHQ2wldhp74k/builds/KMjPyJSeSfLVd24Sh/openapi.json
