{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Job Bank Scraper: Jobs, LMIA, NOC & Wages",
    "description": "Jobs from Job Bank (jobbank.gc.ca), the Government of Canada job board: title, employer, city, province, wage, date, source, LMIA flag; optional details with NOC code, terms, hours and description. $0.80 per 1,000 jobs.",
    "version": "0.1",
    "x-build-id": "zHlhVywVLH6VU9f7m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~canada-job-bank-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-canada-job-bank-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/tagadanar~canada-job-bank-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-canada-job-bank-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/tagadanar~canada-job-bank-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-canada-job-bank-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Job titles, skills or employers to search on Job Bank (jobbank.gc.ca), one search per line, e.g. cook, truck driver, software developer. Leave empty to list every job that matches the filters below. At most 100 searches per run.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A province or territory (Ontario, BC, Québec ...) or a city as \"City, PR\" (Vancouver, BC). A city searches Job Bank's 50 km area around it. Empty = all of Canada."
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "48h",
              "30d"
            ],
            "type": "string",
            "description": "Only jobs posted in the last 48 hours or 30 days.",
            "default": "any"
          },
          "lmia": {
            "title": "LMIA (foreign worker hiring)",
            "enum": [
              "any",
              "requested",
              "approved",
              "requested-or-approved"
            ],
            "type": "string",
            "description": "Only jobs whose employer requested or holds an approved Labour Market Impact Assessment (LMIA) to hire a temporary foreign worker.",
            "default": "any"
          },
          "workSchedule": {
            "title": "Full time / part time",
            "enum": [
              "any",
              "full-time",
              "part-time"
            ],
            "type": "string",
            "description": "Only full-time or only part-time jobs.",
            "default": "any"
          },
          "employmentTerms": {
            "title": "Terms of employment",
            "type": "array",
            "description": "Only these terms (any of them). Empty = all terms.",
            "items": {
              "type": "string",
              "enum": [
                "permanent",
                "term-or-contract",
                "seasonal",
                "casual"
              ],
              "enumTitles": [
                "Permanent",
                "Term or contract",
                "Seasonal",
                "Casual"
              ]
            }
          },
          "workplace": {
            "title": "Workplace",
            "enum": [
              "any",
              "remote",
              "hybrid",
              "on-site"
            ],
            "type": "string",
            "description": "Only remote, hybrid or on-site jobs.",
            "default": "any"
          },
          "source": {
            "title": "Posting source",
            "enum": [
              "all",
              "job-bank-only"
            ],
            "type": "string",
            "description": "Job Bank also lists jobs from other boards (Indeed, Talent.com, Jobillico, provincial boards). Choose \"Posted on Job Bank only\" to keep the jobs employers posted on Job Bank itself (the ones that carry LMIA information).",
            "default": "all"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "best-match"
            ],
            "type": "string",
            "description": "Newest first (best for daily runs) or Job Bank's best match.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Add full job details (slower, priced per job)",
            "type": "boolean",
            "description": "Also read each job's posting page: NOC code, LMIA status, full description, terms, hours, start date, vacancies, languages, education, experience, tasks, benefits, who can apply, closing date. Job Bank allows one request every 5 seconds, so details take about 5 seconds per job (1,000 jobs = about 85 minutes; raise the run timeout). Charged per job that got its details.",
            "default": false
          },
          "startUrls": {
            "title": "Job Bank links",
            "type": "array",
            "description": "Optional: jobbank.gc.ca search result links (filters set on the site are kept) or job posting links (jobbank.gc.ca/jobsearch/jobposting/12345678, read with full details).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max jobs per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap per keyword or search link. Default 100, max 10,000. Job Bank shows 25 jobs per page and allows one page every 5 seconds: 1,000 jobs take about 3.5 minutes without details.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}