# MojPosao.net Scraper (`jobsapi/mojposao-net-jobs-search-scraper`) Actor

Extract public Croatian job listings from MojPosao.net, including employer, location, closing date, company details, and full job description.

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

## Pricing

from $2.99 / 1,000 mojposao.net 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

### MojPosao.net Jobs Search Scraper

### What does this Actor do?

This Actor reads public [MojPosao](https://mojposao.hr/) search results and `/posao/` job pages. It extracts source-published job facts and detail sections; it does not sign in, apply for jobs, or bypass access controls. The legacy `moj-posao.net` search URL may redirect to the current `mojposao.hr` site; the Actor follows the public redirect and records both request and response URLs.

### Why use this Actor?

Use it to collect Croatian public job listings with employer, location, deadlines, role descriptions, requirements, benefits, employment details, and application links when those details are published. Search results can be enriched from each public detail page; separate single and multiple URL modes are also supported. The Actor emits source receipts and a run summary so a local or platform run can be audited.

### What data can it extract?

| Group | Examples |
| --- | --- |
| Identity | Stable job ID, title, job URL, canonical URL, listing position |
| Employer | Name, profile ID/slug, public website, address, logo, badges, employer information |
| Location and dates | Location summary/addresses, publication date, start/end dates, application deadline |
| Job content | Full readable description and HTML, requirements and list, benefits and list, category and positions |
| Work facts | Employment/work types, languages, digital/other skills, tags, education and experience, worker count or salary when published |
| Application and provenance | Public application types/link, source and response URLs, HTTP status, response hash, request receipts, field-coverage/quality evidence |

Missing source facts are omitted rather than invented. Fields that are not present for an individual listing stay absent.

### How to scrape MojPosao

1. Open the Actor's Input tab and choose search, single-job, or multiple-job mode.
2. For search, optionally supply a public MojPosao search URL and set page/item limits. For detail modes, provide public `/posao/` URLs from MojPosao.
3. Start the Actor and inspect job records in the dataset and run status/receipts in the key-value store.

### Input

| Input | Type and range | Behavior |
| --- | --- | --- |
| `mode` | `search`, `single`, or `multiple`; default `search` | Search results, one public job URL, or a list of public job URLs. `single` requires exactly one valid job URL. |
| `sourceUrl` | URL; default `https://www.moj-posao.net/Pretraga-Poslova/` | Public MojPosao search URL. |
| `jobUrls` | Array of up to 100 strings | Preferred URL list for `single` and `multiple`. |
| `urls` | Array of up to 100 strings | Legacy compatibility alias for `jobUrls`; use `jobUrls` for new inputs. |
| `jobUrl` | String | Convenience input for one job URL. |
| `maxPages` | Integer, 1–20; default `1` | Maximum search pages to request. |
| `maxItems` | Integer, 1–100; default `20` | Maximum unique jobs to process or emit. |
| `includeDetails` | Boolean; default `true` | In search mode, fetch public detail pages for selected cards when enabled. Single and multiple modes always fetch the supplied detail pages. |
| `timeoutMs` | Integer, 5,000–60,000; default `20,000` | Per-request timeout in milliseconds. |
| `timeoutSecs` | Integer, 5–60 | Legacy timeout alias. `timeoutMs` takes precedence when both are supplied; use `timeoutMs` for new inputs. |

For URL inputs, `jobUrls` takes precedence over `urls`, which takes precedence over `jobUrl`. Use an explicit `mode` together with these fields. `maxItems` caps unique jobs across the selected pages; `maxPages` caps search pages for the run. There is no concurrency setting: listing and detail requests are made sequentially, and the next source request is not started until the current one has completed.

Example search input:

```json
{
  "mode": "search",
  "sourceUrl": "https://www.moj-posao.net/Pretraga-Poslova/",
  "maxPages": 1,
  "maxItems": 3,
  "includeDetails": true,
  "timeoutMs": 20000
}
```

Example single-job input:

```json
{
  "mode": "single",
  "jobUrl": "https://mojposao.hr/posao/3bec1c56-b807-11f1-9e17-0280a8fb46bd/visual-merchandiser-manager-ugovor-na-odredjeno-m-z"
}
```

Example multiple-job input (replace these public links with current MojPosao postings when they expire):

```json
{
  "mode": "multiple",
  "jobUrls": [
    "https://mojposao.hr/posao/3bec1c56-b807-11f1-9e17-0280a8fb46bd/visual-merchandiser-manager-ugovor-na-odredjeno-m-z",
    "https://mojposao.hr/posao/262117f4-b8ea-11f1-9e17-0280a8fb46bd/abbott-ambassador-m-f"
  ],
  "maxItems": 2
}
```

Example detail opt-out for lower request volume:

```json
{
  "mode": "search",
  "maxPages": 1,
  "maxItems": 10,
  "includeDetails": false
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Job rows use `record_type: "mojposao_job"`; diagnostics use `record_type: "source_diagnostic"`. The following is an excerpt from a real locally emitted record; long description and receipt values are shortened here for readability.

```json
{
  "record_type": "mojposao_job",
  "record_status": "complete",
  "id": "3bec1c56-b807-11f1-9e17-0280a8fb46bd",
  "title": "Visual Merchandiser Manager - ugovor na određeno (m/ž)",
  "company_name": "H & M Hennes & Mauritz d.o.o.",
  "location": "Zagreb",
  "category": "Prodaja (Trgovina)",
  "employment_types": ["Na određeno vrijeme"],
  "work_types": ["on-site"],
  "description": "TKO SMO? H&M Group je globalna kompanija snažnih modnih brendova i pothvata. ...",
  "requirements": "Tražimo ljude s/sa... - Iskustvom vizualnog dekoratera ...",
  "benefits": "U H&M Grupi, ponosni smo na to što smo energična i gostoljubiva kompanija ...",
  "apply_url": "https://smrtr.io/B_Y_n",
  "detail_http_status": 200,
  "data_quality": {
    "record_status": "complete",
    "detail_fetched": true,
    "meaningful_populated_fields": 31
  }
}
```

The current run summary is stored under `OUTPUT` and `RUN_SUMMARY`; its shape includes status, emitted-job and diagnostic counts, request counts, access evidence, direct-only flags, and completion time. `RUN_REQUESTS` contains one receipt per direct request. `RUN_DIAGNOSTICS` and dataset diagnostic rows preserve failures separately from jobs.

### Access limits and run status

The Actor uses ordinary direct HTTP requests to public pages. It does not retry requests, use a proxy or cookies, change browser fingerprints, or manipulate headers or identity to get around access controls.

- If a source request returns HTTP **401, 403, 429, or 451**, or a visible source-authored CAPTCHA, human-verification, security-challenge, or access-denial page, the run stops and is marked **`SKIPPED`**. No further source requests are made, buffered partial job rows are discarded, and the access evidence, request receipt, and diagnostic are preserved.
- A transport failure or any other unsuccessful HTTP status is **`DEFERRED`**, not treated as proof that the site blocked access. The Actor does not retry or switch routes to work around it; request receipts and diagnostics are retained.

Run summaries are stored under `OUTPUT` and `RUN_SUMMARY`. The `RUN_REQUESTS` key stores direct-request receipts, including status or transport-failure evidence where available. `RUN_DIAGNOSTICS` stores run diagnostics. Normal job records and any emitted diagnostics are also distinguished in the dataset.

### Local QA and storage safety

Use a new, relative `APIFY_LOCAL_STORAGE_DIR` for every local run. First verify the default `storage`, legacy `apify_storage`, and the chosen run directory are all absent; the CLI may move a legacy store into the selected directory. Preserve any existing data and choose another fresh name if any path already exists.

```powershell
$runStore = 'storage-mojposao-qa-20260926-01' # Choose a fresh, unique relative directory name.
foreach ($path in @('storage', 'apify_storage', $runStore)) {
    if (Test-Path -LiteralPath $path) { throw "Storage path already exists: $path" }
}
$env:APIFY_LOCAL_STORAGE_DIR = $runStore
npm test
npm run check
apify validate-schema
apify run --resurrect --input-file .\INPUT.json
npm run validate
```

Never pass `--purge` and never reuse an existing dataset directory for QA. This example documents the safe procedure; it does not imply that a run was performed.

### How much does it cost to scrape MojPosao?

Search mode uses one request per visited result page and, when `includeDetails` is enabled, one sequential detail request per selected job. Keep `maxPages` and `maxItems` modest for initial checks. This Actor is not affiliated with MojPosao. Follow the site's terms, robots guidance, rate limits, and applicable privacy and data-use laws. Results may include information individuals chose to publish; use it only for a legitimate purpose. Report issues through the Actor's Issues tab with a run ID and summary where possible.

### Tips and troubleshooting

- Set `includeDetails` to `false` to limit search runs to listing-page requests; detail-mode inputs always fetch their supplied job pages.
- `SKIPPED` means an explicit HTTP access barrier or visible challenge was found. `DEFERRED` means a transport or other unsuccessful response prevented reliable extraction. Neither status is reported as an empty successful dataset.
- If a run has no jobs, inspect `RUN_SUMMARY`, `RUN_DIAGNOSTICS`, and `RUN_REQUESTS` before changing inputs. Do not retry or switch routes to work around a source barrier.
- Use the Actor's API tab to retrieve its dataset and key-value outputs. For bugs or feature requests, use the Issues tab and include a run ID and summary.

### FAQ and responsible use

The Actor is not affiliated with MojPosao. It reads only public pages and does not collect private account data or submit applications. Follow MojPosao's terms, robots guidance, rate limits, and applicable privacy and data-use laws. Public job posts may still contain personal data; use them only for a legitimate purpose and consult qualified counsel when unsure.

# Actor input Schema

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

Search public cards, fetch one public job, or fetch several public jobs.

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

HTTPS MojPosao /posao/ URLs for single and multiple modes.

## `urls` (type: `array`):

Compatibility alias for jobUrls. Use jobUrls for new inputs. If both are supplied, jobUrls takes precedence.

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

Convenience input for one public MojPosao /posao/ URL.

## `sourceUrl` (type: `string`):

Public MojPosao search URL. Query parameters such as keyword or location may be supplied.

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

Number of public search result pages to inspect.

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

Maximum unique job records to emit.

## `includeDetails` (type: `boolean`):

Fetch public detail pages for description, employer, location, application, and structured job fields.

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

Maximum wait for each public HTTP request.

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

Compatibility alias for timeoutMs.

## Actor input object example

```json
{
  "mode": "search",
  "sourceUrl": "https://www.moj-posao.net/Pretraga-Poslova/",
  "maxPages": 1,
  "maxItems": 20,
  "includeDetails": true,
  "timeoutMs": 20000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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/mojposao-net-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/mojposao-net-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/mojposao-net-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/mojposao-net-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/4iaxyA8C50KXNS8ov/builds/iGTFbX2qwGy9By1Sn/openapi.json
