{
  "openapi": "3.0.1",
  "info": {
    "title": "Jobs.ch Scraper",
    "description": "Jobs.ch scraper for Swiss jobs: search by keyword, location, workload % and contract type; get company, canton, workload range, contract type, first publication date, required languages and published CHF salary. Removes reposts; monitor mode alerts only on genuinely new jobs.",
    "version": "0.1",
    "x-build-id": "kKhRgynSnVgwZxpgW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datahamster~jobs-ch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datahamster-jobs-ch-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/datahamster~jobs-ch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datahamster-jobs-ch-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/datahamster~jobs-ch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datahamster-jobs-ch-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": {
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results (you are charged only for pushed items)",
            "default": 100
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrape",
              "monitor"
            ],
            "type": "string",
            "description": "scrape = full results; monitor = only new/changed items since the previous run of this task",
            "default": "scrape"
          },
          "monitorStateId": {
            "title": "Monitor state id",
            "type": "string",
            "description": "Optional state id when not running as a saved task (monitor mode)"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST a change summary here in monitor mode"
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional: bot token for monitor-mode change summaries"
          },
          "telegramChatId": {
            "title": "Telegram chat id",
            "type": "string",
            "description": "Optional: chat id that receives monitor-mode summaries"
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Job keywords, one per line, e.g. \"python\", \"Pflegefachperson\", \"comptable\". Each keyword is its own search. Leave empty to list all jobs of a location or contract type.",
            "default": [
              "python"
            ],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City or region the way jobs.ch spells it, e.g. \"Zürich\", \"Bern\", \"Genève\", \"Lausanne\". Empty = all of Switzerland.",
            "default": ""
          },
          "workloadMin": {
            "title": "Workload from (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum workload (Pensum) in %, e.g. 80. jobs.ch's own filter: jobs whose range overlaps yours match."
          },
          "workloadMax": {
            "title": "Workload to (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum workload (Pensum) in %, e.g. 60 for part-time."
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Only these contract types. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "permanent",
                "temporary",
                "freelance",
                "internship",
                "apprenticeship",
                "supplementary-income"
              ],
              "enumTitles": [
                "Permanent position",
                "Temporary",
                "Freelance",
                "Internship",
                "Apprenticeship",
                "Supplementary income"
              ]
            },
            "default": []
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "any",
              "1d",
              "3d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "jobs.ch's date filter. It uses the last publication date, so refreshed old ads match too; use excludeRepublished or monitor mode for jobs that are really new.",
            "default": "any"
          },
          "requiredLanguages": {
            "title": "Required languages",
            "type": "array",
            "description": "Keep only jobs whose job page lists all of these languages, e.g. [\"en\"]. Reads every job page (turns on includeDetails).",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "de",
                "fr",
                "it",
                "gsw",
                "es",
                "pt",
                "rm"
              ],
              "enumTitles": [
                "English",
                "German",
                "French",
                "Italian",
                "Swiss German",
                "Spanish",
                "Portuguese",
                "Romansh"
              ]
            },
            "default": []
          },
          "titleFilter": {
            "title": "Title must contain",
            "type": "array",
            "description": "Keep only jobs whose title contains at least one of these words (case-insensitive), e.g. [\"python\", \"data engineer\"]. jobs.ch's search always returns jobs, even unrelated ones; filtered jobs are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeRepublished": {
            "title": "Skip refreshed ads",
            "type": "boolean",
            "description": "true = drop ads the employer refreshed more than 24 hours after they first went online (republished: true).",
            "default": false
          },
          "dedupeReposts": {
            "title": "Remove reposts",
            "type": "boolean",
            "description": "true = the same employer, title and place under another job id is returned once (and is not new in monitor mode).",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Site sort order. Monitor mode always sorts by date.",
            "default": "relevance"
          },
          "siteLanguage": {
            "title": "Site language",
            "enum": [
              "en",
              "de",
              "fr"
            ],
            "type": "string",
            "description": "Language of the jobs.ch URLs and labels (contract type, languages). Job titles and descriptions stay as the employer wrote them.",
            "default": "en"
          },
          "includeDetails": {
            "title": "Include job page",
            "type": "boolean",
            "description": "true = open every job page for the required languages, published salary (parsed and normalised to a year), work hours, category, industry, application deadline and start date. One extra request per job. No description text unless includeDescription is on.",
            "default": false
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "true = also return the job description (opens the job page). The employer's closing apply passage is cut (applyTextRemoved: true) and remaining contact names, e-mails and phone numbers are removed by rules, which can miss an unusual layout.",
            "default": false
          },
          "maxResultsPerQuery": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Jobs read per keyword. Empty = 100 in scrape mode and 200 (10 pages) in monitor mode. In monitor mode this is how deep one run reads; a larger backlog of new jobs follows in the next runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}