# 1188.lv Scraper · Latvian Company Leads with Emails & Phones (`corent1robert/latvia-1188-company-leads`) Actor

Turn a business category into a list of Latvian companies from the 1188.lv directory: email, phone, website, address, GPS, registration number, legal form, opening hours. Filter by city. No login. No API key.

- **URL**: https://apify.com/corent1robert/latvia-1188-company-leads.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (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 $3.00 / 1,000 company with emails

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 1188.lv Scraper · Latvian Company Leads with Emails & Phones

Pick a business category such as **Lawyers**, **Accounting services** or **Beauty salon** (English or Latvian names both work), add a city if you want, and get a clean list of Latvian companies from the 1188.lv business directory: email, phone, website, address, GPS, registration number, legal form and opening hours. One row per company, ready for your CRM.

**No login. No API key. Just pick a category and press Start.**

### Who is this for?

| Persona | Typical goal | Suggested setup |
|---|---|---|
| B2B sales team / SDR | Build a prospect list in Riga or another Latvian city | Category + city, *Only companies with an email* on |
| Lead-generation agency | Deliver Baltic lead lists to clients | Several categories, cap 500+ |
| SaaS company entering the Baltics | Size a vertical (clinics, salons, accountants) | Category, no city |
| Local services marketplace | Recruit providers by trade and city | Category + city |
| Market researcher | Count and map companies in a niche | Category, export latitude / longitude |

**What you get by default:** every row has the company name, address, city, postcode, GPS coordinates, phone and the 1188.lv categories. Companies that keep an active 1188.lv profile (the ones listed first in each category) usually also show an email, a website, a description and opening hours: 90% of the first 20 lawyers had an email in our test. Registered companies also get their registration number, legal form, register status and registration date from the Lursoft box.

### Quick start

1. Type a category, for example `Lawyers`.
2. Optionally type a city, for example `Rīga` (accents optional).
3. Press **Start**. Companies appear in the **Overview** tab within seconds.

