{
  "openapi": "3.0.1",
  "info": {
    "title": "Alpha.ch + Topjobs.ch Scraper - Swiss JobCloud Vertical Boards",
    "description": "Scrape Swiss job listings from alpha.ch or topjobs.ch (JobCloud/Netiva family, shared inventory ~4,700 jobs). 41 fields: title, company, canton, coordinates, workload, salary, contact, apply URL, full description in 4 formats. DE/FR/IT/EN. Pay-per-result.",
    "version": "0.1",
    "x-build-id": "11zmOIUMuo3PpDT1g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/santamaria-automations~alpha-topjobs-ch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-santamaria-automations-alpha-topjobs-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/santamaria-automations~alpha-topjobs-ch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-santamaria-automations-alpha-topjobs-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/santamaria-automations~alpha-topjobs-ch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-santamaria-automations-alpha-topjobs-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": {
          "host": {
            "title": "Job Board Host",
            "enum": [
              "alpha.ch",
              "topjobs.ch"
            ],
            "type": "string",
            "description": "Which JobCloud portal to scrape. Both hosts share the same Netiva backend and return identical job data — the difference is only the branding/URL used in the output job_url. Pick 'alpha.ch' for jobs surfaced under alpha.ch branding, 'topjobs.ch' for topjobs.ch branding.",
            "default": "alpha.ch"
          },
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "One or more search keywords. Each keyword runs as a separate search. Results are deduplicated across queries. Leave empty (or supply a single '' entry) to scrape all listings.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Paste one or more alpha.ch / topjobs.ch search URLs with pre-applied filters (e.g. https://www.alpha.ch/de/jobs?tag=632&region=105). The actor extracts host, language, category tags, region IDs, and workload directly from the URL.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (alias for Search URLs)",
            "type": "array",
            "description": "Alias for searchUrls (Apify convention). Behaves identically. Provided for compatibility with Apify tools that inject startUrls.",
            "items": {
              "type": "string"
            }
          },
          "directUrls": {
            "title": "Direct Job URLs",
            "type": "array",
            "description": "List of alpha.ch or topjobs.ch job detail URLs (e.g. https://www.alpha.ch/de/jobs/14727114). Skips search and scrapes each URL directly. Useful for still-alive checks or targeted re-scrapes.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "de",
              "fr",
              "it",
              "en"
            ],
            "type": "string",
            "description": "Interface language for API responses. Note: listing content itself is in the source language (usually German). This affects URL paths and translation of UI labels only.",
            "default": "de"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "How to order results. 'newest' = most recently posted first (default; recommended for scheduled scrapes). 'relevance' = default keyword-ranking (best for one-off keyword searches — used automatically when a search query is supplied).",
            "default": "newest"
          },
          "categoryTags": {
            "title": "Category Tag IDs",
            "type": "array",
            "description": "Filter by JobCloud category tag IDs (see /Api/Filter/GetFilterTree). Examples: 626=Administration/HR, 627=Finanzen, 628=Banking, 630=Marketing, 632=Informatik, 636=Bau/Architektur, 638=Medizin/Pflege. Multiple values combine as OR.",
            "items": {
              "type": "string"
            }
          },
          "regionIds": {
            "title": "Region IDs",
            "type": "array",
            "description": "Filter by JobCloud region IDs. Examples: 103=Stadt Zürich, 105=Deutschschweiz, 108=Region Basel, 109=Region Bern, 111=Region Genf, 121=Westschweiz. See sitemap on alpha.ch/topjobs.ch for the full list. Multiple values combine as OR.",
            "items": {
              "type": "string"
            }
          },
          "workload": {
            "title": "Workload Range (Pensum %)",
            "type": "string",
            "description": "Workload range like '80-100' or '50-100'. Empty means all workloads (0-100).",
            "default": ""
          },
          "includeJobDetails": {
            "title": "Include Job Details",
            "type": "boolean",
            "description": "Fetch full job descriptions from the /GetById detail endpoint. When enabled, populates description_full/snippet/html/md, tags, employment_type, workload, contact person, apply URL, requirements, benefits. Disable for fast SERP-only scrapes (~30% faster, no PPE detail charge).",
            "default": true
          },
          "maxResults": {
            "title": "Max Total Results",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap across all queries. Set to 0 for unlimited (per-query limited by maxResultsPerQuery). The platform has ~4,700 total active listings.",
            "default": 0
          },
          "maxResultsPerQuery": {
            "title": "Max Results per Query",
            "minimum": 0,
            "type": "integer",
            "description": "Cap per keyword. Example: 100 results × 3 queries = up to 300 items total (deduplicated). Set to 0 for unlimited per query.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max Concurrent Detail Requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of detail pages to fetch in parallel when includeJobDetails is enabled. Higher = faster but more proxy bandwidth. 1 = sequential.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings. The Netiva public API works from datacenter; residential is optional. Leave defaults for auto-proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}