# Canada Job Bank Postings — Open Data (Monthly) (`dojito/canada-job-bank-open-data`) Actor

Unofficial. Canada Job Bank job postings from the government's monthly open data (OGL): filter by NOC, province, city, keywords, hourly wage, NAICS. Monthly, not real-time; never touches jobbank.gc.ca. $0.50 per 1,000 postings + $0.005 per run.

- **URL**: https://apify.com/dojito/canada-job-bank-open-data.md
- **Developed by:** [Dongjin Kim](https://apify.com/dojito) (community)
- **Categories:** Jobs, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 job postings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

**Monthly government open data — not real-time.** Each file covers one calendar month and is published a few days after the month ends, so the newest postings you get are a few days to about five weeks old.

## Canada Job Bank Postings — Open Data (Monthly)

Search the job postings advertised on Canada's national Job Bank, using the **Government of Canada's own monthly open-data files** (Employment and Social Development Canada, [Open Government Licence – Canada](https://open.canada.ca/en/open-government-licence-canada)). Filter by **NOC 2021 occupation code, province, city, job-title keywords, minimum hourly wage, NAICS sector and posting source**, and get one clean row per posting with every column the government publishes, plus normalized hourly and annual wages.

Typical uses: LMIA and immigration research by occupation (NOC), wage benchmarking by city, labour-market dashboards, recruiting-market sizing, academic work.

This is an unofficial, informational extract of open data — not immigration, legal or hiring advice. For official wage requirements (for example LMIA prevailing wages) use ESDC's own sources.

### What it does

1. Reads the dataset's file list from the open-data portal's CKAN API (`open.canada.ca/data/api/action/package_show`).
2. Picks the month you ask for (default: the latest published) in English or French.
3. Streams that month's CSV (50–65 MB, 50,000–100,000 postings) — never loads the whole file into memory — and keeps the postings that match your filters.
4. Pushes one row per matching posting, with a `RUN_REPORT` that says which file and month were used.

### Why open data instead of scraping jobbank.gc.ca

The Job Bank website's [terms of use](https://www.jobbank.gc.ca/termsofuseseeker) prohibit "the use of any script, robot, spider, Web crawler, screen scraper" on the site. This actor **never contacts jobbank.gc.ca** (or guichetemplois.gc.ca). It only reads the files the government publishes for reuse on open.canada.ca, under a licence that allows commercial use with attribution. The trade-off is freshness: the data is monthly, not live.

Requests per run: `robots.txt` and the catalogue on open.canada.ca, then the file's download link, which the portal redirects to its own file store (`opencanada.blob.core.windows.net`). open.canada.ca's robots.txt asks for **20 seconds between requests**, and the actor waits that long — so every run takes at least ~45 seconds, even for a few rows.

### Input

| Field | What it does |
|---|---|
| `month` | `latest` (default) or `YYYY-MM`, from `2023-01`. If that month has no file yet (or no file in the chosen language — e.g. the French April 2026 link is missing on the portal), the closest earlier month is used and the run report says so. |
| `language` | `en` (default) or `fr` — the government publishes the same postings in both. Text values follow the file language; output field names are always English. |
| `nocCodes` | NOC 2021 codes or prefixes: `21231`, `2123`, `3`. |
| `provinces` | `ON`, `QC`, `BC` … or names in English or French. |
| `cities` | Exact city names, case and accents ignored (`Montreal` = `Montréal`). `Toronto` does not include `North York`, `Scarborough` or `Etobicoke` — list them if you want them. |
| `keywords` | Matches if any keyword appears in the job title or the original job title. |
| `minHourlyWage` | CAD per hour, compared with the normalized minimum of the posted range. Postings without a salary, or with an implausible figure (below $8 or above $300 an hour after normalization — almost always a typo), are left out when this is set. |
| `naicsCodes` | NAICS Canada sector codes (`72`, `62`, `31-33`, `5613`) or names (`construction`). The file gives sectors, not 6-digit industries. |
| `postingSource` | `all` (default), `jobBank` (posted on Job Bank by employers) or `external` (shared by partner job boards — fewer fields). |
| `maxItems` | Most rows to return (default 1,000, maximum 200,000). |

#### Example: software engineers (NOC 21231) in Toronto, latest month

```json
{
  "month": "latest",
  "nocCodes": ["21231"],
  "cities": ["Toronto"]
}
```

#### Real results, October 2026 English file (59,130 postings, 52.3 MB)

Run locally on 2026-11-15 with the same code that runs on Apify:

| Filter | Rows | Run time | Peak memory (process) |
|---|---|---|---|
| `nocCodes: ["21231"]` (all of Canada) | 86 | 48.7 s | 28 MB |
| `provinces: ["ON"], cities: ["Toronto"]` | 1,813 | 45.4 s | 32 MB |
| `minHourlyWage: 40` | 9,740 | 47.2 s | 30 MB |
| `nocCodes: ["21231"], cities: ["Toronto"]` | 17 | 48.9 s | 28 MB |
| no filter, `maxItems` 1,000 (stops early) | 1,000 | 45.0 s | 32 MB |
| no filter, whole file | 59,130 | 49.6 s | 32 MB |

About 40 s of every run is the polite wait open.canada.ca asks for; reading and filtering the whole file takes about 1–5 s on a laptop. On Apify, writing many rows takes longer — see Speed and cost below.

### Output

One row per posting. Every column of the government file is kept (`NA` → `null`, dates as `YYYY-MM-DD`, numbers as numbers, Yes/No/Oui/Non flags as `true`/`false`). Real example from the October 2026 file (trimmed — `NOC 21231`, Toronto):

```json
{
  "postingId": "15959491",
  "jobTitle": "artificial intelligence (ai) software engineer",
  "nocCode": "21231",
  "nocTitle": "Software engineers and designers",
  "firstPostingDate": "2026-10-14",
  "vacancyCount": 1,
  "educationLevel": "Master's degree",
  "experienceLevel": "3 years to less than 5 years",
  "naics": "Information and cultural industries",
  "province": "Ontario",
  "provinceCode": "ON",
  "city": "Toronto",
  "economicRegion": "Toronto Region",
  "employmentType": "Full time",
  "employmentTerm": "Permanent employment",
  "salaryDetail": "$125,800.00 to $157,300.00 annually (to be negotiated)",
  "salaryPer": "Year",
  "salaryMinimum": 125800,
  "salaryMaximum": 157300,
  "hoursPer": "Week",
  "hoursMinimum": 36.25,
  "hourlyWageMin": 66.74,
  "hourlyWageMax": 83.45,
  "annualWageMin": 125800,
  "annualWageMax": 157300,
  "wageBasis": "posting hours",
  "wageBasisHoursPerWeek": 36.25,
  "wageImplausible": false,
  "postedOn": "jobBank",
  "naicsCode": "51",
  "workConditions": [
    "Day"
  ],
  "sourceMonth": "2026-10",
  "sourceLanguage": "en",
  "sourceResourceUrl": "https://open.canada.ca/data/dataset/ea639e28-c0fc-48bf-b5dd-b8899bd43072/resource/271cca4e-ddd6-44b1-a6a1-c105f6a2afa2/download/job-bank-open-data-all-job-postings-en-oct2026.csv",
  "licence": "Contains information licensed under the Open Government Licence – Canada.",
  "licenceUrl": "https://open.canada.ca/en/open-government-licence-canada"
}
```

#### Column dictionary (headers exactly as in the government files)

Kind: text · number · date (`YYYY-MM-DD`) · flag (`true` / `false`).

| Output field | English header | French header | Kind |
|---|---|---|---|
| `postingId` | WIC Job Location Snapshot ID | ID WIC Lieu emploi | text |
| `jobTitle` | Job Title | Appellation d'emploi | text |
| `originalJobTitle` | Original Job Title | Appellation affichée sur Source | text |
| `noc2016Code` | NOC 2016 Code | Code CNP 2016 | text |
| `noc2016Title` | NOC 2016 Code Name | Code CNP 2016 nom | text |
| `nocCode` | NOC21 Code | Code CNP 2021 | text |
| `nocTitle` | NOC21 Code Name | Code CNP21 nom | text |
| `externalIndicator` | External Indicator | Indicateur Source Externe | text |
| `firstPostingDate` | First Posting Date | Date initiale affichage de l'offre d'emploi | date |
| `vacancyCount` | Vacancy Count | Nombre de postes vacants | number |
| `officialLanguage` | Official Language | Langue officielle | text |
| `educationLevel` | Education LOS | Éducation Niveau d'études | text |
| `experienceLevel` | Experience Level | Niveau d'expérience | text |
| `governmentType` | Government Type | Niveau gouvernemental | text |
| `placementAgency` | Placement Agency | Agence de placement | flag |
| `naics` | NAICS | SCIAN | text |
| `province` | Province/Territory | Provinces/Territoires | text |
| `city` | City | Ville | text |
| `postalCode` | Work Location Postal Code | Lieu de travail Code postal | text |
| `economicRegion` | Economic  Region | Région économique | text |
| `variousLocations` | Various Location | Divers lieux de travail | flag |
| `employmentType` | Employment Type | Période d'emploi | text |
| `employmentTerm` | Employment Term | Conditions d'emploi | text |
| `termStartDate` | Employment Term Start Date | Date de début de l’emploi | date |
| `termEndDate` | Employment Term End Date | Conditions d'emploi Date de fin | date |
| `termOnCall` | Employment Term Oncall | Conditions d'emploi Sur Appel | flag |
| `termOvertime` | Employment Term Overtime | Conditions d'emploi Heures supplémentaires | flag |
| `termDay` | Employment Term Day | Conditions d'emploi Jour | flag |
| `termEvening` | Employment Term Evening | Conditions d'emploi Soir | flag |
| `termShift` | Employment Term Shift | Conditions d'emploi Quart de travail | flag |
| `termWeekend` | Employment Term Weekend | Conditions d'emploi Fin de Semaine | flag |
| `termNight` | Employment Term Night | Conditions d'emploi Nuit | flag |
| `termTelework` | Employment Term Telework | Conditions d'emploi Virtuel | flag |
| `termEarlyMorning` | Employment Term Early | Conditions d'emploi Tôt le matin | flag |
| `termFlexibleHours` | Employment Term Flex | Conditions d'emploi Horaire Flexible | flag |
| `termMorning` | Employment Term Morning | Conditions d'emploi Matin | flag |
| `termToBeDetermined` | Employment Term TBD | Conditions d'emploi à déterminer | flag |
| `salaryDetail` | Salary Condition Detail | Détail Rémunération | text |
| `salaryPer` | Salary Per | Salaire par | text |
| `salaryMinimum` | Salary Minimum | Salaire Minimum | number |
| `salaryMaximum` | Salary Maximum | Salaire Maximum | number |
| `benefitCollectiveAgreement` | Salary Condition Collective | Avantages financiers Selon la convention collective | flag |
| `benefitBonus` | Salary Condition Bonus | Avantages financiers Prime | flag |
| `benefitDisability` | Salary Condition Disability | Avantages santé Prestations d’invalidité | flag |
| `benefitGratuities` | Salary Condition Gratuity | Avantage financiers Pourboires | flag |
| `benefitHealthCare` | Salary Condition Medical | Avantages santé Régime de soins de santé | flag |
| `benefitMileage` | Salary Condition Mileage | Avantage financiers Indemnité kilométrique | flag |
| `benefitPiecework` | Salary Condition Piecework | Avantage financiers À la pièce | flag |
| `benefitCommission` | Salary Condition Commission | Avantages financiers Commission | flag |
| `benefitRESP` | Salary Condition RESP | Avantage financiers REEE | flag |
| `benefitDental` | Salary Condition Dental | Avantage santé Régime soins dentaires | flag |
| `benefitGroupInsurance` | Salary Condition Group Insurance | Avantage financiers Assurance de groupe | flag |
| `benefitLifeInsurance` | Salary Condition Life Insurance | Avantage financiers Assurance-vie | flag |
| `benefitPension` | Salary Condition Pension | Avantage financiers Régime de pension | flag |
| `benefitRRSP` | Salary Condition RRSP | Avantage financiers REER | flag |
| `benefitVisionCare` | Condition Vision Care | Avantages santé Prestations des soins de la vue | flag |
| `benefitOther` | Salary Condition Other Benefits | Avantages sociaux Autres avantages | flag |
| `commissionPer` | Commission PER | À Commission | text |
| `commissionType` | Commission Type | Type de commission | text |
| `hoursPer` | Hours Per | Heures Par | text |
| `hoursMinimum` | Hours Minimum | Nombre Heures Minimum | number |
| `hoursMaximum` | Hours Maximum | Nombre Heures Maximum | number |
| `workHoursGiven` | Work Hours | Heures de travail | flag |
| `workHoursFrom` | Work Hours From Time | Heures de travail Heure de début | text |
| `workHoursTo` | Work Hours To Time | Heures de travail Heure de fin | text |

Layouts handled (checked on the files for 2023-01, 2024-03, 2024-06, 2024-07, 2024-09, 2024-11, 2025-03, 2025-09, 2025-12 and 2026-10): most months are UTF-16 tab-separated (65 columns from 2026-01, 64 before — no `Official Language`); mid-2024 files (2024-06, 2024-07, 2024-09 seen) are comma-separated UTF-8 with BOM or Windows-1252 (63 columns — no posting ID). The encoding is detected from each file's first bytes. Missing columns are `null`. A column the actor does not know yet is kept under `otherColumns` rather than dropped.

#### Added fields

| Field | Meaning |
|---|---|
| `provinceCode` | Two-letter code from the province name. |
| `naicsCode` | NAICS Canada code for the sector name in the file (e.g. `72`, `31-33`, `5613`, `814`). |
| `postedOn` | `jobBank` (External Indicator 0: posted by an employer on Job Bank) or `externalContributor` (1: shared by a partner job board). |
| `salaryPeriod` | `hour`, `day`, `week`, `biweekly`, `month`, `year`. |
| `hourlyWageMin` / `hourlyWageMax`, `annualWageMin` / `annualWageMax` | CAD. Converted with the posting's own weekly hours when given (`wageBasis: "posting hours"`), else 40 h/week (`"40 h/week assumed"`). A day is a fifth of the weekly hours. |
| `wageBasisHoursPerWeek` | The weekly hours used. |
| `wageImplausible` | `true` when the normalized hourly wage is below $8 or above $300 (e.g. "$85,980.00 hourly") — check `salaryDetail`. |
| `workConditions` | Employment-term flags that are `true` (Day, Evening, Night, Weekend, Shift, OnCall, Overtime, EarlyMorning, Morning, FlexibleHours, ToBeDetermined, Telework). |
| `postalCodeMasked` | `true` when the postal code was cut to its first three characters (see Privacy). |
| `sourceMonth`, `sourceLanguage`, `sourceResourceUrl`, `sourceDatasetUrl` | Which government file the row came from. |
| `licence`, `licenceUrl` | The attribution the licence requires — keep it when you republish. |

### Limits — read before you rely on it

- **Not real-time.** One file per month. The latest file is the previous month's.
- **Partner-board postings have fewer fields.** About 60% of postings (External Indicator 1) have no NAICS, education, experience, government type or employment-term flags.
- **Benefit columns carry no information in the published files.** In every file we checked (July 2024, October 2026) all 16 `Salary Condition …` benefit columns and `Employment Term Telework` are "No" or NA for every posting. They are passed through as published; don't read "No" as "no benefits".
- **Salary figures are as employers and feeds typed them.** Some are typos (flagged `wageImplausible`), and some partner feeds repeat one figure — e.g. $111,360 a year appeared on 3,745 October 2026 postings. Check `salaryDetail`.
- **No employer names, contacts or links.** The government file does not include them (and this actor adds none). If you need to apply, search the job title on Job Bank yourself.
- **NOC 2021 only** for the filter (`nocCode`); the older NOC 2016 code is in `noc2016Code`.
- City names are as written in the file; about 2% of postings have no city.

### Privacy

The files contain no names, e-mails or phone numbers. One field can point at a home: when the employer is a **private household** (NAICS 814 — caregivers, nannies, housekeepers), the work location is usually the family's home, so the actor keeps only the first three characters of the postal code (the forward sortation area, a wide area) and sets `postalCodeMasked: true`. Postings shared by partner job boards have no industry field, so the same masking is also applied to home child care and home support jobs (NOC 44100, 44101) that have no NAICS sector. The licence itself excludes personal information.

### Pricing

Pay per event — **$0.50 per 1,000 postings returned** on the free plan, plus **$0.005 per run**:

| Event | FREE | BRONZE | SILVER and up |
|---|---|---|---|
| `job-posting` — one posting row returned | $0.0005 | $0.00045 | $0.0004 |
| `apify-actor-start` — once per run (per GB of memory, 256 MB default = 1) | $0.005 | $0.005 | $0.005 |

Postings filtered out are free. The start fee is charged by Apify for every run, including a run that stops on an input error or because the portal cannot be reached. If the download breaks partway, the rows already returned are kept (and charged), the run still succeeds, and `RUN_REPORT.error` and the status message say where it stopped. Examples on the free plan: NOC 21231 in Toronto, October 2026 (17 rows) = $0.0135; the default 1,000 rows = $0.505; a run that matches nothing = $0.005. Use `maxItems` and Apify's "maximum cost per run" to cap spending — the actor stops cleanly at either.

Why a start fee: every run downloads and scans a whole monthly file and waits 40 s for open.canada.ca's crawl delay, which costs about $0.001 in platform usage even when only a few rows match. The start fee covers that so narrow searches stay possible.

### Speed and cost (measured on Apify, 2026-11-16, October 2026 English file)

| Input | Memory | Rows | Run time | Peak memory | Platform usage |
|---|---|---|---|---|---|
| NOC 21231 + Toronto | 256 MB | 17 | 63 s | — | $0.0011 |
| NOC 21231 (Canada) | 256 MB | 86 | 62 s | 46 MB | $0.0014 |
| no filter, default `maxItems` 1,000 | 256 MB | 1,000 | 59 s | 56 MB | $0.0059 |
| `minHourlyWage: 40` | 256 MB | 9,740 | 195 s | 67 MB | $0.052 |
| `minHourlyWage: 40` | 1,024 MB | 9,740 | 79 s | 71 MB | $0.053 |

Each returned row costs about $0.000005 in platform usage (mostly the dataset write); the fixed part of a run is about $0.001. At 256 MB rows are written at roughly 70 per second, so a whole month (50,000–100,000 postings) takes about 12–25 minutes; with 1,024 MB the 9,740-row run above took 79 s instead of 195 s. The default timeout is one hour.

### Run report

`RUN_REPORT` in the run's key-value store (free): month requested and used (with a note when it fell back), the latest month published, the file's name, resource ID, encoding, delimiter, columns and bytes read, postings scanned and matched, rows returned, events charged, every request sent (URL and status), and the licence.

### Licence and attribution

Contains information licensed under the Open Government Licence – Canada.

Licence: https://open.canada.ca/en/open-government-licence-canada. Source dataset: [Job Postings Advertised on Canada's National Job Bank Website](https://open.canada.ca/data/en/dataset/ea639e28-c0fc-48bf-b5dd-b8899bd43072), Employment and Social Development Canada.

This actor is not affiliated with, endorsed by or an official product of the Government of Canada, Employment and Social Development Canada or Job Bank. The data is provided "as is" by the government; this actor only reformats and filters it.

### FAQ

**Why is my month different from what I asked for?** That month (or its file in your language) is not on the portal yet; the actor used the closest earlier month. `RUN_REPORT.monthNote` says so.

**Can I get the whole month?** Yes — no filters and `maxItems` 200,000 (one file has 50,000–100,000 postings).

**Why does a run take a minute for 17 rows?** open.canada.ca's robots.txt asks robots to wait 20 seconds between requests, and the actor respects it.

**User agent:** `DojitoJobBankOpenData/1.0 (+https://apify.com; contact djkim@dojito.com)`.

# Actor input Schema

## `month` (type: `string`):

'latest' or YYYY-MM (e.g. 2026-10). Files exist from 2023-01. A month that is not published yet (or has no file in the chosen language) falls back to the closest earlier month — the run report says which month was used.

## `language` (type: `string`):

The government publishes an English and a French file each month with the same postings; text values (titles, province names, industry) are in that language. Output field names are always English.

## `nocCodes` (type: `array`):

National Occupational Classification 2021 codes or prefixes, e.g. 21231 (software engineers and designers), 2123 (all software and web occupations), 3 (all health occupations). Empty = all occupations.

## `provinces` (type: `array`):

Two-letter codes (ON, QC, BC, AB, SK, MB, NS, NB, NL, PE, YT, NT, NU) or names in English or French. Empty = all of Canada.

## `cities` (type: `array`):

City names as written in the file (case and accents ignored: Montreal = Montréal). Exact name, so Toronto does not include North York, Scarborough or Etobicoke — add them if you want them. About 2% of postings have no city.

## `keywords` (type: `array`):

A posting matches if ANY keyword appears in its job title or original job title (case and accents ignored), e.g. 'developer', 'nurse'.

## `minHourlyWage` (type: `number`):

Keep postings whose normalized hourly wage (minimum of the posted range) is at least this. Annual, monthly, weekly and daily salaries are converted with the posting's own hours, else 40 h/week. Postings without a salary, and postings whose posted figure is implausible (normalized below $8 or above $300 an hour — usually a typo), are dropped when this is set.

## `naicsCodes` (type: `array`):

NAICS Canada sector codes or names, e.g. 72 (accommodation and food services), 62 (health care), 31-33 (manufacturing), 5613 (employment services), or a name such as 'construction'. The file gives the sector only (not 6-digit industries). About 60% of postings (those from external job boards) have no NAICS — they are dropped when this is set.

## `postingSource` (type: `string`):

Job Bank shows postings employers create on Job Bank (these have NAICS, education, experience and work conditions) and postings shared by partner job boards through XML feeds (fewer fields).

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

Most posting rows to return (each row is one charged event). One monthly file has about 50,000–100,000 postings.

## Actor input object example

```json
{
  "month": "latest",
  "language": "en",
  "nocCodes": [
    "21231"
  ],
  "provinces": [
    "ON"
  ],
  "cities": [
    "Toronto"
  ],
  "postingSource": "all",
  "maxItems": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per posting: every column of the government CSV (NA -> null, dates ISO, numbers as numbers) plus provinceCode, naicsCode, postedOn, normalized hourly / annual wages (with a wageImplausible flag), workConditions, sourceMonth, sourceResourceUrl and the licence attribution. No employer, recruiter or contact fields exist in the source.

## `runReport` (type: `string`):

JSON: month requested / used, file name, encoding, bytes read, postings scanned / matched, rows, charged events, requests sent, licence. Free.

# 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 = {
    "month": "latest",
    "nocCodes": [
        "21231"
    ],
    "provinces": [
        "ON"
    ],
    "cities": [
        "Toronto"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dojito/canada-job-bank-open-data").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 = {
    "month": "latest",
    "nocCodes": ["21231"],
    "provinces": ["ON"],
    "cities": ["Toronto"],
}

# Run the Actor and wait for it to finish
run = client.actor("dojito/canada-job-bank-open-data").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 '{
  "month": "latest",
  "nocCodes": [
    "21231"
  ],
  "provinces": [
    "ON"
  ],
  "cities": [
    "Toronto"
  ]
}' |
apify call dojito/canada-job-bank-open-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dojito/canada-job-bank-open-data"
        }
    }
}
```

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/atxFd3SC9xbZZDzaY/builds/F1ghY2bwac81Huarv/openapi.json