Browse all category names at [1188.lv/en/catalog](https://www.1188.lv/en/catalog). A partial name matches every category that contains it (for example `car` matches car rental, car wash, car parts...).

### Ready-made examples

- `{"categories": ["Lawyers"], "city": "Rīga", "onlyWithEmail": true}`
- `{"categories": ["Accounting services"], "maxResults": 300}`
- `{"categories": ["Beauty salon", "Hairdresser shop"], "onlyWithEmail": true}`
- `{"categories": ["Construction, repair work"], "city": "Rīga"}`
- `{"categories": ["Electrical installation", "Emergency service, plumber"]}`

### What data does it extract?

| Field | Description |
|---|---|
| category | The category you searched |
| companyName | Name shown on 1188.lv |
| registrationNumber, legalName, legalForm | From the Lursoft box (registered companies) |
| registryStatus, register, registrationDate, legalAddress | Register data |
| email, otherEmails | Emails shown on the company page |
| phone, otherPhones | Phone numbers |
| website | Company website (tracking parameters removed) |
| address, street, city, postalCode, latitude, longitude | Location |
| categories | All 1188.lv categories of the company |
| about | Short company description |
| openingHours | For example `Mon 09:00-18:00; ...; Sun closed` |
| logoUrl, listingUrl, scrapedAt | Logo, source page and extraction time |

### Fill rates

| Test (23 Nov 2026) | Email | Phone | Website | Registration no. | Opening hours |
|---|---|---|---|---|---|
| Lawyers, all Latvia (first 20) | 90% | 100% | 60% | 30% | 90% |
| Construction, Daugavpils (20) | 0% | 100% | 0% | 95% | 0% |

Sworn advocates working on their own have no company registration number, which explains the lower rate for lawyers. Basic free listings (lower in each category) usually only show a phone number.

### Limitations

- 1188.lv only lists a limited number of pages per category. Add a city to reach companies further down the list.
- Emails, websites and opening hours are only those shown on 1188.lv; basic listings often have a phone only. Use *Only companies with an email* to export (and pay for) contactable companies only.
- The same company can appear in several categories; rows are de-duplicated by registration number within a run.

### Input

| Field | Type | Description |
|---|---|---|
| categories | array | Category names (English or Latvian) or 1188.lv category URLs |
| city | string | Optional city, for example Rīga, Daugavpils, Liepāja |
| onlyWithEmail | boolean | Skip companies without an email (default false) |
| maxResults | integer | Maximum companies, 0 = no cap (default 50) |

API-only: `verboseLogs` (boolean) prints extra diagnostics, `proxyConfiguration` overrides the default Apify Proxy.

```json
{
  "categories": ["Lawyers"],
  "city": "Rīga",
  "onlyWithEmail": true,
  "maxResults": 200
}
```

### How it works

The Actor reads the public category pages of 1188.lv (20 companies per page), then opens each company page and reads its structured data. It keeps a small number of parallel requests, retries politely and exports companies as soon as they are ready.

### Output sample

```json
{
  "category": "Lawyers (Advokāti)",
  "companyName": "\"ATLASE\" SIA, advokāti",
  "registrationNumber": "40003218792",
  "legalForm": "Sabiedrība ar ierobežotu atbildību",
  "registryStatus": "Reģistrēts",
  "registrationDate": "1994-09-29",
  "email": "info@…",
  "phone": "2948 xx xx",
  "website": "http://www.atlase.eu",
  "address": "Ģertrūdes iela 27 - 3, Rīga, LV-1010",
  "city": "Rīga",
  "postalCode": "LV-1010",
  "latitude": 56.97208023,
  "longitude": 24.56575394,
  "categories": ["Advokāti", "Juridiskie pakalpojumi", "Nekustamie īpašumi", "Parādu piedziņa"],
  "openingHours": "Mon 09:00-20:00; Tue 09:00-20:00; Wed 09:00-20:00; Thu 09:00-20:00; Fri 09:00-20:00; Sat closed; Sun closed",
  "listingUrl": "https://www.1188.lv/katalogs/advokati-10/atlase-sia-advokati-886719"
}
```

### How much does it cost to scrape 1188.lv?

Pay per result. You only pay for companies that are exported.

| Event | Price |
|---|---|
| Actor start (once per run) | $0.005 |
| Company with email | $0.003 |
| Company without email | $0.001 |

| Scenario | Companies | Approx. cost |
|---|---|---|
| Test on the free plan (capped at 20) | 20 | about $0.06 |
| One category, email only | 300 | about $0.91 |
| Several categories, all companies (about half with email) | 2,000 | about $4.01 |

The free plan exports up to 20 companies per run so you can check the data first; paid plans have no cap.

### Is it legal to scrape 1188.lv?

This Actor only collects business information that 1188.lv shows publicly without logging in. It does not collect private user data. Some fields, such as the email or phone of a sole trader, can be personal data under the GDPR: you are responsible for having a legitimate reason to process them, for respecting opt-outs and for complying with 1188.lv's terms of use. If you are unsure, consult a lawyer. See also Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

### Also available

- [Allabolag.se · Swedish Company Leads](https://apify.com/corent1robert/allabolag-sweden-company-leads)
- [FINN Eiendom · Norway Property Listings with Broker Contacts](https://apify.com/corent1robert/finn-eiendom-broker-listings)

### Local development

```bash
npm install
npm test
apify run --input-file .actor/INPUT.json
```

### Contact

Questions, a missing field or a custom export? Email **corentin@outreacher.fr**.

# Changelog

This Actor's version history is a separate document: https://apify.com/corent1robert/latvia-1188-company-leads/changelog.md

# Actor input Schema

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

Category names in English or Latvian (for example Lawyers, Accounting services, Advokāti) or 1188.lv category URLs. A partial name matches every category that contains it.

## `city` (type: `string`):

Optional. Keep only companies whose address contains this city, for example Rīga, Daugavpils or Liepāja (accents optional).

## `onlyWithEmail` (type: `boolean`):

Skip companies that show no email on their 1188.lv page. You only pay for exported companies.

## `maxResults` (type: `integer`):

0 = no cap. The free plan exports up to 20 companies per run.

## Actor input object example

```json
{
  "categories": [
    "Lawyers"
  ],
  "onlyWithEmail": false,
  "maxResults": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `outreach` (type: `string`):

No description

## `runLog` (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 = {
    "categories": [
        "Lawyers"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/latvia-1188-company-leads").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 = {
    "categories": ["Lawyers"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/latvia-1188-company-leads").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 '{
  "categories": [
    "Lawyers"
  ],
  "maxResults": 50
}' |
apify call corent1robert/latvia-1188-company-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/latvia-1188-company-leads"
        }
    }
}
```

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/O9qfgcKk3o4aNxQd6/builds/uwR9p4htMZtKZghvl/openapi.json
