# Job Bank Canada LMIA Monitor (`khadinakbar/monitor-jobbank-canada-lmia`) Actor

Scrape and monitor Job Bank Canada temporary foreign worker jobs with LMIA requested or approved status, salaries, employers, and change alerts. Use for immigration recruiters sourcing TFW openings. Returns title, employer, location, salary, LMIA status, job URL. $0.005/job.

- **URL**: https://apify.com/khadinakbar/monitor-jobbank-canada-lmia.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Jobs, Lead generation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 job founds

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 does Job Bank Canada LMIA Monitor do?

**Scrape and monitor public Job Bank Canada temporary foreign worker (TFW) jobs** that carry an **LMIA requested** or **Approved LMIA** flag. You get structured rows with title, employer, location, salary, LMIA status, workplace type, and a stable job URL — ready for immigration desks, TFW recruiters, and MCP agents.

This Actor reads only public Job Bank HTML (`jobbank.gc.ca`). It does not access IRCC accounts, private LMIA case files, or employer portals.

### Why use it?

- Source **LMIA-linked openings** instead of a generic Canada jobs dump
- Filter by keyword, city, province, LMIA status, and workplace type
- Schedule **change-only monitoring** (new / updated / expired) with a named state
- Optional detail enrich for description, hours, languages, and NOC when published
- Predictable **Pay per event** pricing at $0.005 per saved job

### Best fit

Use this Actor when you need live Job Bank TFW/LMIA postings or a scheduled watchlist.

For LinkedIn, Indeed, or remote specialty boards, use sibling job Actors in the portfolio instead.

### How to use

1. Open the Actor in Apify Console
2. Set a keyword (for example `cook`) or leave it empty for the newest TFW pool
3. Choose LMIA status: requested, approved, or both
4. Cap `maxItems` (default 10) and run
5. Download the dataset as JSON, CSV, or Excel — or call it from API / MCP

### Input

| Field | Purpose |
|-------|---------|
| `searchKeyword` | Occupation / employer query |
| `location` / `provinces` | City or province filters |
| `lmiaStatus` | requested / approved / both |
| `monitoringMode` | off / new\_and\_updated / all |
| `stateName` | Named watchlist for schedules |
| `enrichDetails` | Fetch posting pages for deeper fields |
| `maxItems` | Hard cap on unique billed rows |

### Output

One dataset row per job. Example:

```json
{
  "jobId": "jobbank:50332271",
  "postingId": "50332271",
  "jobNumber": "3677657",
  "title": "cook, small establishment",
  "employer": "Bon Appetit Restaurant",
  "location": "Port McNeill (BC)",
  "province": "BC",
  "salaryText": "$25.00 hourly",
  "salaryMin": 25,
  "salaryPeriod": "hourly",
  "lmiaStatus": "requested",
  "workplaceType": "On site",
  "jobUrl": "https://www.jobbank.gc.ca/jobsearch/jobpostingtfw/50332271",
  "collectedAt": "2026-09-22T12:00:00.000Z"
}
```

### Pricing

Pay per event + platform usage:

- **Actor start:** $0.00005
- **job-found:** $0.005 per unique saved row

Invalid input and valid-empty searches are not charged the job event. In change-only monitoring, unchanged jobs are not written or charged.

See the live Pricing tab in Console for the effective record.

### API example

```bash
curl "https://api.apify.com/v2/acts/khadinakbar~monitor-jobbank-canada-lmia/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchKeyword":"cook","lmiaStatus":"requested","maxItems":10}'
```

### Agent prompt card

> Search Job Bank Canada for LMIA requested cook jobs in Canada, return up to 10 rows with title, employer, location, salary, lmiaStatus, and jobUrl.

### Builder's note

Job Bank serves server-rendered search cards. LMIA facets are `fskl=101010` (requested) and `fskl=101020` (approved) on the TFW pool (`fsrc=32`). Prefer Residential Canada proxy; direct fetches from some networks time out.

### Legal

Use only for lawful recruitment and research against publicly posted Job Bank listings. Respect Job Bank terms of use and applicable privacy laws. This Actor is not affiliated with ESDC, IRCC, or the Government of Canada.

# Actor input Schema

## `searchKeyword` (type: `string`):

Title, employer, skill, or occupation query such as cook, nurse, or truck driver. Leave empty to walk the newest TFW/LMIA pool. This is Job Bank's public searchstring, not a Boolean IRCC query.

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

