# Duunitori Finland Job Listings (`codingfrontend/duunitori-scraper`) Actor

Extract normalized public Duunitori.fi job listings without bypassing source access controls.

- **URL**: https://apify.com/codingfrontend/duunitori-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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

## Duunitori Finland Job Listings

This Actor reads public Duunitori.fi search pages and normalizes explicit job listings into a small, stable vacancy contract. It is intended for bounded research, recruiting, market mapping, and testing workflows where public-page access is sufficient. The Actor does not log in, use a private API, solve a CAPTCHA, evade fingerprinting, use a reader proxy, or bypass a WAF or other access-control boundary.

### Input

```json
{
  "startUrls": [{ "url": "https://duunitori.fi/tyopaikat" }],
  "keywords": "software engineer",
  "location": "Helsinki",
  "maxItems": 25,
  "maxPages": 2,
  "maxRequests": 10,
  "includeDiagnostics": true
}
```

`startUrls`, `sourceUrls`, `urls`, and `url` are accepted as source aliases. If none is supplied, the Actor uses `https://duunitori.fi/tyopaikat`. Keyword, location, and language values are added to that public search URL. `requestTimeoutSecs`/`requestTimeoutMs` alias `timeoutSecs`, and `retries` aliases `maxRetries`. Requests, pages, response size, retries, timeout, and delay are bounded so an input cannot create an unbounded crawl. Only `duunitori.fi` and its subdomains are accepted; credentials, custom ports, redirects outside the source host, and local/private hosts are rejected.

### Output

Normal records use source-backed business and crawl-provenance fields such as `jobId`, `jobTitle`, `company`, `companyUrl`, `location`, `department`, `workplaceType`, `employmentType`, `description`, `datePosted`, `salaryCurrency`, `salaryMin`, `salaryMax`, `skills`, `url`, `canonicalUrl`, `applyUrl`, `sourceUrl`, `pageUrl`, `sourceDomain`, `pageNumber`, `position`, and `scrapedAt`. Missing public values are omitted rather than filled with placeholders; internal extraction and transport metadata is not emitted in normal rows. When a page is blocked, throttled, unavailable, or contains no explicit job data, a `recordType:diagnostic` row with `diagnosticType`, `url`, `sourceUrl`, `error`, `errorCode`, and `scrapedAt` is emitted when `includeDiagnostics` is enabled.

The parser understands public JSON-LD, embedded JSON state, and explicit Duunitori job links. It deduplicates by disclosed identifier or canonical URL and preserves the source and page URL for each record. It does not infer a job from arbitrary prose or fabricate values when public markup is absent.

### Local validation

Run `npm ci`, `npm test`, `apify validate-schema`, and `apify run --purge --input-file .actor/input.json`. A real isolated PowerShell run is:

```powershell
$env:APIFY_LOCAL_STORAGE_DIR = '..\\duunitori-local-storage'
apify run --purge --input-file .actor/input.json
```

Dataset items are written to the local default dataset and run summaries to `OUTPUT` and `OUTPUT_SUMMARY` in the default key-value store. `npm run check` performs syntax checks, the focused tests, and the dataset validator.

### Platform and cost

The Actor is designed for ordinary sequential HTTPS requests and bounded local or platform execution. Compute and storage cost depends on the selected platform resources, number of pages, response sizes, and request timeout; the source itself does not provide a guaranteed free or paid API through this Actor. Keep limits low for exploratory runs and respect Duunitori’s terms, robots guidance, rate limits, privacy obligations, and applicable data-use policies.

### Limitations

Duunitori may render listings dynamically, change markup, throttle automated requests, or show a CAPTCHA/WAF/security page. These conditions are surfaced as diagnostics or a no-public-data result; the Actor stops at that boundary. Search pages may expose less information than job detail pages, and salary, contact, skills, and application data are emitted only when explicitly present in public structured data or links. Local verification uses public HTTPS only and does not represent a remote Apify build or run.

# Actor input Schema

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

Duunitori.fi search or job URLs to fetch.

## `sourceUrls` (type: `array`):

Alternative array alias for public Duunitori.fi URLs.

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

Alternative array alias for public Duunitori.fi URLs.

## `url` (type: `string`):

Alternative single public Duunitori.fi URL.

## `keywords` (type: `string`):

Optional public search keyword.

## `searchQuery` (type: `string`):

Alias for the keyword filter.

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

Optional public search location.

## `language` (type: `string`):

Optional public language filter.

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

Maximum normal records emitted.

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

Maximum same-site result pages.

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

Maximum total public page requests.

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

Timeout for each public request.

## `requestTimeoutSecs` (type: `integer`):

Alias for timeoutSecs.

## `requestTimeoutMs` (type: `integer`):

Alias for timeoutSecs in milliseconds.

## `maxRetries` (type: `integer`):

Maximum bounded retries for transient responses.

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

Alias for maxRetries.

## `requestDelayMs` (type: `integer`):

Delay between page requests in milliseconds.

## `maxResponseBytes` (type: `integer`):

Maximum response body size in bytes.

## `includeDiagnostics` (type: `boolean`):

Emit source-boundary and no-data diagnostics.

## `deduplicate` (type: `boolean`):

Deduplicate records by job ID or canonical URL.

## Actor input object example

```json
{
  "startUrls": [],
  "maxItems": 25,
  "maxPages": 3,
  "maxRequests": 10,
  "timeoutSecs": 30,
  "maxRetries": 1,
  "requestDelayMs": 300,
  "maxResponseBytes": 2000000,
  "includeDiagnostics": true,
  "deduplicate": true
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/duunitori-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("codingfrontend/duunitori-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 codingfrontend/duunitori-scraper --silent --output-dataset

```

## MCP server setup

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