← blog  /  scrapers

jobs.ch jobs in Python: the workload is a range, and the start date is not a start date

2026-11-28  ·  6 min read  ·  scrapers

A jobs.ch search page carries its 20 jobs as data. Half or more give the workload as a range, 80 to 100 % most often. The job pages add structured data for search engines, but it seldom has a pay figure and a start date that is the posting date plus 30 days. How to read both, and what to keep.

jobs.ch is a big Swiss job board, and jobup.ch is its French-language sister site. Their search pages carry the jobs as JSON in the page itself: a script sets __INIT__ to the state the page was built from, so no browser and no login are needed. robots.txt leaves the search pages (with ?page=) and the job pages open and closes /api/. It asks for no pause between requests; we wait 3 seconds anyway.

On 1 November 2026 we read three pages each of three searches, Python, data analyst and Pflege (German for nursing care), and 20 of the job pages they link to.

The short version#

  • 20 jobs a page, plus the total: 508 jobs for Python, 154 for data analyst, 5,979 for Pflege.
  • The workload is often a range. Swiss ads give the hours as a percentage of a full week, and often as two numbers. A range in 65 % of the Python jobs, 48 % of data analyst and 73 % of Pflege; 80 to 100 % was the most common workload in two of the three searches. Fewer than a third of the titles show the percentage, so read the field, not the title.
  • The job pages' structured data adds less than it seems: 19 of 20 had a baseSalary in francs with no amount, and on the same 19 the jobStartDate was exactly 30 days after datePosted.
  • The same job can turn up on two pages: 6 of the 60 data analyst rows were repeats. Keep the job id and drop doubles.

The code#

jobs.ch and jobup.ch search results as rows, with the workload rangepython
import json, re, time, urllib.parse, urllib.request

UA = {"User-Agent": "jobs-reader/1.0 (you@example.com)"}
TYPE = {"1": "temporary", "3": "internship", "5": "permanent"}   # employmentTypeIds, checked against job pages
SITES = {"jobs.ch": "https://www.jobs.ch/en/vacancies/",          # jobup.ch: the French-language site,
         "jobup.ch": "https://www.jobup.ch/en/jobs/"}             # same pages under another path


def get(url):
    req = urllib.request.Request(url, headers=UA)
    return urllib.request.urlopen(req, timeout=30).read().decode("utf-8", "replace")


def page_state(html):
    """The page's own data: a JSON object after `__INIT__ =` in a script tag."""
    start = html.index("{", html.index("__INIT__"))
    return json.JSONDecoder().raw_decode(html[start:])[0]


def row(job, site="jobs.ch"):
    low, high = job["employmentGrades"]
    return {"id": job["id"], "title": job["title"], "company": job["company"]["name"], "place": job["place"],
            "workload_min": low, "workload_max": high,
            "type": [TYPE.get(t, f"code {t}") for t in job["employmentTypeIds"]],
            "published": job["publicationDate"][:10], "first_published": job["initialPublicationDate"][:10],
            "url": SITES[site] + f"detail/{job['id']}/"}


def search(term, pages=1, site="jobs.ch", pause=3):
    """Jobs from a jobs.ch or jobup.ch search: (total found, rows), 20 a page, each job once."""
    total, rows = 0, {}
    for n in range(1, pages + 1):
        query = {"term": term, **({"page": n} if n > 1 else {})}
        main = page_state(get(SITES[site] + "?" + urllib.parse.urlencode(query)))
        main = main["vacancy"]["results"]["main"]
        total = total or main["meta"]["totalHits"]
        for job in main["results"]:
            rows.setdefault(job["id"], row(job, site))
        time.sleep(pause)
    return total, list(rows.values())


def job_posting(url):
    """The schema.org JobPosting that a job page carries for search engines (None if it has none)."""
    for block in re.findall(r'<script type="application/ld\+json"[^>]*>(.*?)</script>', get(url), re.S):
        data = json.loads(block)
        if isinstance(data, dict) and data.get("@type") == "JobPosting":
            return data
    return None
Run itpython
total, rows = search("python")
print(total, "jobs found;", len(rows), "on page 1")
print(rows[0])
print("jobup.ch:", search("python", site="jobup.ch")[0], "jobs found")

It printed 508 jobs found, 20 on page 1, and the first row: an internship as mechatronics engineer at VAT Vakuumventile in Haag, 100 %, posted that day. Its type code says temporary although the title says internship, so look for internships in the title as well. With site="jobup.ch" the same search found 313 jobs on jobup.ch.

Keep both ends of the workload#

employmentGrades is a pair: [80, 100] means the employer takes anyone from four days a week to five. Store it as two columns, workload_min and workload_max, and filter on the end that matters: someone who wants part time looks for workload_min of 60 or less, someone who wants full time for workload_max of 100. A single number loses that. Keep only the higher one and every 60 to 100 % job looks full time; keep only the lower one and it drops out of full-time searches.

What the job pages' structured data says#

Each job page carries a schema.org JobPosting for search engines. It looks like more data than the search row. In our 20 pages:

  1. baseSalary named the currency, CHF, and no amount, on 19 pages. The 20th had a JobPosting of another shape, without baseSalary, workHours or jobStartDate. No search row or JobPosting we read had a pay figure. Read again on 17 November 2026, 1 of 19 baseSalary fields had an amount: keep it when it is there, and expect most to be empty.
  2. workHours is the workload times 42 hours, the same range in other units: 80 to 100 % reads "33.6 - 42 hours/week". It matched that sum on all 19 pages that had it.
  3. jobStartDate was exactly 30 days after datePosted on all 19. Treat it as a filler, not as the day the job starts.
  4. totalJobOpenings went from 1 to 114 on single ads, and two ads of the same company showed 93 and 114. We did not find out what it counts, so row() leaves it out.

The employment type is in the search row as a code. 1 is temporary, 3 internship and 5 permanent: on the 19 pages, the JobPosting's employmentType agreed with the code every time. We also saw codes 2 and 6 and did not map them, so row() keeps them as code 2 and code 6. 14 of the 54 data analyst jobs had no type at all.

Which date is the job's age#

A row has two dates. first_published is when the ad first went up; published is the date the page shows, which is later when the ad was put up again. In the data analyst search, 5 of the 54 jobs showed a date more than a day after their first one. Sort by first_published if you want the age.

Every day, at scale#

For many searches on a schedule, our Jobs.ch & Jobup.ch Scraper on Apify does the reading. Search by keyword and place, or paste search links. Each job comes back with title, company, address, canton, workload percent, employment type, position and posting dates, and with posting details on, which is the default, also industry, category, skills, benefits, the employer's website and the description. It is billed per result.

written