# 1188.lv Scraper - Latvian Business Directory (`studio-amba/1188-lv-scraper`) Actor

Scrape the 1188.lv business directory for Latvian companies. Get phone numbers, e-mail, website, address, coordinates, opening hours, rating, plus registration number, legal form, status and registration date from the Lursoft register.

- **URL**: https://apify.com/studio-amba/1188-lv-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Business, 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 $7.00 / 1,000 result scrapeds

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

## 1188.lv Scraper

Pull company data from 1188.lv, the Latvian business directory. The actor returns one row per company with phone numbers, e-mail, website, address, coordinates, opening hours, rating and, from the Lursoft register block on the page, the registration number, legal form, status and registration date.

1188.lv holds about 52,000 catalogue listings with contact details and about 349,000 register entries. The data suits lead lists, market sizing, supplier checks and keeping a company database current.

### How to scrape 1188.lv data

Pick what the run should return with `source`.

1. Catalogue listings (`listings`, default) are the companies that have a catalogue page: phone, e-mail, website, opening hours, coordinates, rating, categories, keywords and products. Narrow them with `categoryKeywords` (for example `aptieka` for pharmacies, `advokati` for lawyers) and `cityKeywords` (for example `Riga`, `Liepaja`).
2. Register entries (`register`) are the company register pages: name, status, legal form, registration number, registration date and legal address. They carry no phone or e-mail.

To look up known companies, fill `registrationNumbers` with Latvian registration numbers, or `companyUrls` with pages from 1188.lv. The other filters are ignored in that case.

Set `maxResults` to the number of companies you want.

### Input

| Field | What it does |
|---|---|
| `source` | `listings` for catalogue entries with contact data, `register` for register entries. |
| `categoryKeywords` | Words matched against the catalogue category addresses. Applies to listings. |
| `cityKeywords` | Keeps companies whose address contains one of the words. Accents are ignored. |
| `registrationNumbers` | Registration numbers to look up in the register. |
| `companyUrls` | Pages from 1188.lv to read. |
| `maxResults` | Maximum number of companies to return. |
| `proxyConfiguration` | Proxy used for the requests. Apify Proxy is the default. |

### What you get back

| Field | Description |
|---|---|
| `recordType` | `listing` for a catalogue entry, `register` for a register-only entry |
| `registrationNumber` | Latvian company registration number |
| `legalName`, `name` | Name in the register and name as shown in the catalogue |
| `status` | Register status, for example `Reģistrēts` (registered) or `Likvidācijas process` |
| `legalForm` | Legal form, for example a limited liability company |
| `register`, `registeredAt` | Register and registration date (YYYY-MM-DD) |
| `legalAddress` | Registered address |
| `address`, `city`, `postalCode` | Street address, city and postal code of the listing |
| `latitude`, `longitude` | Coordinates of the listing |
| `phone`, `phones` | First phone number and all phone numbers |
| `email`, `website` | Contact e-mail and website when published |
| `socialLinks` | Social network links keyed by network |
| `openingHours` | Opening hours per weekday |
| `category`, `categories` | Catalogue categories |
| `topKeywords`, `products` | Keywords and products the company lists |
| `description` | Description text |
| `rating`, `reviewCount` | Average rating and number of comments |
| `logoUrl` | Logo image address |
| `url` | Page on 1188.lv |
| `scrapedAt` | Time of the scrape |

Fields stay `null` or empty when the company has not published them. Credit scores, payment history and annual reports are sold on 1188.lv, so the actor does not return them.

### Example output

```json
{
  "recordType": "listing",
  "registrationNumber": "40203279056",
  "legalName": "TIESĪBU RISINĀJUMI LEX",
  "name": "\"Tiesību risinājumi LEX\"",
  "status": "Reģistrēts",
  "legalForm": "Sabiedrība ar ierobežotu atbildību",
  "register": "Komercreģistrs",
  "registeredAt": "2020-12-10",
  "legalAddress": "Rīga, Aleksandra Čaka iela 83/85 - 9, LV-1011",
  "address": "A. Čaka iela 83/85 - 9",
  "city": "Rīga",
  "postalCode": "LV-1011",
  "latitude": 56.95694733,
  "longitude": 24.13716316,
  "phone": "67270292",
  "phones": ["67270292", "29555430"],
  "email": "Tiesibu.Risinajumi@temida.lv",
  "website": "http://www.temida.lv",
  "category": "Advokāti",
  "rating": 5,
  "url": "https://www.1188.lv/katalogs/advokati-10/tiesibu-risinajumi-lex-939877"
}
```

