{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Bank Canada Scraper + LMIA Employer Leads",
    "description": "Scrape Job Bank Canada (jobbank.gc.ca) jobs by city, province, LMIA, NOC code and date. Get wages as hourly and yearly figures, full posting details and one row per hiring employer with their hiring email, phone or website. Build LMIA employer lists or a daily feed of new jobs.",
    "version": "0.1",
    "x-build-id": "9QyThy1crOLU5pgjC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/snappytools~jobbank-canada-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-snappytools-jobbank-canada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/snappytools~jobbank-canada-scraper/runs": {
      "post": {
        "operationId": "runs-sync-snappytools-jobbank-canada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/snappytools~jobbank-canada-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-snappytools-jobbank-canada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "One search per line: the job title or keywords, then a | and a location. The location can be a city (\"Calgary\" or \"London, ON\"), a province (\"Alberta\" or \"AB\") or a postal code (\"T2P 1J9\"). Leave the location out to search all of Canada, or paste the address of a Job Bank search results page to use its filters as they are.",
            "items": {
              "type": "string"
            }
          },
          "output": {
            "title": "What to return",
            "enum": [
              "jobs",
              "jobsAndEmployers",
              "employers"
            ],
            "type": "string",
            "description": "Jobs gives one row per posting. Jobs and hiring employers adds one row per employer with what they are hiring for and their contact details. Hiring employers only gives just the employer rows, which makes a lead list.",
            "default": "jobs"
          },
          "maxJobsPerSearch": {
            "title": "Maximum jobs per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search after this many jobs (1 to 5,000; 100 if left empty). Job Bank lists 25 jobs per page, newest first."
          },
          "radiusKm": {
            "title": "Distance from the city (km)",
            "minimum": 5,
            "maximum": 500,
            "type": "integer",
            "description": "For city and postal code searches: how far around the place to look, in kilometres, as on Job Bank's map. Not used for province searches.",
            "default": 50
          },
          "lmia": {
            "title": "LMIA",
            "enum": [
              "any",
              "requested",
              "approved",
              "exclude"
            ],
            "type": "string",
            "description": "Labour Market Impact Assessment: only jobs where the employer requested one, only jobs with an approved one, or leave LMIA jobs out. Requested LMIA jobs are employers hiring temporary foreign workers.",
            "default": "any"
          },
          "datePosted": {
            "title": "Posted within",
            "enum": [
              "any",
              "2",
              "30"
            ],
            "type": "string",
            "description": "Only jobs posted in the last 2 days or the last 30 days.",
            "default": "any"
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "For searches without a location: only jobs in these provinces or territories, for example AB, BC, ON.",
            "items": {
              "type": "string",
              "enum": [
                "AB",
                "BC",
                "MB",
                "NB",
                "NL",
                "NS",
                "NT",
                "NU",
                "ON",
                "PE",
                "QC",
                "SK",
                "YT"
              ],
              "enumTitles": [
                "Alberta",
                "British Columbia",
                "Manitoba",
                "New Brunswick",
                "Newfoundland and Labrador",
                "Nova Scotia",
                "Northwest Territories",
                "Nunavut",
                "Ontario",
                "Prince Edward Island",
                "Quebec",
                "Saskatchewan",
                "Yukon"
              ]
            }
          },
          "jobSource": {
            "title": "Where the job was posted",
            "enum": [
              "all",
              "jobBank",
              "external"
            ],
            "type": "string",
            "description": "Posted directly on Job Bank by the employer (verified jobs, with how-to-apply contact details), or copied from other job boards such as Indeed.",
            "default": "all"
          },
          "excludePlacementAgencies": {
            "title": "Leave out placement agencies",
            "type": "boolean",
            "description": "Leave out jobs posted by employment and placement agencies, so the list is employers hiring for themselves.",
            "default": false
          },
          "employmentType": {
            "title": "Full or part time",
            "enum": [
              "any",
              "fullTime",
              "partTime"
            ],
            "type": "string",
            "description": "Only full-time or only part-time jobs.",
            "default": "any"
          },
          "workTerms": {
            "title": "Terms of employment",
            "type": "array",
            "description": "Only these terms: permanent, term or contract, seasonal or casual.",
            "items": {
              "type": "string",
              "enum": [
                "permanent",
                "term",
                "seasonal",
                "casual"
              ],
              "enumTitles": [
                "Permanent",
                "Term or contract",
                "Seasonal",
                "Casual"
              ]
            }
          },
          "workplace": {
            "title": "Work location",
            "enum": [
              "any",
              "onSite",
              "remote",
              "hybrid",
              "onTheRoad"
            ],
            "type": "string",
            "description": "Only on-site, remote, hybrid or on-the-road jobs.",
            "default": "any"
          },
          "nocCodes": {
            "title": "NOC codes",
            "type": "array",
            "description": "Only jobs in these NOC 2021 occupation codes, for example 72106 for welders or 63200 for cooks.",
            "items": {
              "type": "string"
            }
          },
          "minHourlyWage": {
            "title": "Minimum hourly wage (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out jobs whose highest advertised pay is below this hourly rate. Yearly, monthly and weekly pay is converted to hourly first. Jobs without a wage are kept."
          },
          "fetchDetails": {
            "title": "Include full job details",
            "type": "boolean",
            "description": "Open each posting to add the NOC code, hours, vacancies, start date, address, languages, education, experience, tasks and the full description. Runs take longer.",
            "default": false
          },
          "findContacts": {
            "title": "Find employer contact details",
            "type": "boolean",
            "description": "For jobs posted directly on Job Bank, read the employer's \"How to apply\" details: email, phone, website or in-person address. On by default when you ask for hiring employers."
          },
          "onlyNew": {
            "title": "Only new jobs since my last run",
            "type": "boolean",
            "description": "Return only jobs you haven't had from the same search and filters before. Use it with a schedule to get a daily or weekly feed of new postings.",
            "default": false
          },
          "summaryOnly": {
            "title": "Market summary only",
            "type": "boolean",
            "description": "Instead of one row per job, return one row per search with the number of postings, median hourly and yearly wage, top hiring employers and LMIA postings.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}