# Ontario Job Posting Compliance Checker (ESA 2026) (`workforce-data-lab/ontario-job-posting-compliance-checker`) Actor

Checks public job postings against Ontario's 2026 Employment Standards Act rules: pay range disclosure and the $50,000 range cap, existing vacancy statement, AI screening disclosure and the Canadian experience ban. Adds job family and level tags.

- **URL**: https://apify.com/workforce-data-lab/ontario-job-posting-compliance-checker.md
- **Developed by:** [Workforce Data Lab](https://apify.com/workforce-data-lab) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 posting checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

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

### What this Actor does

Since 1 January 2026, Ontario's Employment Standards Act sets rules for every publicly advertised job posting from an employer with 25 or more employees. This Actor reads job postings and tells you, posting by posting, where each one stands against those rules.

It checks five things:

1. **Pay disclosure.** Is there an expected salary or pay range? Postings for roles paying more than $200,000 a year (or with a range that tops out above $200,000) are exempt.
2. **Range width.** Is the range $50,000 a year or narrower? Hourly ranges are converted at 2,080 hours a year.
3. **Existing vacancy statement.** Does the posting say whether it is for an existing vacancy or not?
4. **AI disclosure.** Does it say whether AI is used to screen, assess or select applicants?
5. **Canadian experience.** Does it ask for Canadian experience, which the rules prohibit?

Every posting also gets a job family, sub-family, level and career track from its title (for example "Human Resources / Total Rewards / Senior / Professional (IC)"), so you can slice results the way a job architecture would.

### Who uses it

- **HR and talent acquisition teams** auditing their own live postings before an inspection or complaint finds the gaps.
- **Recruitment agencies and job boards** checking client postings at volume.
- **Employment lawyers and HR consultants** screening a client's careers page in minutes.
- **Researchers and journalists** tracking how Ontario employers are complying.

### Input

Use any mix of three sources:

- **Job posting URLs.** Company career pages, Greenhouse, Lever, SmartRecruiters and other pages that render on the server. The Actor reads schema.org JobPosting data first, then page text.
- **Posting texts.** Paste a posting as a string, or as an object with `text`, `title`, `location`, `company` and `url`.
- **A dataset from another jobs scraper.** Give the dataset ID from an Indeed, LinkedIn, Glassdoor or similar run. Title, description, salary and location fields are mapped for you. This is the best route for job boards that need a browser to render.

Turn on **Treat every posting as Ontario work** if you already know the roles are in Ontario.

### Output

One row per posting. Key fields:

| Field | Meaning |
|---|---|
| `compliance_status` | `PASS`, `FAIL`, `REVIEW` (only the AI statement is missing, which is required only if AI is used), `NOT_APPLICABLE` (work outside Ontario) or `ERROR` (page could not be fetched) |
| `issue_codes` | `PAY_MISSING`, `RANGE_TOO_WIDE`, `VACANCY_STATEMENT_MISSING`, `AI_DISCLOSURE_MISSING`, `CANADIAN_EXPERIENCE_REQUIRED` |
| `issues` | Each issue with the rule it relates to and a plain-language explanation |
| `pay_annual_min`, `pay_annual_max`, `pay_annual_range_width` | Pay annualised for the tests |
| `vacancy_statement` | `existing`, `not_existing` or `missing` |
| `ai_disclosure` | `uses_ai`, `no_ai` or `missing` |
| `job_family`, `job_sub_family`, `job_level`, `career_track` | Job architecture tags from the title |
| `caveats` | What the Actor could not confirm for this posting |

A run summary (counts by status and by issue) is saved to the key-value store as `SUMMARY`.

Example row:

```json
{
  "compliance_status": "FAIL",
  "title": "Software Developer",
  "location": "Mississauga, ON",
  "issue_codes": ["RANGE_TOO_WIDE"],
  "pay_annual_min": 80000,
  "pay_annual_max": 140000,
  "pay_annual_range_width": 60000,
  "vacancy_statement": "existing",
  "ai_disclosure": "no_ai",
  "canadian_experience_required": false,
  "job_family": "Engineering",
  "job_level": "Intermediate"
}
```

### Pricing

You pay per posting checked. Postings that fail to load are not charged.

### Limits, stated plainly

- **This is a screening tool, not legal advice.** It reads text with rules and patterns, and it will miss unusual wording. Check flagged postings by hand, and talk to employment counsel before acting on a finding.
- **Employer size is not checked.** The rules apply only to employers with 25 or more employees on the day the posting goes up.
- **Exemptions it cannot see.** General recruitment campaigns, internal-only postings and work done outside Ontario are outside the rules. Location is detected from the posting; other exemptions are not.
- **Hourly conversion is an assumption.** The regulation does not set a conversion method, so 2,080 hours a year is used.
- **Pages that need JavaScript** (some Workday and iCIMS sites) may return little text. Feed them through a jobs scraper dataset instead.
- **Data scope.** The Actor reads public job postings only and collects no personal information about applicants.

### Sources

- Ontario Regulation 476/24, Rules and Exemptions re Job Postings (ontario.ca/laws/regulation/240476)
- Your guide to the Employment Standards Act: requirements related to publicly advertised job postings (ontario.ca/ESAjobpostings)

# Actor input Schema

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

Public job posting pages (company career sites, Greenhouse, Lever, SmartRecruiters and other server-rendered pages). Pages that only render with JavaScript may return little text; feed those through the dataset option instead.

## `postings` (type: `array`):

Paste postings directly. Each item can be a plain string or an object with text, title, location, company and url.

## `datasetId` (type: `string`):

Apify dataset ID produced by any jobs scraper (Indeed, LinkedIn, Glassdoor and similar). Common fields such as title, description, salary and location are mapped automatically.

## `assumeOntario` (type: `boolean`):

Skip location detection and check every posting as an Ontario role.

## `maxItems` (type: `integer`):

Upper limit on postings checked in one run.

## `proxyConfiguration` (type: `object`):

Optional. Only needed when fetching URLs from sites that block datacenter traffic.

## Actor input object example

```json
{
  "postings": [
    {
      "title": "Senior Compensation Analyst",
      "location": "Toronto, ON",
      "text": "Salary range: $95,000 - $115,000 per year. This posting is for an existing vacancy. We use artificial intelligence to screen applications."
    }
  ],
  "assumeOntario": false,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "postings": [
        {
            "title": "Senior Compensation Analyst",
            "location": "Toronto, ON",
            "text": "Salary range: $95,000 - $115,000 per year. This posting is for an existing vacancy. We use artificial intelligence to screen applications."
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("workforce-data-lab/ontario-job-posting-compliance-checker").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 = {
    "postings": [{
            "title": "Senior Compensation Analyst",
            "location": "Toronto, ON",
            "text": "Salary range: $95,000 - $115,000 per year. This posting is for an existing vacancy. We use artificial intelligence to screen applications.",
        }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("workforce-data-lab/ontario-job-posting-compliance-checker").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 '{
  "postings": [
    {
      "title": "Senior Compensation Analyst",
      "location": "Toronto, ON",
      "text": "Salary range: $95,000 - $115,000 per year. This posting is for an existing vacancy. We use artificial intelligence to screen applications."
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call workforce-data-lab/ontario-job-posting-compliance-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,workforce-data-lab/ontario-job-posting-compliance-checker"
        }
    }
}
```

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/ymu1iru72Qi6xT25k/builds/uDGCz14MvpGZZk6bq/openapi.json
