# Pracuj.pl Search Scraper (`jobsapi/pracuj-pl-jobs-search-scraper`) Actor

Scrape job listings from Pracuj.pl, Poland's largest job board. Extract job titles, companies, locations, salary ranges, contract types, and descriptions for Polish recruitment and job market analysis.

- **URL**: https://apify.com/jobsapi/pracuj-pl-jobs-search-scraper.md
- **Developed by:** [Jobs API](https://apify.com/jobsapi) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 pracuj.pl job records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Pracuj.pl public jobs scraper

This Actor retrieves publicly visible Pracuj.pl vacancies with bounded native HTTPS requests. It parses official `JobPosting` JSON-LD, embedded Pracuj.pl state, and semantic HTML from the search and detail pages, then writes only complete, detail-verified records to the default dataset.

The current local audit run reached the official host but received Cloudflare `403 Just a moment` challenge pages. The Actor fails closed in that case: the dataset remains empty and the response receipt is retained in `RUN_DIAGNOSTICS`. It does not use a reader proxy, Apify proxy, browser automation, fingerprint spoofing, CAPTCHA/WAF bypass, private endpoint, `apify call`, or cloud push.

### Modes

- `search`: one official search page followed by detail enrichment.
- `searchMultiple`: bounded, deduplicated searches from `searchQueries` or `queries`.
- `single`: one exact official job URL from `jobUrl`.
- `multiple`: exact official job URLs from `jobUrls` or `jobs`.
- `startUrls`: a mixed list of official search and job URLs.
- `jobUrls`: compatibility mode that maps to `single` or `multiple`.

Every search/detail request is bounded by `maxPages`, `maxCandidates`, `maxRequests`, `timeoutMs`, and `retries`. Optional source fields are omitted rather than emitted as null, blank, placeholder, or empty values. Application links are retained only when Pracuj.pl publishes them.

### Local verification

From this directory:

```powershell
npm ci --ignore-scripts --no-audit --no-fund
npm run check
npm test
npx --yes apify-cli validate-schema .actor/input_schema.json
npx --yes apify-cli run --purge --input-file INPUT.json
npm run validate
```

The local run writes complete jobs to `storage/datasets/default` and four evidence objects to `storage/key_value_stores/default`: `RUN_SUMMARY`, `RUN_DIAGNOSTICS`, `RUN_METADATA`, and `RUN_HEALTH`.

### Dataset contract

Each job contains stable identity and provenance (`recordId`, `jobId`, canonical/detail URLs, source receipts, status, and timestamps), company and location data, employment/work-mode/taxonomy values, salary when published, application links, dates, and a rich description with sanitized text, HTML, headings, sections, bullets, and links. The required fields and types are defined in `.actor/dataset_schema.json`.

Only official HTTPS `www.pracuj.pl` or `pracuj.pl` URLs are accepted. A detail record is written only when its numeric posting ID matches the requested URL, its canonical URL is official and verified, the public detail response is successful, and the description is at least 120 characters.

### Example inputs

`INPUT.json` is the primary search run. `INPUT-single.json`, `INPUT-multiple.json`, `INPUT-search-multiple.json`, and `INPUT-start-urls.json` exercise the supported direct and search modes. The checked-in direct URLs are official-shaped public Pracuj.pl URLs and may be blocked by the target at audit time.

### Responsible use

Collect only public job information, respect Pracuj.pl terms and robots directives, keep request budgets conservative, and do not use the Actor to access authenticated pages, bypass access controls, or collect candidate personal data.

### Cloud execution and privacy

The Actor supports normal local execution and Apify cloud deployment. Direct requests are used by default. If Pracuj.pl presents an access challenge, enable the optional `proxyConfiguration` input; sessions rotate across bounded retry attempts, and proxy credentials are never logged or stored.

Every network attempt counts toward `maxRequests`, including retries. Responses are size-limited, requests are paced, and only identity-verified official detail pages become dataset rows. Public email addresses and Polish phone numbers are recursively removed from parsed and raw-source fields; output rows declare `contactDetailsRedacted: true`.

# Changelog

This Actor's version history is a separate document: https://apify.com/jobsapi/pracuj-pl-jobs-search-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

Search, search multiple queries, fetch one or more exact jobs, or use mixed official startUrls.

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

Job title, technology, or keyword, for example nodejs.

## `keyword` (type: `string`):

Compatibility alias for query.

## `searchQueries` (type: `array`):

Queries used in searchMultiple mode.

## `queries` (type: `array`):

Compatibility alias for searchQueries.

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

Polish city or region, for example Warszawa or Kraków.

## `state` (type: `string`):

Compatibility alias for location.

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

Official Pracuj.pl search URLs, or official job URLs in startUrls/jobUrls compatibility mode.

## `jobUrl` (type: `string`):

One official HTTPS Pracuj.pl job URL.

## `jobUrls` (type: `array`):

Exact official HTTPS Pracuj.pl job URLs.

## `jobs` (type: `array`):

Official job URLs with optional caller labels.

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

Maximum complete verified records to write.

## `maxCandidates` (type: `integer`):

Maximum unique search candidates to enrich per search.

## `maxPages` (type: `integer`):

Bounded search pagination limit.

## `timeoutMs` (type: `integer`):

Timeout for each official request.

## `timeoutSecs` (type: `integer`):

Compatibility alias for timeoutMs.

## `retries` (type: `integer`):

Bounded retries for transient official request failures.

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

Compatibility alias for retries.

## `maxRequests` (type: `integer`):

Hard cap on official HTTP requests.

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

Optional Apify Proxy configuration. Enable it when Pracuj.pl challenges direct cloud traffic; credentials are managed by Apify and are never written to outputs or logs.

## Actor input object example

```json
{
  "mode": "search",
  "query": "nodejs",
  "searchQueries": [],
  "queries": [],
  "startUrls": [],
  "jobUrls": [],
  "jobs": [],
  "maxItems": 3,
  "maxCandidates": 20,
  "maxPages": 1,
  "timeoutMs": 20000,
  "retries": 0,
  "maxRequests": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/pracuj-pl-jobs-search-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/pracuj-pl-jobs-search-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 '{}' |
apify call jobsapi/pracuj-pl-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/pracuj-pl-jobs-search-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/iU71KiS8hOS2vMy9e/builds/gIvHIEXSGDOXyeVnT/openapi.json