Optional city or town such as Toronto or Brampton. Combined with Job Bank's locationstring. Prefer provinces when you want territory-wide results.

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

Optional province/territory filters using Job Bank's fprov facet. Each selected province becomes its own search plan. Leave empty for all of Canada.

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

Optional public jobbank.gc.ca search or /jobpostingtfw/ URLs. Added as exact search plans. Non-Job-Bank hosts are rejected as invalid input.

## `lmiaStatus` (type: `string`):

Uses Job Bank's LMIA facets (fskl=101010 requested, fskl=101020 approved). requested\_or\_approved keeps the full TFW pool (fsrc=32). any is treated the same as requested\_or\_approved.

## `onlyLmiaRequested` (type: `boolean`):

Backward-compatible shortcut. When enabled and lmiaStatus is any, uses the TFW requested-or-approved pool.

## `excludeStudent` (type: `boolean`):

Drop postings Job Bank flags as student jobs before save.

## `workplaceTypes` (type: `array`):

Keep postings whose public telework flag matches. Empty keeps every workplace type.

## `sortBy` (type: `string`):

Job Bank best-match (M) or newest (D) ordering.

## `enrichDetails` (type: `boolean`):

When on, fetch each posting page for description snippet, hours, languages, and NOC when published. Off (default) uses search cards only and is cheaper.

## `monitoringMode` (type: `string`):

For scheduled runs, save only new, updated, and expired jobs (new\_and\_updated), or every row plus expiries (all). off scrapes without change detection. Unchanged jobs are not written or charged in change-only mode.

## `stateName` (type: `string`):

Separates one saved watchlist or schedule from another. Keep stable for recurring runs. Letters, numbers, underscore, hyphen only.

## `resetState` (type: `boolean`):

Treat the next successful monitoring run as a fresh baseline for this state name only.

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

Hard cap on unique job records across every search plan. Each saved row is one job-found event. Default 10 keeps quality tests cheap.

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

Job Bank is reachable via Apify Residential Canada. Default enables Apify proxy with CA residential routing.

## Actor input object example

```json
{
  "searchKeyword": "cook",
  "location": "",
  "provinces": [],
  "startUrls": [],
  "lmiaStatus": "requested_or_approved",
  "onlyLmiaRequested": false,
  "excludeStudent": false,
  "workplaceTypes": [],
  "sortBy": "newest",
  "enrichDetails": false,
  "monitoringMode": "off",
  "stateName": "default",
  "resetState": false,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset items with title, employer, location, salary, LMIA status, and job URL.

## `summary` (type: `string`):

Compact OUTPUT with outcome, itemsPushed, chargedEventCounts, and warnings.

## `runSummary` (type: `string`):

Detailed RUN\_SUMMARY including pages fetched, monitoring mode, and billing counters.

# 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 = {
    "searchKeyword": "cook",
    "location": "",
    "provinces": [],
    "startUrls": [],
    "lmiaStatus": "requested_or_approved",
    "onlyLmiaRequested": false,
    "excludeStudent": false,
    "workplaceTypes": [],
    "sortBy": "newest",
    "enrichDetails": false,
    "monitoringMode": "off",
    "stateName": "default",
    "resetState": false,
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/monitor-jobbank-canada-lmia").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 = {
    "searchKeyword": "cook",
    "location": "",
    "provinces": [],
    "startUrls": [],
    "lmiaStatus": "requested_or_approved",
    "onlyLmiaRequested": False,
    "excludeStudent": False,
    "workplaceTypes": [],
    "sortBy": "newest",
    "enrichDetails": False,
    "monitoringMode": "off",
    "stateName": "default",
    "resetState": False,
    "maxItems": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/monitor-jobbank-canada-lmia").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 '{
  "searchKeyword": "cook",
  "location": "",
  "provinces": [],
  "startUrls": [],
  "lmiaStatus": "requested_or_approved",
  "onlyLmiaRequested": false,
  "excludeStudent": false,
  "workplaceTypes": [],
  "sortBy": "newest",
  "enrichDetails": false,
  "monitoringMode": "off",
  "stateName": "default",
  "resetState": false,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call khadinakbar/monitor-jobbank-canada-lmia --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khadinakbar/monitor-jobbank-canada-lmia"
        }
    }
}
```

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/ufVEKqYzHl0gaTwzw/builds/wTycu41spAQ6aDb7F/openapi.json
