{
  "openapi": "3.0.1",
  "info": {
    "title": "Duunitori Jobs Scraper — Finland Job Listings API",
    "description": "Scrape job listings from Duunitori.fi, Finland's largest job board. Keyword and city search, recruiter emails & phones, salary mentions, remote/hybrid detection, daily new-job alerts.",
    "version": "0.1",
    "x-build-id": "uegOlcJZWVs6UfkdU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/spotless_studios~duunitori-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-spotless_studios-duunitori-jobs-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/spotless_studios~duunitori-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-spotless_studios-duunitori-jobs-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/spotless_studios~duunitori-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-spotless_studios-duunitori-jobs-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Job titles, skills, or companies (Finnish or English), e.g. python, myyjä, sairaanhoitaja. Each term runs as its own search. Empty = all jobs.",
            "default": [
              "python"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities or regions, e.g. Helsinki, Espoo, Tampere, Uusimaa. Combined with every search term. Empty = all of Finland.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only jobs posted recently. Stops paging early, so runs stay fast and cheap."
          },
          "companies": {
            "title": "Only these companies",
            "type": "array",
            "description": "Keep jobs whose company name contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "excludeCompanies": {
            "title": "Exclude companies",
            "type": "array",
            "description": "Drop jobs from these companies or staffing agencies.",
            "items": {
              "type": "string"
            }
          },
          "workMode": {
            "title": "Work mode",
            "enum": [
              "any",
              "remote",
              "hybrid",
              "remoteOrHybrid",
              "onsite"
            ],
            "type": "string",
            "description": "Detected from the job text (etätyö, hybridi, remote, on-site…).",
            "default": "any"
          },
          "employmentTypes": {
            "title": "Employment types",
            "type": "array",
            "description": "Keep jobs mentioning any of these types.",
            "items": {
              "type": "string",
              "enum": [
                "full-time",
                "part-time",
                "permanent",
                "fixed-term",
                "summer",
                "internship",
                "gig"
              ],
              "enumTitles": [
                "Full-time",
                "Part-time",
                "Permanent",
                "Fixed-term",
                "Summer job",
                "Internship / trainee",
                "Gig / freelance"
              ]
            }
          },
          "language": {
            "title": "Posting language",
            "enum": [
              "any",
              "fi",
              "en"
            ],
            "type": "string",
            "description": "Filter by the language the ad is written in.",
            "default": "any"
          },
          "requireContactInfo": {
            "title": "Only jobs with a contact email or phone",
            "type": "boolean",
            "description": "Keep only ads that include a recruiter email or phone number in the text.",
            "default": false
          },
          "requireSalaryInfo": {
            "title": "Only jobs that mention salary",
            "type": "boolean",
            "description": "Keep only ads with a salary figure in the text.",
            "default": false
          },
          "jobUrls": {
            "title": "Direct job URLs or slugs",
            "type": "array",
            "description": "Fetch specific Duunitori job postings directly by URL (https://duunitori.fi/tyopaikat/tyo/...) or slug.",
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Include keywords",
            "type": "array",
            "description": "Keep jobs whose title, company, location, or description contains these words. Use /regex/ for patterns.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop jobs containing any of these words or /regex/, e.g. senior, /harjoittel/.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Include keyword logic",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Require any or all include keywords.",
            "default": "any"
          },
          "onlyNewItems": {
            "title": "Only new jobs (monitoring mode)",
            "type": "boolean",
            "description": "Remember jobs from previous runs and save only new ones. Schedule it for a daily job alert.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate memory per saved search, e.g. 'helsinki-python'.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max jobs",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after saving this many jobs.",
            "default": 50
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "Contact, salary, and work-mode detection always use the full text, even when this is off.",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate descriptions to this many characters. 0 keeps full text.",
            "default": 0
          },
          "outputPreset": {
            "title": "Data preset",
            "enum": [
              "full",
              "lean",
              "contacts"
            ],
            "type": "string",
            "description": "Quickly choose how much data to save per record: full record, lean summary, or contact & social links only.",
            "default": "full"
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Save only these fields, in this order (e.g. title, company, location, url, contactEmails). Supports nested dot-paths (e.g. makers.username). Empty keeps all fields from the selected preset.",
            "items": {
              "type": "string"
            }
          },
          "excludeFields": {
            "title": "Exclude fields",
            "type": "array",
            "description": "Remove specific fields (or nested dot-paths) from each saved record to keep datasets compact.",
            "items": {
              "type": "string"
            }
          },
          "includeEmptyFields": {
            "title": "Keep empty / null fields",
            "type": "boolean",
            "description": "When turned off, strips null, empty strings, empty arrays, and empty objects from every saved record.",
            "default": true
          },
          "requiredFields": {
            "title": "Required non-empty fields",
            "type": "array",
            "description": "Only save (and only pay for) records where every listed field or dot-path has a non-empty value (e.g. website, inquiryEmail).",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "type": "integer",
            "description": "Each page holds 100 jobs.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Search queries run in parallel.",
            "default": 4
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff on timeouts, 429, and 5xx responses.",
            "default": 4
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Abort a request that takes longer than this.",
            "default": 45
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal use. Enable for very large or frequent runs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "proxyEscalation": {
            "title": "Auto-escalate proxies when blocked",
            "type": "boolean",
            "description": "If the site blocks the run, automatically step up from a direct connection to Apify datacenter proxy, then residential proxy, only for the blocked site. Turn off to use exactly the proxy above.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}