# Profesia.sk Scraper (`jurooravec/profesia-sk-scraper`) Actor

One-stop-shop for all data on Profesia.sk Extract job offers, list of companies, positions, locations... Job offers include salary, textual info, company, and more

- **URL**: https://apify.com/jurooravec/profesia-sk-scraper.md
- **Developed by:** [Juro Oravec](https://apify.com/jurooravec) (community)
- **Categories:** Jobs
- **Security:** Full permissions
- **Stats:** 41 total users, 0 monthly users, 90.0% runs succeeded, 2 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

# Profesia.sk Scraper

One-stop-shop for all data on Profesia.sk. Extract job offers, list of companies, professions, locations... Job offers include salary, textual info, company, and more.

### What is Profesia.sk Scraper and how it works?

[Profesia](https://www.profesia.sk) - Is the leading Slovak job board in Slovakia.

With Profesia.sk Scraper, you can extract:

- [Job offers](https://profesia.sk/praca)
- [List of companies that have job offers](https://www.profesia.sk/praca/zoznam-spolocnosti)
- [List of industries that have job offers](https://www.profesia.sk/praca/zoznam-pracovnych-oblasti)
- [List of locations that have job offers](https://www.profesia.sk/praca/zoznam-lokalit)
- [List of professions](https://www.profesia.sk/praca/zoznam-pozicii)
- [List of advertised language requirements](https://www.profesia.sk/praca/zoznam-pozicii)
- [List of partners of profesia.sk](https://profesia.sk/partneri)

See the [outputs section](#outputs) for a detailed description.

The data can be downloaded in JSON, JSONL, XML, CSV, Excel, or HTML formats.

### Features

This actor is a robust production-grade solution suitable for businesses and those that need reliability.

- **7 kinds of datasets**

  - Scrape details of job offers, companies, industries, locations, professions, languages or partners.

- **Fast or Detailed modes**

  - Scraping can be fast (data taken from listing page only) or detailed (visit each job offer page).

- **Filter support**

  - Filter the results by Keyword(s) (full-text search), Minimum salary (per month / per hour), Employment type (full-time, part-time, freelance, internship, voluntary), Remote status (remote, partial, on-site) or Job offer age (in days).
  - Limit the number of results.

- **Blazing fast**

  - The actor doesn't use a browser, which means it's fast and cheap.

- **Proxy support**

  - You can use Apify's proxy, or your own, via Input.

- **Integrated data filtering and transformation**

  - Filter and modify scraped entries out of the box from within Apify UI, without needing other tools.

- **Integrated cache**

  - You can use cache together with custom filtering to e.g. save only NEW entries to the dataset. Save time and reduce cost.
  - Cache automatically stores which entries were already scraped. Cache can persist between different scraper runs.

- **Custom crawler configuration**

  - For advanced needs, you can pass Crawler configuration via Input.

- **Tested daily for high reliability**

  - The actor is regularly tested end-to-end to minimize the risk of a broken integration.

- **Privacy-compliant (GDPR)**

  - By default, personal data is redacted to avoid privacy issues. You can opt-in to include un-censored data.

- **Pass scraped dataset to other actors**

  - Automatically trigger another actor when this one is done to process the scraped dataset.
  - Metamorphing means that the dataset and key-value store is passed to another actor.
  - Actor metamorph can be configure via actor input. No need to define custom actors just for that.

- **Error monitoring**

  - Errors from your runs are captured and surfaced in the `REPORTING` dataset. (See Storage > Dataset > Select dropdown).
  - Errors are also automatically reported to [Sentry](https://sentry.io/).

### How can you use the data scraped from Profesia.sk? (Examples)

Companies

- Analyse competitors' job offers and recruitment strategies.
- Create competitive salary packages + perks based on the information like salary or remote options.
- Analyze the effectiveness of job advertisements and optimize their recruitment marketing strategies.

Recruiters

- Automate the process of finding job offers for your clients.

Analysists

- Analyze job market trends like salary expectations, popular job types, and in-demand skills.
- Study the regional job market trends.

### How to use Profesia.sk Scraper

1. Create a free Apify account using your email
2. Open Profesia.sk Scraper
3. In Input, select the dataset to scrape, and filters to apply.
4. Click "Start" and wait for the data to be extracted.
5. Download your data in JSON, JSONL, XML, CSV, Excel, or HTML format.

For details and examples for all input fields, please visit the [Input tab](https://apify.com/jurooravec/profesia-sk-scraper/input-schema).

### How much does it cost to scrape Profesia.sk?

#### Job offers

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        1000 results
      </strong></td>
            <td><strong>
        Full run (~ 21K results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Fast run
      </td>
            <td>
        $0.023 in   52s
      </td>
            <td>
        $0.482 in  18m 12s
      </td>
          </tr>
        <tr>
      <td>
        Detailed run
      </td>
            <td>
        $0.042 in  1m 44s
      </td>
            <td>
        $0.87 in  36m 30s
      </td>
          </tr>
      </tbody>
</table>

#### Companies

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 6.2K results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.039 in   33s
      </td>
          </tr>
      </tbody>
</table>

#### Industries

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 40 results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.003 in   10s
      </td>
          </tr>
      </tbody>
</table>

#### Locations

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 200 results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.005 in   17s
      </td>
          </tr>
      </tbody>
</table>

#### Professions

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 500 results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.007 in   17s
      </td>
          </tr>
      </tbody>
</table>

#### Languages

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 30 results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.004 in   14s
      </td>
          </tr>
      </tbody>
</table>

#### Partners

<table>
  <thead>
    <tr>
      <td></td>
            <td><strong>
        Full run (~ 70 results)
      </strong></td>
          </tr>
  </thead>

  <tbody>
        <tr>
      <td>
        Run
      </td>
            <td>
        $0.003 in   12s
      </td>
          </tr>
      </tbody>
</table>

<br/>

Checking for new job offers every day => costs less than $1 per month ($0.713 = 31 \* $0.023).

NOTE: Prices for job offer data are only indicative, based on runs of 200 entries.

Remember that with the [Apify Free plan](https://apify.com/pricing), you have $5 free usage per month.

#### Other datasets

List of companies, professions, locations, industries, partners, etc, are all around $0.038 (24s) per run.

### Input options

For details and examples for all input fields, please visit the [Input tab](https://apify.com/jurooravec/profesia-sk-scraper/input-schema).

#### Filter options

You can run Profesia.sk Scraper as is, with the default options, to get a sample of the
job offers entries (fast mode).

Otherwise, you can filter by:

- Keyword(s) (full-text search)
- Minimum salary (per month / per hour)
- Employment type (full-time, part-time, freelance, internship, voluntary)
- Remote status (remote, partial, on-site)
- Job offer age (in days)

Alternatively, you can set up [a custom search filter](https://www.profesia.sk/search_offers.php),
and pass the resulting
[search results URL](https://www.profesia.sk/praca/skrateny-uvazok/?count_days=1\&positions[]=40\&salary=1000\&salary_period=m\&skills[]=73_15_5_12)
to the `startUrls` input option.

Hence you can e.g. use Profesia.sk Scraper to dynamically check for existence of certain job offers.

#### Limit options

To limit how many results you get, set `outputMaxEntries` to desired amount.

#### Input examples

##### Example 1: Get summary of all job offers in last 20 days for full-time on-site cooks with salary 6+ eur/hr

```json
{
  "datasetType": "jobOffers",
  "jobOfferFilterEmploymentType": "fte",
  "jobOfferFilterLastNDays": 20,
  "jobOfferFilterMinSalaryPeriod": "hour",
  "jobOfferFilterMinSalaryValue": 6,
  "jobOfferFilterQuery": "kuchar",
  "jobOfferFilterRemoteWorkType": "noRemote",
}
```

##### Example 2: Same as above, but specified by providing a custom search results URL

```json
{
  "startUrls": [
    "https://www.profesia.sk/praca/kuchar/plny-uvazok/?count_days=20&remote_work=0&salary=6&salary_period=h"
  ],
}
```

##### Example 3: (Advanced) Same as above, but re-configure the crawler to increase the request timeout to 5 min and request retries to 5

```json
{
  "startUrls": [
    "https://www.profesia.sk/praca/kuchar/plny-uvazok/?count_days=20&remote_work=0&salary=6&salary_period=h"
  ],
  "requestHandlerTimeoutSecs": 300,
  "maxRequestRetries": 5,
}
```

### Outputs

Once the actor is done, you can see the overview of results in the Output tab.

To export the data, head over to the Storage tab.

![Profesia.sk Scraper dataset overview](./public/imgs/profesia-sk-actor-dataset-overview1.png)

### Sample output from Profesia.sk Scraper

#### Job offers output

```json
{
  "listingUrl": "https://www.profesia.sk/praca/?page_num=5",
  "employerName": null,
  "employerUrl": "https://www.profesia.sk/praca/prva-stavebna-sporitelna/C11358?page_num=5",
  "employerLogoUrl": "https://www.profesia.sk/customdesigns/EasyDesign/1/292/images/11358/logo.png?page_num=5",
  "offerName": null,
  "offerUrl": "https://www.profesia.sk/praca/prva-stavebna-sporitelna/O4563553?page_num=5",
  "offerId": "O4563553",
  "location": "Stará Ľubovňa",
  "labels": [],
  "lastChangeRelativeTime": "pred 11 hodinami",
  "lastChangeType": "added",
  "salaryRange": "2 000 EUR/mesiac",
  "salaryRangeLower": 2000,
  "salaryRangeUpper": null,
  "salaryCurrency": "eur",
  "salaryPeriod": "month",
  // Only in detailed entry
  "employmentTypes": [
    "selfemploy"
  ],
  // Only in detailed entry
  "startDate": "Dohodou",
  // Only in detailed entry
  "phoneNumbers": [
    "+421123456789"
  ],
  // Only in detailed entry
  "datePosted": "2023-04-22",
  // Only in detailed entry
  "jobInfoDeadline": null,
  // Only in detailed entry
  "jobInfoResponsibilities": "Ponúkame pracovné miesta v Starej Ľubovni, Kežmarku a v Spišskej Belej.Sme úspešná firma, plná úspešných ľudí!Chcete zažiť úspech? Ste tu správne! Sme PSS, Prvá stavebná sporiteľňa, s najvyšším podielom na trhu a zaradili sme sa do rebríčka TOP 3 finančných inštitúcií poskytujúcich produkty na financovanie bývania.Pridajte sa k nám a naučíme Vás, ako sa stať expertom na financovanie bývania.Čo bude Vaša úloha v tíme na pozícii obchodný zástupca:spravovať klientske portfólio PSSsamostatne viesť obchodné rokovaniavyhľadávať nových klientovaktívne hľadať a ponúkať klientom riešenia v oblasti financovania bývaniarealizovať obchodné ciele v oblasti sprostredkovania predaja produktov PSSbudovať tímovú spoluprácu",
  // Only in detailed entry
  "jobInfoBenefits": "Čo ponúkame:komplexné portfólio produktovstabilné pracovné miesto – kancelária, notebook, databáza klientovadministratívnu a právnu podporubezplatnú certifikáciu v NBSodborné vzdelávanie a  školenia na rozvoj obchodného potenciáluatraktívnu províznu schému, motivačné súťaže, TOP klubyteambuildingypodporu pre začínajúcich obchodných zástupcov – finančná podpora, mentorvideoporadenstvo – online komunikácia s klientombezplatnú marketingovú podporuflexibilný pracovný časprácu na živnosť alebo ako právnická osoba",
  // Only in detailed entry
  "jobReqEducation": "stredoškolské s maturitou\nnadstavbové/vyššie odborné vzdelanie\nvysokoškolské I. stupňa\nvysokoškolské II. stupňa\nvysokoškolské III. stupňa",
  // Only in detailed entry
  "jobReqIndustry": "stredoškolské s maturitou\nnadstavbové/vyššie odborné vzdelanie\nvysokoškolské I. stupňa\nvysokoškolské II. stupňa\nvysokoškolské III. stupňa",
  // Only in detailed entry
  "jobReqOther": "Microsoft Word - ZákladyMicrosoft Excel - Základy",
  // Only in detailed entry
  "jobReqSuitableForGraduate": "Áno",
  // Only in detailed entry
  "jobReqPersonalSkills": "Čím nás oslovíte:ste ľudský, empatický, sebavedomý, svedomitýmáte príjemné vystupovaniemáte obchodného duchachcete na sebe neustále pracovať a rozvíjať saviete pracovať samostatne, ale rozumiete dôležitosti tímovej spolupráceuž teraz sa tešíte na stretnutia s klientommáte minimálne SŠ vzdelanie s maturitou",
  // Only in detailed entry
  "jobReqExpertise": null,
  // Only in detailed entry
  "jobReqLanguage": null,
  // Only in detailed entry
  "jobReqDriversLicense": null,
  // Only in detailed entry
  "employerDescription": "Sme experti na financovanie bývania a na trhu pôsobíme už 30 rokov. Naše produkty využilo viac ako 2,5 milióna klientov, ktorým sme pomohli splniť si sen o vlastnom bývaní.\n\nZastávame hodnoty, ktoré zabezpečujú férový prístup ku klientom a aj k našim kolegom. Naše úspechy sú výsledkom tímovej spolupráce a práce kolegov motivovaných pestrým benefitným programom a adekvátnym finančným ohodnotením.\n\nAk sa chcete stať súčasťou tímu centrály PSS a nenašli ste pozíciu, ktorá by Vás oslovila, určite nám napíšte na [email protected] \nV prípade záujmu o prácu obchodného zástupcu v regióne, ktorý aktuálne nemá aktívnu inzerciu, prihláste sa prosím na nasledujúcom linku a uveďte svoje kontaktné údaje:\nhttps://ats.nalgoo.com/sk/gate/fopss/position/65267/\n\nNaši kolegovia sa Vám ozvú a preberú s Vami aktuálne možnosti, pretože v PSS si vážime každý jeden talent a vieme oceniť prínos každého kolegu!",
  // Only in detailed entry
  "employeeCount": "250-499 zamestnancov",
  // Only in detailed entry
  "employerContact": "Kontaktná osoba: Ing. Name RedactedTel.: +421123456789-mail: poslať životopis",
  // Only in detailed entry
  "locationCategs": [
    {
      "url": "https://www.profesia.sk/praca/stara-lubovna/?page_num=5",
      "name": "Stará Ľubovňa"
    }
  ],
  // Only in detailed entry
  "professionCategs": [
    {
      "url": "https://www.profesia.sk/praca/klientsky-pracovnik/?page_num=5",
      "name": "Klientský pracovník"
    },
    {
      "url": "https://www.profesia.sk/praca/obchodny-zastupca/?page_num=5",
      "name": "Obchodný zástupca"
    }
  ],
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "TzHJ97DLccjt41Vjf",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/TzHJ97DLccjt41Vjf",
    "contextId": "Zj3uHMtLtq",
    "requestId": "Q1E7YC5MfacPnSa",
    "originalUrl": "https://www.profesia.sk/praca/?page_num=5",
    "loadedUrl": "https://www.profesia.sk/praca/?page_num=5",
    "dateHandled": "2023-04-22T17:42:14.677Z",
    "numberOfRetries": 0
  },
}
```

#### Companies output

```json
{
  "url": "https://www.profesia.sk/praca/americka-rada/C259704",
  "name": "\"Americká rada\"",
  "count": 1,
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "9NqzdWbldXDhnfr90",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/9NqzdWbldXDhnfr90",
    "contextId": "STGbhv5vhC",
    "requestId": "RlmnlCkaYRPDswZ",
    "originalUrl": "https://www.profesia.sk/praca/zoznam-spolocnosti",
    "loadedUrl": "https://www.profesia.sk/praca/zoznam-spolocnosti/",
    "dateHandled": "2023-05-03T08:22:25.763Z",
    "numberOfRetries": 2
  },
}
```

#### Industries output

```json
{
  "url": "https://www.profesia.sk/praca/administrativa/",
  "name": "Administratíva",
  "count": 1987,
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "aXiYA7Fvhe9yc770e",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/aXiYA7Fvhe9yc770e",
    "contextId": "qrClMCZClt",
    "requestId": "5pg1u9iBvSHT8Qj",
    "originalUrl": "https://www.profesia.sk/praca/zoznam-pracovnych-oblasti",
    "loadedUrl": "https://www.profesia.sk/praca/zoznam-pracovnych-oblasti/",
    "dateHandled": "2023-05-03T08:11:59.543Z",
    "numberOfRetries": 0
  },
}
```

#### Locations output

```json
{
  "url": "https://www.profesia.sk/praca/bratislavsky-kraj/",
  "name": "Bratislavský kraj",
  "count": 7966,
  "region": "Bratislavský kraj",
  "country": "Slovenská republika",
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "lfAcMFtoU5viZUoCI",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/lfAcMFtoU5viZUoCI",
    "contextId": "Owb8eoeUH8",
    "requestId": "1k0DgwIuJ2QoZ3D",
    "originalUrl": "https://www.profesia.sk/praca/zoznam-lokalit",
    "loadedUrl": "https://www.profesia.sk/praca/zoznam-lokalit/",
    "dateHandled": "2023-05-03T08:27:02.347Z",
    "numberOfRetries": 1
  },
}
```

#### Professions output

```json
{
  "url": "https://www.profesia.sk/praca/dotnet-programator/",
  "name": ".NET programátor",
  "count": 84,
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "6M3q7QCbUUWBjp4zh",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/6M3q7QCbUUWBjp4zh",
    "contextId": "pd32tdaf8d",
    "requestId": "PwFXfeXgSpuftFt",
    "originalUrl": "https://www.profesia.sk/praca/zoznam-pozicii",
    "loadedUrl": "https://www.profesia.sk/praca/zoznam-pozicii/",
    "dateHandled": "2023-05-03T08:20:30.582Z",
    "numberOfRetries": 1
  },
}
```

#### Languages output

```json
{
  "url": "https://www.profesia.sk/praca/anglicky-jazyk/",
  "name": "Anglický jazyk",
  "count": 7877,
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "qZjKLARF76gcLAN4m",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/qZjKLARF76gcLAN4m",
    "contextId": "iPbY5cpzya",
    "requestId": "q50iTwf3pOgYUnO",
    "originalUrl": "https://www.profesia.sk/praca/zoznam-jazykovych-znalosti",
    "loadedUrl": "https://www.profesia.sk/praca/zoznam-jazykovych-znalosti/",
    "dateHandled": "2023-05-03T08:24:21.395Z",
    "numberOfRetries": 0
  },
}
```

#### Partners output

```json
{
  "name": "Absolventi.STUBA.SK",
  "url": "http://www.absolventi.stuba.sk/",
  "description": "Je určený všetkým absolventom, študentom, priateľom i priaznivcom STU v Bratislave. Jeho prostredníctvom môžete získať informácie o aktuálnom dianí, či hľadať medzi našimi čerstvými absolventmi perspektívnych zamestnancov pre svoje firmy. Práce na portáli a jeho definitívnej podobe ešte stále pokračujú.",
  "logoUrl": "https://www.profesia.sk/images/partner_logos/stuba_90x37.png",
  "category": "Špecializované servery",
  "metadata": {
    "actorId": "xLwYqj7sxMcGRcYZt",
    "actorRunId": "vdcUN6FBBTEmwBE6T",
    "actorRunUrl": "https://console.apify.com/actors/xLwYqj7sxMcGRcYZt/runs/vdcUN6FBBTEmwBE6T",
    "contextId": "y7RcAIYVfY",
    "requestId": "6DUFNu05KLfFoVN",
    "originalUrl": "https://www.profesia.sk/partneri",
    "loadedUrl": "https://www.profesia.sk/partneri",
    "dateHandled": "2023-05-03T08:25:35.747Z",
    "numberOfRetries": 1
  },
}
```

### How to integrate Profesia.sk Scraper with other services, APIs or Actors

You can connect the actor with many of the
[integrations on the Apify platform](https://apify.com/integrations).
You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive,
[and more](https://docs.apify.com/integrations).
Or you can use
[webhooks](https://docs.apify.com/integrations/webhooks)
to carry out an action whenever an event occurs, e.g. get a notification whenever
Instagram API Scraper successfully finishes a run.

### Use Profesia.sk Scraper with Apify API

The Apify API gives you programmatic access to the Apify platform.
The API is organized around RESTful HTTP endpoints that enable you to manage,
schedule and run Apify actors. The API also lets you access any datasets,
monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the `apify-client` NPM package.
To access the API using Python, use the `apify-client` PyPI package.

Check out the [Apify API reference](https://docs.apify.com/api/v2) docs
for full details or click on the
[API tab](https://apify.com/jurooravec/profesia-sk-scraper/api)
for code examples.

### Is it legal to scrape Profesia.sk?

It is legal to scrape publicly available data such as product descriptions,
prices, or ratings. Read Apify's blog post on
[the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/)
to learn more.

However, the following datasets include personal data:

- Job offers dataset includes info about employees.
  - Fields: employerContact, phoneNumbers
  - By default, this personal data is redacted, and in such case, it's safe to scrape the data.

To get the unredacted data, toggle on the "Include personal data" actor input.

> **Warning:** Including personal data is done at your own risk. It is your
> responsibility to make sure you have obtained consent or have a legal basis
> for using the data.
>
> By using this actor, you agree not to hold the author of this actor liable for privacy
> or data-related issues that may arise during its use.

Redacted fields may show a message like this instead of the actual value:

```txt
<Redacted property "email". To include the actual value, toggle ON the Actor input option "Include personal data">
```

### Who can I contact for issues with Profesia.sk actor?

To report issues and find help,
head over to the
[Discord community](https://discord.com/channels/801163717915574323), or email me at juraj\[dot]oravec\[dot]josefson\[at]gmail\[dot]com

# Actor input Schema

## `datasetType` (type: `string`):

Use this option if you want to scrape a whole dataset,
not just specific URLs.<br/><br/>
This option is ignored if <strong>Start URLs:</strong> are given

## `jobOfferDetailed` (type: `boolean`):

If checked, the scraper will obtain more detailed info
for job offers by visit the details page of each job offer.<br/><br/>
If un-checked, only the data from the listing page is extracted.<br/><br/>
For details, please refer to https://apify.com/jurooravec/profesia-sk-scraper#output

## `jobOfferFilterQuery` (type: `string`):

Comma-separated list of keywords. If given, only entries
matching the keywords will be retrieved (full-text search)

## `jobOfferFilterMinSalaryValue` (type: `integer`):

If set, only entries offering this much or more will be extracted

## `jobOfferFilterMinSalaryPeriod` (type: `string`):

Choose if the minimum salary is in per hour or per month format

## `jobOfferFilterEmploymentType` (type: `string`):

If set, only entries with this employment filter will be extracted

## `jobOfferFilterRemoteWorkType` (type: `string`):

If set, only entries with this type of remote work filter will be extracted

## `jobOfferFilterLastNDays` (type: `integer`):

If set, only entries up to this much days old will be extracted.
E.g. 7 = max 1 week old, 31 = max 1 month old, ...

## `jobOfferCountOnly` (type: `boolean`):

If checked, no data is extracted. Instead, the count of matched
job offers is printed in the log.

## `inputExtendUrl` (type: `string`):

Extend Actor input with a config from a URL.<br/>
For example, you can store your actor input in a source control, and import it here.<br/>
In case of a conflict (if a field is defined both in Actor input and in imported input) the Actor input overwrites the imported fields.<br/>
The URL is requested with GET method, and must point to a JSON file containing a single object (the config).<br/>
If you need to send a POST request or to modify the response further, use `inputExtendFromFunction` instead.

## `inputExtendFromFunction` (type: `string`):

Extend Actor input with a config defined by a custom function.<br/>
For example, you can store your actor input in a source control, and import it here.<br/>
In case of a conflict (if a field is defined both in Actor input and in imported input) the Actor input overwrites the imported fields.<br/>
The function must return an object (the config).

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

List of URLs to scrape.

## `startUrlsFromDataset` (type: `string`):

Import URLs to scrape from an existing Dataset.<br/>
The dataset and the field to import from should be written as `{datasetID}#{field}`.<br/>
Example: `datasetid123#url` will take URLs from dataset `datasetid123` from field `url`.

## `startUrlsFromFunction` (type: `string`):

Import or generate URLs to scrape using a custom function.<br/>

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## `includePersonalData` (type: `boolean`):

By default, fields that are potential personal data are censored. Toggle this option on to get the un-uncensored values.<br/>
<strong>WARNING:</strong> Turn this on ONLY if you have consent, legal basis for using the data, or at your own risk. <a href="https://gdpr.eu/eu-gdpr-personal-data/">Learn more</a>

## `requestMaxEntries` (type: `integer`):

If set, only at most this many requests will be processed.<br/>
The count is determined from the RequestQueue that's used for the Actor run.<br/>
This means that if `requestMaxEntries` is set to 50, but the associated queue already handled 40 requests, then only 10 new requests will be handled.

## `requestTransform` (type: `string`):

Freely transform the request object using a custom function.<br/>
If not set, the request will remain as is.

## `requestTransformBefore` (type: `string`):

Use this if you need to run one-time initialization code before `requestTransform`.

## `requestTransformAfter` (type: `string`):

Use this if you need to run one-time teardown code after `requestTransform`.

## `requestFilter` (type: `string`):

Decide which requests should be processed by using a custom function.<br/>
If not set, all requests will be included.<br/>
This is done after `requestTransform`.<br/>

## `requestFilterBefore` (type: `string`):

Use this if you need to run one-time initialization code before `requestFilter`.<br/>

## `requestFilterAfter` (type: `string`):

Use this if you need to run one-time teardown code after `requestFilter`.<br/>

## `requestQueueId` (type: `string`):

By default, requests are stored in the default request queue.
Set this option if you want to use a non-default queue.
<a href="https://docs.apify.com/sdk/python/docs/concepts/storages#opening-named-and-unnamed-storages">Learn more</a><br/>
<strong>NOTE:</strong> RequestQueue name can only contain letters 'a' through 'z', the digits '0' through '9', and the hyphen ('-') but only in the middle of the string (e.g. 'my-value-1')

## `outputMaxEntries` (type: `integer`):

If set, only at most this many entries will be scraped.<br/>
The count is determined from the Dataset that's used for the Actor run.<br/>
This means that if `outputMaxEntries` is set to 50, but the associated Dataset already has 40 items in it, then only 10 new entries will be saved.

## `outputRenameFields` (type: `object`):

Rename fields (columns) of the output data.<br/>
If not set, all fields will have their original names.<br/>
This is done before `outputPickFields`.<br/>
Keys can be nested, e.g. `"someProp.value[0]"`.
Nested path is resolved using <a href="https://lodash.com/docs/4.17.15#get">Lodash.get()</a>.

## `outputPickFields` (type: `array`):

Select a subset of fields of an entry that will be pushed to the dataset.<br/>
If not set, all fields on an entry will be pushed to the dataset.<br/>
This is done after `outputRenameFields`.<br/>
Keys can be nested, e.g. `"someProp.value[0]"`.
Nested path is resolved using <a href="https://lodash.com/docs/4.17.15#get">Lodash.get()</a>.

## `outputTransform` (type: `string`):

Freely transform the output data object using a custom function.<br/>
If not set, the data will remain as is.<br/>
This is done after `outputPickFields` and `outputRenameFields`.<br/>

## `outputTransformBefore` (type: `string`):

Use this if you need to run one-time initialization code before `outputTransform`.<br/>

## `outputTransformAfter` (type: `string`):

Use this if you need to run one-time teardown code after `outputTransform`.<br/>

## `outputFilter` (type: `string`):

Decide which scraped entries should be included in the output by using a custom function.<br/>
If not set, all scraped entries will be included.<br/>
This is done after `outputPickFields`, `outputRenameFields`, and `outputTransform`.<br/>

## `outputFilterBefore` (type: `string`):

Use this if you need to run one-time initialization code before `outputFilter`.<br/>

## `outputFilterAfter` (type: `string`):

Use this if you need to run one-time teardown code after `outputFilter`.<br/>

## `outputDatasetId` (type: `string`):

By default, data is written to Default dataset.
Set this option if you want to write data to non-default dataset.
<a href="https://docs.apify.com/sdk/python/docs/concepts/storages#opening-named-and-unnamed-storages">Learn more</a><br/>
<strong>NOTE:</strong> Dataset name can only contain letters 'a' through 'z', the digits '0' through '9', and the hyphen ('-') but only in the middle of the string (e.g. 'my-value-1')

## `outputCacheStoreId` (type: `string`):

Set this option if you want to cache scraped entries in <a href="https://docs.apify.com/sdk/js/docs/guides/result-storage#key-value-store">Apify's Key-value store</a>.<br/>
This is useful for example when you want to scrape only NEW entries. In such case, you can use the `outputFilter` option to define a custom function to filter out entries already found in the cache.
<a href="https://docs.apify.com/sdk/python/docs/concepts/storages#working-with-key-value-stores">Learn more</a><br/>
<strong>NOTE:</strong> Cache name can only contain letters 'a' through 'z', the digits '0' through '9', and the hyphen ('-') but only in the middle of the string (e.g. 'my-value-1')

## `outputCachePrimaryKeys` (type: `array`):

Specify fields that uniquely identify entries (primary keys), so entries can be compared against the cache.<br/>
<strong>NOTE:</strong> If not set, the entries are hashed based on all fields

## `outputCacheActionOnResult` (type: `string`):

Specify whether scraped results should be added to, removed from, or overwrite the cache.<br/>
\- <strong>add<strong> - Adds scraped results to the cache<br/>
\- <strong>remove<strong> - Removes scraped results from the cache<br/>
\- <strong>set<strong> - First clears all entries from the cache, then adds scraped results to the cache<br/>
<strong>NOTE:</strong> No action happens when this field is empty.

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

Indicates how many times the request is retried if <a href="https://crawlee.dev/api/basic-crawler/interface/BasicCrawlerOptions#requestHandler">BasicCrawlerOptions.requestHandler</a> fails.

## `maxRequestsPerMinute` (type: `integer`):

The maximum number of requests per minute the crawler should run. We can pass any positive, non-zero integer.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum number of pages that the crawler will open. The crawl will stop when this limit is reached.
<br/> <strong>NOTE:</strong> In cases of parallel crawling, the actual number of pages visited might be slightly higher than this value.

## `minConcurrency` (type: `integer`):

Sets the minimum concurrency (parallelism) for the crawl.<br/>
<strong>WARNING:</strong> If we set this value too high with respect to the available system memory and CPU, our crawler will run extremely slow or crash. If not sure, it's better to keep the default value and the concurrency will scale up automatically.

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

Sets the maximum concurrency (parallelism) for the crawl.

## `navigationTimeoutSecs` (type: `integer`):

Timeout in which the HTTP request to the resource needs to finish, given in seconds.

## `requestHandlerTimeoutSecs` (type: `integer`):

Timeout in which the function passed as <a href="https://crawlee.dev/api/basic-crawler/interface/BasicCrawlerOptions#requestHandler">BasicCrawlerOptions.requestHandler</a> needs to finish, in seconds.

## `keepAlive` (type: `boolean`):

Allows to keep the crawler alive even if the RequestQueue gets empty. With keepAlive: true the crawler will keep running, waiting for more requests to come.

## `ignoreSslErrors` (type: `boolean`):

If set to true, SSL certificate errors will be ignored.

## `additionalMimeTypes` (type: `array`):

An array of MIME types you want the crawler to load and process. By default, only text/html and application/xhtml+xml MIME types are supported.

## `suggestResponseEncoding` (type: `string`):

By default this crawler will extract correct encoding from the HTTP response headers. There are some websites which use invalid headers. Those are encoded using the UTF-8 encoding. If those sites actually use a different encoding, the response will be corrupted. You can use suggestResponseEncoding to fall back to a certain encoding, if you know that your target website uses it. To force a certain encoding, disregarding the response headers, use forceResponseEncoding.

## `forceResponseEncoding` (type: `string`):

By default this crawler will extract correct encoding from the HTTP response headers. Use forceResponseEncoding to force a certain encoding, disregarding the response headers. To only provide a default for missing encodings, use suggestResponseEncoding.

## `perfBatchSize` (type: `integer`):

If set, multiple Requests will be handled by a single Actor instance.<br/>
Example: If set to 20, then up to 20 requests will be handled in a single "go", after which the actor instance will reset.<br/>
<a href="https://docs.apify.com/platform/actors/development/performance#batch-jobs-win-over-the-single-jobs">See Apify documentation</a>.

## `perfBatchWaitSecs` (type: `integer`):

How long to wait between entries within a single batch.<br/>
Increase this value if you're using batching and you're sending requests to the scraped website too fast.<br/>
Example: If set to 1, then after each entry in a batch, wait 1 second before continuing.

## `logLevel` (type: `string`):

Select how detailed should be the logging.

## `errorReportingDatasetId` (type: `string`):

Dataset ID to which errors should be captured.<br/>
Default: `'REPORTING'`.<br/>
<strong>NOTE:</strong> Dataset name can only contain letters 'a' through 'z', the digits '0' through '9', and the hyphen ('-') but only in the middle of the string (e.g. 'my-value-1')

## `errorSendToTelemetry` (type: `boolean`):

Whether to report actor errors to telemetry such as <a href="https://sentry.io/">Sentry</a>.<br/>
This info is used by the author of this actor to identify broken integrations,
and track down and fix issues.

## `metamorphActorId` (type: `string`):

Use this option if you want to run another actor with the same dataset after this actor has finished (AKA metamorph into another actor). <a href="https://docs.apify.com/sdk/python/docs/concepts/interacting-with-other-actors#actormetamorph">Learn more</a> <br/>
New actor is identified by its ID, e.g. "apify/web-scraper".

## `metamorphActorBuild` (type: `string`):

Tag or number of the target actor build to metamorph into (e.g. 'beta' or '1.2.345')

## `metamorphActorInput` (type: `object`):

Input object passed to the follow-up (metamorph) actor. <a href="https://docs.apify.com/sdk/python/docs/concepts/interacting-with-other-actors#actormetamorph">Learn more</a>

## Actor input object example

```json
{
  "datasetType": "jobOffers",
  "jobOfferDetailed": true,
  "jobOfferFilterQuery": "specialist, Bratislava",
  "jobOfferFilterMinSalaryValue": 1000,
  "jobOfferFilterMinSalaryPeriod": "month",
  "jobOfferFilterEmploymentType": "fte",
  "jobOfferFilterRemoteWorkType": "fullRemote",
  "jobOfferFilterLastNDays": 10,
  "jobOfferCountOnly": false,
  "inputExtendUrl": "https://raw.githubusercontent.com/jfairbank/programming-elm.com/master/cat-breeds.json",
  "inputExtendFromFunction": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Load Actor config from GitHub URL (public)\n//   const config = await sendRequest.get('https://raw.githubusercontent.com/username/project/main/config.json').json();\n//   \n//   // Increase concurrency during off-peak hours\n//   // NOTE: Imagine we're targetting a small server, that can be slower during the day\n//   const hours = new Date().getUTCHours();\n//   const isOffPeak = hours < 6 || hours > 20;\n//   config.maxConcurrency = isOffPeak ? 8 : 3;\n//   \n//   return config;\n//\n// };",
  "startUrlsFromDataset": "datasetid123#url",
  "startUrlsFromFunction": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Create and load URLs from a Dataset by combining multiple fields\n//   const dataset = await io.openDataset(datasetNameOrId);\n//   const data = await dataset.getData();\n//   const urls = data.items.map((item) => `https://example.com/u/${item.userId}/list/${item.listId}`);\n//   return urls;\n//\n// };",
  "includePersonalData": false,
  "requestMaxEntries": 50,
  "requestTransform": "\n/**\n * Inputs:\n * `request` - Request holding URL to be scraped.\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async (request, { io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Tag requests\n//   // (maybe because we use RequestQueue that pools multiple scrapers)\n//   request.userData.tag = \"VARIANT_A\";\n//   return requestQueue;\n//\n// };",
  "requestTransformBefore": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code BEFORE requests are processed.\n//   state.categories = await sendRequest.get('https://example.com/my-categories').json();\n//\n// };",
  "requestTransformAfter": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code AFTER requests are processed.\n//   delete state.categories;\n//\n// };",
  "requestFilter": "\n/**\n * Inputs:\n * `request` - Request holding URL to be scraped.\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async (request, { io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Filter requests based on their tag\n//   // (maybe because we use RequestQueue that pools multiple scrapers)\n//   return request.userData.tag === \"VARIANT_A\";\n//\n// };",
  "requestFilterBefore": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code BEFORE requests are processed.\n//   state.categories = await sendRequest.get('https://example.com/my-categories').json();\n//\n// };",
  "requestFilterAfter": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code AFTER requests are processed.\n//   delete state.categories;\n//\n// };",
  "requestQueueId": "mIJVZsRQrDQf4rUAf",
  "outputMaxEntries": 50,
  "outputRenameFields": {
    "oldFieldName": "newFieldName"
  },
  "outputPickFields": [
    "fieldName",
    "another.nested[0].field"
  ],
  "outputTransform": "\n/**\n * Inputs:\n * `entry` - Scraped entry.\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Add extra custom fields like aggregates\n//   return {\n//     ...entry,\n//     imagesCount: entry.images.length,\n//   };\n//\n// };",
  "outputTransformBefore": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code BEFORE entries are scraped.\n//   state.categories = await sendRequest.get('https://example.com/my-categories').json();\n//\n// };",
  "outputTransformAfter": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code AFTER entries are scraped.\n//   delete state.categories;\n//\n// };",
  "outputFilter": "\n/**\n * Inputs:\n * `entry` - Scraped entry.\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Filter entries based on number of images they have (at least 5)\n//   return entry.images.length > 5;\n//\n// };",
  "outputFilterBefore": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code BEFORE entries are scraped.\n//   state.categories = await sendRequest.get('https://example.com/my-categories').json();\n//\n// };",
  "outputFilterAfter": "\n/**\n * Inputs:\n *\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\n * `ctx.input` - The input object that was passed to this Actor.\n * `ctx.state` - An object you can use to persist state across all your custom functions.\n * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.\n *                       See https://crawlee.dev/docs/guides/got-scraping\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\n *                        It takes the entry itself, and a list of properties to be used for hashing.\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\n *\n */\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\n//   // Example: Fetch data or run code AFTER entries are scraped.\n//   delete state.categories;\n//\n// };",
  "outputDatasetId": "mIJVZsRQrDQf4rUAf",
  "outputCacheStoreId": "mIJVZsRQrDQf4rUAf",
  "outputCachePrimaryKeys": [
    "name",
    "city"
  ],
  "outputCacheActionOnResult": "add",
  "maxRequestRetries": 3,
  "maxRequestsPerMinute": 120,
  "minConcurrency": 1,
  "requestHandlerTimeoutSecs": 180,
  "perfBatchSize": 20,
  "perfBatchWaitSecs": 1,
  "logLevel": "info",
  "errorReportingDatasetId": "REPORTING",
  "errorSendToTelemetry": true,
  "metamorphActorId": "apify/web-scraper",
  "metamorphActorBuild": "1.2.345",
  "metamorphActorInput": {
    "uploadDatasetToGDrive": true
  }
}
```

# 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 = {
    "datasetType": "jobOffers",
    "jobOfferFilterMinSalaryPeriod": "month",
    "inputExtendFromFunction": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Load Actor config from GitHub URL (public)
//   const config = await sendRequest.get('https://raw.githubusercontent.com/username/project/main/config.json').json();
//   
//   // Increase concurrency during off-peak hours
//   // NOTE: Imagine we're targetting a small server, that can be slower during the day
//   const hours = new Date().getUTCHours();
//   const isOffPeak = hours < 6 || hours > 20;
//   config.maxConcurrency = isOffPeak ? 8 : 3;
//   
//   return config;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "startUrlsFromFunction": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Create and load URLs from a Dataset by combining multiple fields
//   const dataset = await io.openDataset(datasetNameOrId);
//   const data = await dataset.getData();
//   const urls = data.items.map((item) => `https://example.com/u/${item.userId}/list/${item.listId}`);
//   return urls;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestMaxEntries": 50,
    "requestTransform": `/**
 * Inputs:
 * `request` - Request holding URL to be scraped.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (request, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Tag requests
//   // (maybe because we use RequestQueue that pools multiple scrapers)
//   request.userData.tag = "VARIANT_A";
//   return requestQueue;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestTransformBefore": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE requests are processed.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestTransformAfter": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER requests are processed.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestFilter": `/**
 * Inputs:
 * `request` - Request holding URL to be scraped.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (request, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Filter requests based on their tag
//   // (maybe because we use RequestQueue that pools multiple scrapers)
//   return request.userData.tag === "VARIANT_A";
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestFilterBefore": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE requests are processed.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "requestFilterAfter": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER requests are processed.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputMaxEntries": 50,
    "outputTransform": `/**
 * Inputs:
 * `entry` - Scraped entry.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Add extra custom fields like aggregates
//   return {
//     ...entry,
//     imagesCount: entry.images.length,
//   };
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputTransformBefore": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE entries are scraped.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputTransformAfter": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER entries are scraped.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputFilter": `/**
 * Inputs:
 * `entry` - Scraped entry.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Filter entries based on number of images they have (at least 5)
//   return entry.images.length > 5;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputFilterBefore": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE entries are scraped.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "outputFilterAfter": `/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER entries are scraped.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => "Cats make about 100 different sounds. Dogs make only about 10.",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };`,
    "maxRequestRetries": 3,
    "maxRequestsPerMinute": 120,
    "minConcurrency": 1,
    "requestHandlerTimeoutSecs": 180,
    "logLevel": "info",
    "errorReportingDatasetId": "REPORTING"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jurooravec/profesia-sk-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 = {
    "datasetType": "jobOffers",
    "jobOfferFilterMinSalaryPeriod": "month",
    "inputExtendFromFunction": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Load Actor config from GitHub URL (public)
//   const config = await sendRequest.get('https://raw.githubusercontent.com/username/project/main/config.json').json();
//   
//   // Increase concurrency during off-peak hours
//   // NOTE: Imagine we're targetting a small server, that can be slower during the day
//   const hours = new Date().getUTCHours();
//   const isOffPeak = hours < 6 || hours > 20;
//   config.maxConcurrency = isOffPeak ? 8 : 3;
//   
//   return config;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "startUrlsFromFunction": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Create and load URLs from a Dataset by combining multiple fields
//   const dataset = await io.openDataset(datasetNameOrId);
//   const data = await dataset.getData();
//   const urls = data.items.map((item) => `https://example.com/u/${item.userId}/list/${item.listId}`);
//   return urls;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestMaxEntries": 50,
    "requestTransform": """
/**
 * Inputs:
 * `request` - Request holding URL to be scraped.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (request, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Tag requests
//   // (maybe because we use RequestQueue that pools multiple scrapers)
//   request.userData.tag = \"VARIANT_A\";
//   return requestQueue;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestTransformBefore": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE requests are processed.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestTransformAfter": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER requests are processed.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestFilter": """
/**
 * Inputs:
 * `request` - Request holding URL to be scraped.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (request, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Filter requests based on their tag
//   // (maybe because we use RequestQueue that pools multiple scrapers)
//   return request.userData.tag === \"VARIANT_A\";
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestFilterBefore": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE requests are processed.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "requestFilterAfter": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER requests are processed.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputMaxEntries": 50,
    "outputTransform": """
/**
 * Inputs:
 * `entry` - Scraped entry.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Add extra custom fields like aggregates
//   return {
//     ...entry,
//     imagesCount: entry.images.length,
//   };
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputTransformBefore": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE entries are scraped.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputTransformAfter": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER entries are scraped.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputFilter": """
/**
 * Inputs:
 * `entry` - Scraped entry.
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Filter entries based on number of images they have (at least 5)
//   return entry.images.length > 5;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputFilterBefore": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code BEFORE entries are scraped.
//   state.categories = await sendRequest.get('https://example.com/my-categories').json();
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "outputFilterAfter": """
/**
 * Inputs:
 *
 * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.
 * `ctx.input` - The input object that was passed to this Actor.
 * `ctx.state` - An object you can use to persist state across all your custom functions.
 * `ctx.sendRequest` - Fetch remote data. Uses 'got-scraping', same as Apify's `sendRequest`.
 *                       See https://crawlee.dev/docs/guides/got-scraping
 * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.
 *                        It takes the entry itself, and a list of properties to be used for hashing.
 *                        By default, you should pass `input.cachePrimaryKeys` to it.
 *
 */
// async ({ io, input, state, sendRequest, itemCacheKey }) => {
//   // Example: Fetch data or run code AFTER entries are scraped.
//   delete state.categories;
//
//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */
//
//   /**
//    * ======= ACCESSING DATASET ========
//    * To save/load/access entries in Dataset.
//    * Docs:
//    * - https://docs.apify.com/platform/storage/dataset
//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset
//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce
//    */
//   // const dataset = await io.openDataset('MyDatasetId');
//   // const info = await dataset.getInfo();
//   // console.log(info.itemCount);
//   // // => 0
//
//   /**
//    * ======= ACCESSING REMOTE DATA ========
//    * Use `sendRequest` to get data from the internet:
//    * Docs:
//    * - https://github.com/apify/got-scraping
//    */
//   // const catFact = await sendRequest.get('https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889').json();
//   // console.log(catFact.text);
//   // // => \"Cats make about 100 different sounds. Dogs make only about 10.\",
//
//   /**
//    * ======= USING CACHE ========
//    * To save the entry to the KeyValue cache (or retrieve it), you can use
//    * `itemCacheKey` to create the entry's ID for you:
//    */
//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);
//   // const cache = await io.openKeyValueStore('MyStoreId');
//   // cache.setValue(cacheId, entry);
// };""",
    "maxRequestRetries": 3,
    "maxRequestsPerMinute": 120,
    "minConcurrency": 1,
    "requestHandlerTimeoutSecs": 180,
    "logLevel": "info",
    "errorReportingDatasetId": "REPORTING",
}

# Run the Actor and wait for it to finish
run = client.actor("jurooravec/profesia-sk-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 '{
  "datasetType": "jobOffers",
  "jobOfferFilterMinSalaryPeriod": "month",
  "inputExtendFromFunction": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Load Actor config from GitHub URL (public)\\n//   const config = await sendRequest.get('\''https://raw.githubusercontent.com/username/project/main/config.json'\'').json();\\n//   \\n//   // Increase concurrency during off-peak hours\\n//   // NOTE: Imagine we'\''re targetting a small server, that can be slower during the day\\n//   const hours = new Date().getUTCHours();\\n//   const isOffPeak = hours < 6 || hours > 20;\\n//   config.maxConcurrency = isOffPeak ? 8 : 3;\\n//   \\n//   return config;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "startUrlsFromFunction": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Create and load URLs from a Dataset by combining multiple fields\\n//   const dataset = await io.openDataset(datasetNameOrId);\\n//   const data = await dataset.getData();\\n//   const urls = data.items.map((item) => `https://example.com/u/${item.userId}/list/${item.listId}`);\\n//   return urls;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestMaxEntries": 50,
  "requestTransform": "\\n/**\\n * Inputs:\\n * `request` - Request holding URL to be scraped.\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async (request, { io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Tag requests\\n//   // (maybe because we use RequestQueue that pools multiple scrapers)\\n//   request.userData.tag = \\"VARIANT_A\\";\\n//   return requestQueue;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestTransformBefore": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code BEFORE requests are processed.\\n//   state.categories = await sendRequest.get('\''https://example.com/my-categories'\'').json();\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestTransformAfter": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code AFTER requests are processed.\\n//   delete state.categories;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestFilter": "\\n/**\\n * Inputs:\\n * `request` - Request holding URL to be scraped.\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async (request, { io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Filter requests based on their tag\\n//   // (maybe because we use RequestQueue that pools multiple scrapers)\\n//   return request.userData.tag === \\"VARIANT_A\\";\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestFilterBefore": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code BEFORE requests are processed.\\n//   state.categories = await sendRequest.get('\''https://example.com/my-categories'\'').json();\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "requestFilterAfter": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code AFTER requests are processed.\\n//   delete state.categories;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputMaxEntries": 50,
  "outputTransform": "\\n/**\\n * Inputs:\\n * `entry` - Scraped entry.\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Add extra custom fields like aggregates\\n//   return {\\n//     ...entry,\\n//     imagesCount: entry.images.length,\\n//   };\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputTransformBefore": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code BEFORE entries are scraped.\\n//   state.categories = await sendRequest.get('\''https://example.com/my-categories'\'').json();\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputTransformAfter": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code AFTER entries are scraped.\\n//   delete state.categories;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputFilter": "\\n/**\\n * Inputs:\\n * `entry` - Scraped entry.\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async (entry, { io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Filter entries based on number of images they have (at least 5)\\n//   return entry.images.length > 5;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputFilterBefore": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code BEFORE entries are scraped.\\n//   state.categories = await sendRequest.get('\''https://example.com/my-categories'\'').json();\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "outputFilterAfter": "\\n/**\\n * Inputs:\\n *\\n * `ctx.io` - Apify Actor class, see https://docs.apify.com/sdk/js/reference/class/Actor.\\n * `ctx.input` - The input object that was passed to this Actor.\\n * `ctx.state` - An object you can use to persist state across all your custom functions.\\n * `ctx.sendRequest` - Fetch remote data. Uses '\''got-scraping'\'', same as Apify'\''s `sendRequest`.\\n *                       See https://crawlee.dev/docs/guides/got-scraping\\n * `ctx.itemCacheKey` - A function you can use to get cacheID for current `entry`.\\n *                        It takes the entry itself, and a list of properties to be used for hashing.\\n *                        By default, you should pass `input.cachePrimaryKeys` to it.\\n *\\n */\\n// async ({ io, input, state, sendRequest, itemCacheKey }) => {\\n//   // Example: Fetch data or run code AFTER entries are scraped.\\n//   delete state.categories;\\n//\\n//   /* ========== SEE BELOW FOR MORE EXAMPLES ========= */\\n//\\n//   /**\\n//    * ======= ACCESSING DATASET ========\\n//    * To save/load/access entries in Dataset.\\n//    * Docs:\\n//    * - https://docs.apify.com/platform/storage/dataset\\n//    * - https://docs.apify.com/sdk/js/docs/guides/result-storage#dataset\\n//    * - https://docs.apify.com/sdk/js/docs/examples/map-and-reduce\\n//    */\\n//   // const dataset = await io.openDataset('\''MyDatasetId'\'');\\n//   // const info = await dataset.getInfo();\\n//   // console.log(info.itemCount);\\n//   // // => 0\\n//\\n//   /**\\n//    * ======= ACCESSING REMOTE DATA ========\\n//    * Use `sendRequest` to get data from the internet:\\n//    * Docs:\\n//    * - https://github.com/apify/got-scraping\\n//    */\\n//   // const catFact = await sendRequest.get('\''https://cat-fact.herokuapp.com/facts/5887e1d85c873e0011036889'\'').json();\\n//   // console.log(catFact.text);\\n//   // // => \\"Cats make about 100 different sounds. Dogs make only about 10.\\",\\n//\\n//   /**\\n//    * ======= USING CACHE ========\\n//    * To save the entry to the KeyValue cache (or retrieve it), you can use\\n//    * `itemCacheKey` to create the entry'\''s ID for you:\\n//    */\\n//   // const cacheId = itemCacheKey(item, input.cachePrimaryKeys);\\n//   // const cache = await io.openKeyValueStore('\''MyStoreId'\'');\\n//   // cache.setValue(cacheId, entry);\\n// };",
  "maxRequestRetries": 3,
  "maxRequestsPerMinute": 120,
  "minConcurrency": 1,
  "requestHandlerTimeoutSecs": 180,
  "logLevel": "info",
  "errorReportingDatasetId": "REPORTING"
}' |
apify call jurooravec/profesia-sk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jurooravec/profesia-sk-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/xLwYqj7sxMcGRcYZt/builds/7grtoI4EQtsCWRNlh/openapi.json
