# Canadian Job Market Scraper — Job Bank (`akhil_rajesh/canadian-jobs-scraper`) Actor

Scrape Canadian job postings from Job Bank, the Government of Canada's official job board. Search by keyword plus city, province or postal code, and get salary, employer, location, NOC code, work hours and posting dates as clean structured fields.

- **URL**: https://apify.com/akhil\_rajesh/canadian-jobs-scraper.md
- **Developed by:** [Akhil rajesh](https://apify.com/akhil_rajesh) (community)
- **Categories:** Jobs, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Canadian Job Market Scraper — Job Bank

Extract structured **Canadian job postings** from [Job Bank](https://www.jobbank.gc.ca/), the Government of Canada's official job board — with salaries, locations, NOC codes and posting dates already parsed into clean fields.

**Just enter a job keyword and a location** (e.g. `developer` / `Toronto, ON`) to get a ready-to-use table of openings. Or search all of Canada by leaving the location empty.

### What you get

| Field | Example |
|---|---|
| `title` | building maintenance worker |
| `employer` | Access Property Development |
| `city` / `province` | Hamilton / ON |
| `salaryMin` / `salaryMax` | 30.38 / 38.00 |
| `salaryPeriod` | HOUR |
| `salaryText` | $ 30.38 HOUR hourly |
| `workHours` | 42.5 hours per week |
| `employmentType` | Permanent employment Full time |
| `education` | No degree, certificate or diploma |
| `experience` | Experience an asset |
| `workArrangement` | On site |
| `nocCode` | 73201 |
| `benefits` | \["Health benefits", "Dental plan"] |
| `datePosted` / `validThrough` | 2026-09-10 / 2026-10-09 |
| `url` | https://www.jobbank.gc.ca/jobsearch/jobposting/50262992 |

### Two ways to use it

#### 1. Keyword search (easiest)

```
Job keyword:  developer
Location:     Toronto, ON
```

That's the whole input. Results come back one row per posting with salary and location pre-parsed.

#### 2. Direct posting URLs (Advanced)

Paste specific Job Bank posting URLs (or just the numeric job IDs) when you want exact records.

### Use cases

- **Job market research** — measure hiring volume and pay by city, industry or role
- **Salary benchmarking** — compare advertised pay ranges across provinces
- **Recruiting lead generation** — find employers actively hiring in a niche
- **Labour market analysis** — track demand by NOC occupation code
- **Job alerts & monitoring** — schedule a daily run and diff the results
- **AI/LLM datasets** — clean Canadian labour data for training or analysis

### Why it works

- Reads Job Bank's **structured posting data** directly, so salary, hours, education and experience come back as separate fields rather than one blob of text
- Handles **pagination** automatically across search result pages
- **Stops cleanly** at your result cap and at any per-run spending limit
- One bad posting never fails the run — it returns an error row instead
- No login, no API key: Job Bank is public Government of Canada data

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQuery` | string | **Job keyword** — e.g. `developer`, `registered nurse` |
| `location` | string | City + province (`Toronto, ON`), bare city, province (`Alberta`), or postal code. Empty = all of Canada |
| `maxResults` | int | Stop after this many postings (default 50) |
| `maxPages` | int | Search pages to walk (default 5, ~25 postings/page) |
| `sort` | string | `D` = newest first, `B` = best match |
| `distanceKm` | int | Radius around the city/postal code, 10–500 km (default 40). Widening it finds many more jobs |
| `postingUrls` | array | *Advanced:* exact posting URLs / IDs (takes priority) |
| `proxy` | proxy | *Advanced:* optional — usually unnecessary |

### Sample output

```json
{
  "url": "https://www.jobbank.gc.ca/jobsearch/jobposting/47123456",
  "jobId": "47123456",
  "title": "technical sales specialist",
  "employer": "Connectability IT Support",
  "city": "North York",
  "province": "ON",
  "postalCode": "M2N 0B6",
  "salaryMin": "41.76",
  "salaryCurrency": "CAD",
  "salaryPeriod": "HOUR",
  "salaryText": "$ 41.76 HOUR hourly / 35 hours per week",
  "workHours": "35 hours per week",
  "employmentType": "Permanent employment Full time",
  "education": "College/CEGEP",
  "experience": "2 years to less than 3 years",
  "language": "English",
  "shift": "Day",
  "nocCode": "62100",
  "workArrangement": "Hybrid",
  "datePosted": "2026-07-17",
  "validThrough": "2026-09-24",
  "benefits": ["Bonus", "Dental plan", "Health care plan", "Vision care benefits"],
  "searchQuery": "support",
  "searchLocation": "Toronto, ON",
  "source": "jobbank.gc.ca",
  "fetchEngine": "standard",
  "scrapedAt": "2026-09-11T17:15:01.400Z"
}
```

Annual-salary postings show `salaryPeriod: "YEAR"` with the same fields, e.g. `"salaryMin": "70000"`, `"salaryText": "$ 70,000 to $ 80,000 YEAR annually"`.

### Results are never thin or empty

Job Bank's matching is **literal** — `It support` is read as the phrase *"information technology support"*, and only a handful of such postings may exist in the whole country. A narrow keyword plus a small radius can therefore return very few jobs.

**The Actor widens the search automatically to fill your Max results**, instead of handing back a short or empty list — exactly like job boards that say *"no matches nearby, showing results in Ontario"*. The widening ladder (default ON):

```
within 40 km  →  within 100 km  →  within 250 km  →  entire province  →  all of Canada
```

It stops as soon as **Max results** is reached, so results stay as local as possible. Each widened row carries a **`searchScope`** field telling you how far we had to reach, e.g. `within 100 km of Toronto, ON` or `across Canada`. Rows matching your location exactly leave it empty.

Turn this off with **Widen search** in the input if you need strict location matching.

#### Getting even more results

| Do | Why |
|---|---|
| Use a **broader keyword** (`support` or `help desk` instead of `It support`) | Biggest lever — Job Bank matches phrases literally |
| Raise **Distance radius** | Starts the ladder further out |
| Leave **Location** empty | Searches all of Canada from the start |
| Raise **Max results / Max search pages** | Ladder keeps climbing until this is met |

> Example: `support` + Toronto returned **20/20 postings**. `It support` topped out at **4** — that is every such posting Job Bank has in Canada.

### Troubleshooting

| Symptom | Fix |
|---|---|
| Fewer results than expected | Job Bank caps search pagination — raise **Max search pages**, or narrow the keyword |
| `salaryMin` is null | That employer chose not to publish pay (common in some sectors). `salaryText` may still hold wording |
| A row has an `error` field | That posting was removed or temporarily unavailable — the run continues |
| No results at all | Check the keyword spelling or widen the location |

### Data source

All data comes from **Job Bank (jobbank.gc.ca)**, published by the Government of Canada. This Actor reads publicly available postings. Please respect the site's terms of use and rate limits; the Actor already throttles its requests.

> **Disclaimer:** This Actor is an independent tool. It is **not affiliated with, endorsed by, or sponsored by** the Government of Canada or Job Bank. All product and company names are the property of their respective owners.

### Limitations

- Covers **Job Bank only** — postings that appear exclusively on other boards are not included
- Salary is only present when the employer published it
- Some postings list multiple locations; the primary location is returned

# Actor input Schema

## `searchQuery` (type: `string`):

Job title or keywords, e.g. 'developer', 'registered nurse', 'welder'. Leave empty only if you provide posting URLs below.

## `location` (type: `string`):

City and province ('Calgary, AB'), a bare city ('Calgary'), a province ('Alberta' or 'AB'), or a postal code ('T2P 1A1'). City and postal searches cover a 40 km radius. Leave empty to search all of Canada.

## `maxResults` (type: `integer`):

Stop after this many postings. Keep it modest — each posting is a separate page fetch.

## `maxPages` (type: `integer`):

How many pages of search results to walk through (roughly 25 postings per page).

## `sort` (type: `string`):

How to order the search results.

## `distanceKm` (type: `integer`):

How far around the city or postal code to search, in kilometres (10-500). Only applies to city/postal-code searches; ignored for province-wide searches.

## `widenSearch` (type: `boolean`):

Recommended ON. If your location has few matches, the Actor automatically widens the search — bigger radius, then the whole province, then all of Canada — until Max results is reached, instead of returning a short or empty list. Widened rows carry a 'searchScope' field showing where they came from.

## `postingUrls` (type: `array`):

One Job Bank posting URL (or job-posting ID) per line. Takes priority over the keyword search above.

## `proxy` (type: `object`):

Optional. Job Bank is a public government site — usually not needed.

## `debug` (type: `boolean`):

Verbose logging for troubleshooting.

## Actor input object example

```json
{
  "searchQuery": "developer",
  "location": "Toronto, ON",
  "maxResults": 50,
  "maxPages": 5,
  "sort": "D",
  "distanceKm": 40,
  "widenSearch": true,
  "proxy": {
    "useApifyProxy": false
  },
  "debug": false
}
```

# Actor output Schema

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

Job posting records stored in the default dataset, one item per posting.

# 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 = {
    "searchQuery": "developer",
    "location": "Toronto, ON",
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("akhil_rajesh/canadian-jobs-scraper").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 = {
    "searchQuery": "developer",
    "location": "Toronto, ON",
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("akhil_rajesh/canadian-jobs-scraper").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 '{
  "searchQuery": "developer",
  "location": "Toronto, ON",
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call akhil_rajesh/canadian-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,akhil_rajesh/canadian-jobs-scraper"
        }
    }
}

```

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/MU0ZF72i9AqUqUWWd/builds/nJlqxVPEtKkOG7uDJ/openapi.json
