# PKT.pl Scraper | Polish Business Directory Leads (`trev0n/pkt-pl-scraper`) Actor

Scrape Polish companies from PKT.pl by keyword and city or from any search or company URL. Get name, category, address, GPS, phone, e-mail, website, rating and opening hours, plus NIP, REGON, social links and services. Monitor new companies.

- **URL**: https://apify.com/trev0n/pkt-pl-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (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 $2.50 / 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.

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

## 📒 PKT.pl Scraper | Polish Business Directory Leads

🎯 **Turn PKT.pl, one of Poland's best-known business directories, into a clean list of companies with phone numbers, e-mails and websites in minutes.**

Search by keyword and city, or paste any PKT.pl link, and get every matching company with its category, full address, GPS coordinates, phone, e-mail, website, rating, reviews count and opening hours. Switch on company details to add NIP and REGON numbers, founding year, social media links, the full list of services, photos and the latest customer reviews.

### 🚀 What Does It Do?

This scraper automatically goes through PKT.pl search results and collects **structured, ready-to-use company data**. No manual browsing, no copy and paste: type what you are looking for (for example `hydraulik` in `Warszawa`) and hit Start.

💡 **Two modes of operation:**

1. **🔍 Search Mode**: enter one or more keywords (`hydraulik`, `dentysta`, `biuro rachunkowe`, or a category name such as `usługi hydrauliczne`) and one or more locations (`Warszawa`, `Kraków`, `mazowieckie`). Every keyword is searched in every location, page after page, up to your Max results limit (set it to 0 for every result). Leave the location empty to search the whole of Poland.
2. **📋 Direct URL Mode**: paste PKT.pl search pages (also page 2, 3, ...) or individual company pages, and the scraper collects exactly those.

### 👥 Who Is This For?

| 🏢 Use Case                          | 💬 How It Helps                                                                                              |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| 📞 **Sales & lead generation teams** | Build call and e-mail lists of local businesses by trade and city, with phone, e-mail and website in one row |
| 🧾 **B2B suppliers & wholesalers**   | Find every plumber, electrician or builder in your delivery area and reach them first                        |
| 📣 **Marketing & SEO agencies**      | Spot companies without a website or with few reviews and offer them your services                            |
| 📊 **Market researchers & analysts** | Count and map competitors per city or voivodeship using categories and GPS coordinates                       |
| 🏦 **Data enrichment & KYC**         | Match companies to NIP and REGON numbers and keep contact data fresh                                         |
| 🔔 **Business monitoring**           | Get only the companies that newly appeared in a category or city, every week                                 |

### ✨ Features

- 🔎 **Keyword × location search**: any number of keywords and Polish cities or voivodeships in one run
- 🇵🇱 **Polish letters optional**: `krakow` and `Kraków`, `lodz` and `Łódź` both work
- 📞 **Contact data straight from the results**: phone, e-mail and website without opening each company page
- 📍 **Full address with GPS**: street, postal code, city, voivodeship, latitude and longitude
- ⭐ **Ratings & reviews count** for every company, plus the latest reviews with details on
- 🕒 **Opening hours** day by day
- 🧾 **NIP, REGON & founding year** with company details switched on
- 🌐 **Social links & services**: Google Maps, Facebook, Instagram and more, plus every service keyword the company lists
- 🔔 **Monitoring mode**: output only companies that are new (or changed their contact data) since the last run
- ⚡ **Fast & Scalable**: thousands of companies per run, every result page of a search when you lift the Max results limit
- 🧹 **Deduplication**: a company found by several keywords or locations is returned once
- 📤 **Export Anywhere**: Download results as JSON, CSV, Excel, or push to Google Sheets, Zapier, Make, or your CRM

### 🎛️ Filters & Options

