# Pkt.pl Scraper (`eudatalab/pkt-scraper`) Actor

Polish business leads from pkt.pl: company name, categories, address with GPS, phone, e-mail, website, NIP, REGON, founding year, rating. Pay per company. Search by trade + city, or paste any pkt.pl URL.

- **URL**: https://apify.com/eudatalab/pkt-scraper.md
- **Developed by:** [Ihor Hrypas](https://apify.com/eudatalab) (community)
- **Categories:** Lead generation
- **Stats:** 6 total users, 1 monthly users, 93.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.

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 leads with phone, e-mail, website, NIP & REGON

Turn any pkt.pl search into a clean company list: name, categories, full address with GPS, phone, e-mail, website, NIP, REGON, founding year, rating. Pay only per company delivered.

### Sample output

| name | categories | address | phone | email | nip | rating |
|---|---|---|---|---|---|---|
| Belldent Opławscy Sp.j. | Stomatolodzy Kraków; Lekarze - stomatolodzy | Kraków | 883 488 341 | gabinet@belldent.pl | 6762521456 | 5 |
| Hydro-Kan Marcin Kitliński | Instalacje hydrauliczne - usługi | Gałczyńskiego 6 lok. 5, 09-400 Płock | 505 066 830 | hydro_kan@wp.pl | 7741569435 | 0 |

### Use cases

- **B2B lead generation** — call/e-mail lists of plumbers, dentists, accountants, car services… in any Polish city, with NIP for invoicing checks.
- **Market research** — competitor density per city, ratings, founding years.
- **CRM enrichment** — match NIP/REGON to your records, verify addresses and websites.
- **AI agents** — expose this Actor as a tool via the Apify MCP server and pull fresh Polish company data on demand.

### Pricing

**Pay per event: $0.003 per company.** No companies, no charge. Set **Max companies** to cap the cost of a run (100 companies ≈ $0.30). Works on the Apify free plan within your free credits.

### How to use

1. Type a trade or keyword (`hydraulik`, `stomatolog`, `biuro rachunkowe`…) and a city (`Warszawa`, `Kraków`, or empty for all of Poland).
2. Keep **Open company pages** on to get NIP, REGON, e-mail, categories and GPS (one extra request per company, same price).
3. Run and export as Excel, CSV, JSON, or push to Google Sheets / your CRM with an integration.

Advanced: paste any pkt.pl search URL into **Start URLs**; it overrides the query.

### Input

| Field | Meaning | Default |
|---|---|---|
| What are you looking for | trade / keyword as on pkt.pl | `hydraulik` |
| Location | city or district | `Warszawa` |
| Start URLs | pkt.pl search URLs (override query) | — |
| Max companies | stop after N companies (= cost cap) | 100 |
| Open company pages | add NIP, REGON, e-mail, categories, GPS | on |
| Proxy | Apify Proxy settings | off by default (pkt.pl blocks Apify datacenter IPs) |

### Output fields

`url`, `pktId`, `name`, `categories[]`, `street`, `city`, `postalCode`, `region`, `country`, `address`, `latitude`, `longitude`, `phone`, `email`, `website`, `nip`, `regon`, `foundedYear`, `description`, `rating` (0–5), `reviewCount`, `logo`, `scrapedAt`

### Limits and fair use

Only publicly listed business information is read, exactly as shown on pkt.pl. No login, no bypass of access controls. Many Polish businesses are sole proprietorships, so names and contact details may be personal data — use them for legitimate B2B purposes only and honour GDPR and the source site's terms.

### Problems?

Open an issue on the **Issues** tab with your run ID — median response time is under 6 hours.

# Actor input Schema

## `query` (type: `string`):

Trade or keyword as on pkt.pl, e.g. `hydraulik`, `stomatolog`, `biuro rachunkowe`, `mechanik samochodowy`. Ignored when Start URLs are given.

## `location` (type: `string`):

City or district, e.g. `Warszawa`, `Kraków`, `Gdańsk`. Leave empty for all of Poland.

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

Any pkt.pl search URLs, e.g. `https://www.pkt.pl/szukaj/stomatolog/olsztyn`. Overrides query + location.

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

Stop after this many companies. One company = one charged event, so this is your cost cap. The form prefills 25 for a quick first run; raise it for production.

## `followDetails` (type: `boolean`):

Visit each company's page to add NIP, REGON, e-mail, founding year, categories and GPS. Slower, same price per company.

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

Leave proxy off: pkt.pl blocks Apify datacenter proxy IPs (403 / stub page) but serves Apify platform IPs directly.

## Actor input object example

```json
{
  "query": "hydraulik",
  "location": "Warszawa",
  "startUrls": [],
  "maxItems": 25,
  "followDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "query": "hydraulik",
    "location": "Warszawa",
    "maxItems": 25,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("eudatalab/pkt-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 = {
    "query": "hydraulik",
    "location": "Warszawa",
    "maxItems": 25,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("eudatalab/pkt-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 '{
  "query": "hydraulik",
  "location": "Warszawa",
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call eudatalab/pkt-scraper --silent --output-dataset

```

## MCP server setup

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