### Use cases

- Lead lists: export every pharmacy, lawyer or restaurant in a city with phone, e-mail and website.
- Supplier and customer checks: confirm a company's registration number, status and legal form.
- Market sizing: count companies per category and per city.
- Database enrichment: add Latvian registration numbers, addresses and coordinates to a company list.
- Register monitoring: find companies that moved to liquidation by re-reading the register entries.

### Cost and speed

The actor reads one page per company over plain HTTP and needs no browser. About 100 companies take around a minute. Pricing is per result, see the pricing box on this page. The usage cost of a run only settles after the run reports SUCCEEDED, so a cost checked during the run is too low.

### Notes and limits

- The data covers Latvian companies and sole traders listed on 1188.lv.
- Each page appears once per run.
- Category words come from the catalogue addresses, for example `aptieka` in `/katalogs/aptieka-350`.
- Register entries have no phone or e-mail. Use `listings` for contact data.
- The data is public register information and the contact details companies published themselves.
- When a page lacks a field, the output holds `null` for it.

### Frequently asked questions

#### Can I search by company name?

Not in this version. Use `categoryKeywords` and `cityKeywords` for a group of companies, `registrationNumbers` or `companyUrls` for specific companies.

#### How do I find the right category word?

Open 1188.lv/katalogs and browse the categories. The word is part of the category address, for example `advokati` in `/katalogs/advokati-10`. A word matches every category whose address contains it.

#### Why are some e-mail and website fields empty?

Companies choose whether to publish them. The actor returns `null` when the page shows nothing.

#### Does it return credit scores or annual reports?

No. Those are sold on 1188.lv.

#### Can I look up a company by registration number?

Yes. Fill `registrationNumbers`. The actor reads the register entry for each number.

#### How often can I run it?

As often as you like. For database upkeep, a monthly run on the same categories works well.

### Related scrapers

- UR Latvia Scraper: the Latvian company register.
- Bizi.si Scraper: the Slovenian company directory.
- Proff Norway Scraper: Norwegian company data.

# Actor input Schema

## `source` (type: `string`):

Listings are the catalogue entries with phone, e-mail, website, opening hours and coordinates (about 52,000). Register returns the company register entries only: name, status, legal form, registration number, registration date and legal address (about 349,000).

## `categoryKeywords` (type: `array`):

Words from the catalogue category addresses, lowercase without accents, for example advokati, aptieka or kafejnicas. Applies to catalogue listings. Leave empty for all categories.

## `cityKeywords` (type: `array`):

Keep only companies whose address contains one of these words, for example Riga or Liepaja. Accents are ignored.

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

Latvian registration numbers (8 to 12 digits), for example 40203279056. When filled, the other filters are ignored and each number is looked up in the register.

## `companyUrls` (type: `array`):

Pages from 1188.lv, for example https://www.1188.lv/katalogs/advokati-10/tiesibu-risinajumi-lex-939877. When filled, the filters are ignored.

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

Maximum number of companies to return.

## `proxyConfiguration` (type: `object`):

Proxy used for the requests. Default is Apify Proxy.

## Actor input object example

```json
{
  "source": "listings",
  "categoryKeywords": [
    "aptieka"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "categoryKeywords": [
        "aptieka"
    ],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/1188-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 = {
    "categoryKeywords": ["aptieka"],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/1188-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 '{
  "categoryKeywords": [
    "aptieka"
  ],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/1188-lv-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/1188-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/dy5IiiYPeud6TBLH7/builds/aKYKMphCY3kqHoWj2/openapi.json