| Option                                        | What It Does                                                                              |
| --------------------------------------------- | ----------------------------------------------------------------------------------------- |
| 🔎 **Keywords or categories**                 | What to look for, in Polish: a trade, a service or a category name                        |
| 📍 **Locations**                              | Polish cities or voivodeships; leave empty for all of Poland                              |
| 🔗 **Start URLs**                             | Paste PKT.pl search pages or company pages instead of using keywords                      |
| 📄 **Fetch company details**                  | Adds NIP, REGON, founding year, social links, slogan, services, photos and latest reviews |
| 🔢 **Max results**                            | Control how many companies to extract per run                                             |
| 📑 **Max pages per search**                   | Stop each search after a number of result pages (25 companies per page)                   |
| 🧹 **Skip empty fields**                      | Leave out fields without a value for a leaner export                                      |
| 🔔 **Only new companies**                     | Monitoring: output only new or changed companies since the last run                       |
| 🗝️ **Monitoring name**                        | Keep one saved baseline even when you tweak the search                                    |
| ♻️ **Also output unchanged companies**        | Monitoring: include companies seen before, tagged UNCHANGED                               |
| ⌛ **Also output companies that disappeared** | Monitoring: include companies that are no longer listed, tagged EXPIRED                   |
| ⚡ **Max concurrency**                        | How many pages to load in parallel                                                        |
| 🔁 **Max retries per page**                   | How many times to retry a page that failed or was refused                                 |
| 🛡️ **Proxy**                                  | Works out of the box with the default Apify Proxy                                         |

### 📦 What You Get (Output Fields)

Every company includes:

#### Company

| Field         | Example                                                                                  |
| ------------- | ---------------------------------------------------------------------------------------- |
| id            | `7012345`                                                                                |
| name          | `Instal-Serwis Jan Kowalczyk`                                                            |
| category      | `Usługi hydrauliczne`                                                                    |
| categories    | `["Usługi hydrauliczne", "Instalacje sanitarne"]`                                        |
| description   | `Firma Instal-Serwis od 2009 roku wykonuje instalacje wodno-kanalizacyjne i grzewcze...` |
| slogan        | `Hydraulik 24h w Krakowie i okolicach`                                                   |
| isPaidListing | `true`                                                                                   |
| url           | `https://www.pkt.pl/firma/instal-serwis-jan-kowalczyk-7012345`                           |

#### Contact & Location

| Field        | Example                                                      |
| ------------ | ------------------------------------------------------------ |
| phone        | `512 345 678`                                                |
| email        | `biuro@instal-serwis.pl`                                     |
| website      | `https://www.instal-serwis.pl`                               |
| street       | `Wielicka 120`                                               |
| postalCode   | `30-552`                                                     |
| city         | `Kraków`                                                     |
| voivodeship  | `małopolskie`                                                |
| coordinates  | `{ "lat": 50.026512, "lon": 19.982341 }`                     |
| openingHours | `{ "Poniedziałek": "08:00-17:00", "Sobota": "09:00-13:00" }` |

#### Company Details (with "Fetch company details")

| Field         | Example                                                                                                                |
| ------------- | ---------------------------------------------------------------------------------------------------------------------- |
| nip           | `6792512345`                                                                                                           |
| regon         | `122345678`                                                                                                            |
| foundedYear   | `2009`                                                                                                                 |
| socialLinks   | `{ "googleMaps": "https://maps.google.com/maps?cid=1234567890", "facebook": "https://www.facebook.com/instalserwis" }` |
| services      | `["hydraulik", "instalacje wodno-kanalizacyjne", "montaż kotłów"]`                                                     |
| images        | `["https://cdn.pkt.pl/KRA/123/1/1_KRA_123_1_m.jpg"]`                                                                   |
| latestReviews | `[{ "author": "Anna", "date": "2026-10-02", "rating": 5, "text": "Szybko i solidnie." }]`                              |

#### Reputation & Search

| Field          | Example                                                      |
| -------------- | ------------------------------------------------------------ |
| rating         | `4.9`                                                        |
| reviewsCount   | `57`                                                         |
| logo           | `https://cdn.pkt.pl/KRA/123/1/logo_zdjecie/1_KRA_123_1_.png` |
| searchKeyword  | `hydraulik`                                                  |
| searchLocation | `Kraków`                                                     |
| scrapedAt      | `2026-11-18T12:00:00.000Z`                                   |

### 📊 Example Output

```json
{
    "id": "7012345",
    "name": "Instal-Serwis Jan Kowalczyk",
    "slug": "/firma/instal-serwis-jan-kowalczyk-7012345",
    "category": "Usługi hydrauliczne",
    "categories": ["Usługi hydrauliczne", "Instalacje sanitarne"],
    "street": "Wielicka 120",
    "city": "Kraków",
    "postalCode": "30-552",
    "voivodeship": "małopolskie",
    "coordinates": { "lat": 50.026512, "lon": 19.982341 },
    "phone": "512 345 678",
    "email": "biuro@instal-serwis.pl",
    "website": "https://www.instal-serwis.pl",
    "socialLinks": {
        "googleMaps": "https://maps.google.com/maps?cid=1234567890",
        "facebook": "https://www.facebook.com/instalserwis"
    },
    "rating": 4.9,
    "reviewsCount": 57,
    "description": "Firma Instal-Serwis od 2009 roku wykonuje instalacje wodno-kanalizacyjne i grzewcze dla domów i firm w Krakowie.",
    "slogan": "Hydraulik 24h w Krakowie i okolicach",
    "openingHours": {
        "Poniedziałek": "08:00-17:00",
        "Wtorek": "08:00-17:00",
        "Środa": "08:00-17:00",
        "Czwartek": "08:00-17:00",
        "Piątek": "08:00-17:00",
        "Sobota": "09:00-13:00"
    },
    "nip": "6792512345",
    "regon": "122345678",
    "foundedYear": 2009,
    "services": ["hydraulik", "instalacje wodno-kanalizacyjne", "montaż kotłów"],
    "logo": "https://cdn.pkt.pl/KRA/123/1/logo_zdjecie/1_KRA_123_1_.png",
    "images": ["https://cdn.pkt.pl/KRA/123/1/1_KRA_123_1_m.jpg"],
    "latestReviews": [{ "author": "Anna", "date": "2026-10-02", "rating": 5, "text": "Szybko i solidnie." }],
    "isPaidListing": true,
    "url": "https://www.pkt.pl/firma/instal-serwis-jan-kowalczyk-7012345",
    "searchKeyword": "hydraulik",
    "searchLocation": "Kraków",
    "searchUrl": "https://www.pkt.pl/szukaj/hydraulik/krak%C3%B3w",
    "scrapedAt": "2026-11-18T12:00:00.000Z"
}
```

Without "Fetch company details" the fields `socialLinks`, `slogan`, `nip`, `regon`, `foundedYear`, `services`, `images` and `latestReviews` are `null`. Field names match our PanoramaFirm.pl scraper, so you can merge both lists.

### 🧪 Example Inputs

Plumbers in two cities:

```json
{ "keywords": ["hydraulik"], "locations": ["Warszawa", "Kraków"], "maxResults": 500 }
```

Accounting offices across the whole voivodeship, with NIP and REGON:

```json
{ "keywords": ["biuro rachunkowe"], "locations": ["wielkopolskie"], "fetchDetails": true, "maxResults": 200 }
```

Weekly feed of new dentists in Gdańsk:

```json
{ "keywords": ["dentysta"], "locations": ["Gdańsk"], "maxResults": 0, "incremental": true }
```

### 📋 Dataset Views

The Apify Console gives you **5 ready-made table views** to quickly browse your results:

| View                      | What It Shows                                                                   |
| ------------------------- | ------------------------------------------------------------------------------- |
| 📊 **Overview**           | Company, category, city, phone, e-mail, website, rating and reviews             |
| 📞 **Contact list**       | Company, phone, e-mail, website and full address, ready for a CRM               |
| 🧾 **Company details**    | NIP, REGON, founding year, categories, slogan, social links, services and hours |
| 🔔 **Monitoring changes** | What is new or changed since the last run                                       |
| 📋 **Full details**       | Every field of every company, the complete dataset                              |

### ❓ FAQ

**🤔 Do I need to open every company page to get phone numbers and e-mails?**
No. Phone, e-mail, website, address, rating and opening hours come straight from the search results, which keeps runs fast and cheap. Switch on company details only when you need NIP, REGON, social links, services or reviews.

**🤔 Why do some companies have no phone or e-mail?**
Not every company on PKT.pl publishes its contact data. Basic free listings often show only the name and address; with company details on you still get their NIP and REGON numbers.

**🤔 Which locations can I use?**
Any Polish city or town and any of the 16 voivodeships, with or without Polish letters. If PKT.pl does not recognise a location, the run log tells you and the results cover the whole country.

**🤔 How does monitoring work?**
Turn on "Only new companies" and schedule the run. The first run saves everything it finds; later runs output only companies that appeared since, or whose phone, e-mail, website, address or reviews count changed. With company details on, each company page is still opened (and billed as a company detail) on every run, so for a cheap feed keep details off.

**🤔 Can I export the data?**
Yes, JSON, CSV, Excel, XML, HTML, RSS. You can also push data directly to Google Sheets, Zapier, Make, or any webhook or integration endpoint.

**🤔 How often should I run this?**
For fresh data, run daily or weekly. You can schedule automatic runs on Apify with just a few clicks.

**🤔 Does it work with proxies?**
Yes, the default Apify Proxy works for this site. The scraper works with Apify's built-in proxy service and switches IP addresses automatically when a page is refused.

### 🛠️ Need Custom Filters or Features?

**I'm happy to customize this scraper for your specific needs!** 🤝

Whether you need:

- 🎯 Additional filters (only companies with an e-mail or a website, minimum rating, paid listings only, postal code ranges)
- 📊 Extra data fields or custom output formats
- 🔄 Integration with your CRM, Google Sheets, or database
- ⏰ Scheduled scraping with automatic deduplication
- 🌐 Scraping from other Polish business directories alongside PKT.pl, such as PanoramaFirm.pl

👉 **Don't hesitate to reach out via private message**: I respond quickly and I'm always open to building exactly what you need. No request is too small or too specific!

### ⚖️ Legal & Ethical Use

This scraper collects **only publicly available information** from PKT.pl. It does not log in, does not access private data and only visits the public search and company pages. Please use the data responsibly and in compliance with applicable laws (including GDPR for data about sole traders) and the platform's terms of service.

# Actor input Schema

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

What to search for on PKT.pl, in Polish, e.g. "hydraulik", "dentysta", "biuro rachunkowe" or a category name such as "usługi hydrauliczne". Each keyword is searched in every location below.

## `locations` (type: `array`):

Polish cities or voivodeships, e.g. "Warszawa", "Kraków", "Bielsko-Biała" or "mazowieckie". Polish letters are optional ("krakow" works too). Leave empty to search all of Poland.

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

Paste PKT.pl search result pages (e.g. https://www.pkt.pl/szukaj/hydraulik/warszawa, also page 2+ links) or company pages (https://www.pkt.pl/firma/...). When set, the keywords and locations above are ignored.

## `fetchDetails` (type: `boolean`):

Open each company page to add NIP, REGON, founding year, social media links, slogan, the full list of services, the photo gallery and the latest reviews. Search results already include phone, e-mail, website, address and opening hours, so leave this off for plain contact lists.

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

Maximum number of companies for the whole run (0 = no limit).

## `maxPagesPerSearch` (type: `integer`):

Stop each keyword/location search after this many result pages (25 companies per page). 0 = all pages.

## `compact` (type: `boolean`):

Leave out fields without a value.

## `incremental` (type: `boolean`):

Remember what this search returned last time and output only NEW companies (plus companies whose phone, e-mail, website, address or review count changed). Schedule it weekly for a cheap new-companies feed. The first run returns everything and saves the baseline. With company details on, every company page is still opened and billed on each run.

## `stateKey` (type: `string`):

Optional. Name of the saved baseline. Leave empty to derive it from the search. Use a fixed name to keep the baseline when you tweak the search.

## `emitUnchanged` (type: `boolean`):

Monitoring only. Output companies seen before too, tagged UNCHANGED.

## `emitExpired` (type: `boolean`):

Monitoring only. Output companies that were in the last run but are gone now, tagged EXPIRED.

## `maxConcurrency` (type: `integer`):

How many pages to load in parallel.

## `maxRequestRetries` (type: `integer`):

How many times to retry a page that failed or was refused.

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

The default Apify Proxy works for this site. If PKT.pl refuses an IP address, the scraper switches to another one automatically.

## Actor input object example

```json
{
  "keywords": [
    "hydraulik"
  ],
  "locations": [
    "Warszawa"
  ],
  "fetchDetails": false,
  "maxResults": 100,
  "maxPagesPerSearch": 0,
  "compact": false,
  "incremental": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "maxConcurrency": 5,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `contact` (type: `string`):

No description

## `details` (type: `string`):

No description

## `monitoring` (type: `string`):

No description

## `full` (type: `string`):

No description

## `summary` (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 = {
    "keywords": [
        "hydraulik"
    ],
    "locations": [
        "Warszawa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/pkt-pl-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 = {
    "keywords": ["hydraulik"],
    "locations": ["Warszawa"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("trev0n/pkt-pl-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 '{
  "keywords": [
    "hydraulik"
  ],
  "locations": [
    "Warszawa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call trev0n/pkt-pl-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trev0n/pkt-pl-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/q5qUVUDnJ5133IYJu/builds/e1pnMHPr8HvqiNoeb/openapi.json
