{
  "openapi": "3.0.1",
  "info": {
    "title": "JobsDB Scraper",
    "description": "Scrape live job listings from JobsDB (Hong Kong & Thailand) - search by keyword, browse by category or location, or pull the newest postings. Salary, work-type, date-range and sort filters included.",
    "version": "1.0",
    "x-build-id": "WpLSatFeacuWfkel7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~jobsdb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-jobsdb-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/crawlerbros~jobsdb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-jobsdb-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/crawlerbros~jobsdb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-jobsdb-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",
        "required": [
          "mode",
          "country"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchJobs",
              "browseByCategory",
              "browseByLocation",
              "browseByCompany",
              "latestJobs",
              "byJobId"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "searchJobs"
          },
          "country": {
            "title": "Country",
            "enum": [
              "HK",
              "TH"
            ],
            "type": "string",
            "description": "Which JobsDB market to scrape.",
            "default": "HK"
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Job title, skill, or company to search for (mode=searchJobs). Also works as an optional refinement in browseByCategory / browseByLocation.",
            "default": "engineer"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Free-text location/area to browse or filter by, e.g. `Central`, `Kowloon`, `Bangkok`. Required for mode=browseByLocation.",
            "default": ""
          },
          "classification": {
            "title": "Category",
            "uniqueItems": true,
            "type": "array",
            "description": "Job categor(y/ies). Pick one or more (OR match) — required for mode=browseByCategory; optional filter for other modes. Leave empty for any category.",
            "items": {
              "type": "string",
              "enum": [
                "1200",
                "1203",
                "1204",
                "1206",
                "1209",
                "1210",
                "1211",
                "1212",
                "1214",
                "1216",
                "1220",
                "1223",
                "1225",
                "6008",
                "6043",
                "6058",
                "6076",
                "6092",
                "6123",
                "6163",
                "6205",
                "6246",
                "6251",
                "6263",
                "6281",
                "6304",
                "6317",
                "6362",
                "7019"
              ],
              "enumTitles": [
                "Accounting",
                "Banking & Financial Services",
                "Call Centre & Customer Service",
                "Construction",
                "Engineering",
                "Government & Defence",
                "Healthcare & Medical",
                "Hospitality & Tourism",
                "Insurance & Superannuation",
                "Legal",
                "Real Estate & Property",
                "Science & Technology",
                "Trades & Services",
                "Marketing & Communications",
                "Retail & Consumer Products",
                "Mining, Resources & Energy",
                "Consulting & Strategy",
                "Manufacturing, Transport & Logistics",
                "Education & Training",
                "Community Services & Development",
                "Farming, Animals & Conservation",
                "Sport & Recreation",
                "Administration & Office Support",
                "Design & Architecture",
                "Information & Communication Technology",
                "Advertising, Arts & Media",
                "Human Resources & Recruitment",
                "Sales",
                "CEO & General Management"
              ]
            },
            "default": []
          },
          "subclassification": {
            "title": "Sub-category ID(s)",
            "type": "string",
            "description": "One or more numeric JobsDB sub-category IDs (comma-separated for OR match) to narrow a `classification` further (e.g. `6038` = Project Engineering under Engineering). Get valid IDs from the `subCategoryId` field on a previously scraped job. Optional filter for any mode.",
            "default": ""
          },
          "workType": {
            "title": "Work type",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by employment type. Pick one or more (OR match). Leave empty for any work type.",
            "items": {
              "type": "string",
              "enum": [
                "242",
                "243",
                "244",
                "245"
              ],
              "enumTitles": [
                "Full time",
                "Part time",
                "Contract/Temp",
                "Casual/Vacation"
              ]
            },
            "default": []
          },
          "workArrangement": {
            "title": "Work arrangement",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by on-site/hybrid/remote work arrangement. Pick one or more (OR match). Leave empty for any arrangement.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "On-site",
                "Hybrid",
                "Remote"
              ]
            },
            "default": []
          },
          "advertiserId": {
            "title": "Company / advertiser ID(s)",
            "type": "string",
            "description": "One or more numeric JobsDB advertiser IDs (comma-separated for OR match) to browse all current listings from one or more employers/agencies. Required for mode=browseByCompany; get an ID from the `advertiserId` field on any previously scraped job. Also works as an optional filter in other modes.",
            "default": ""
          },
          "jobId": {
            "title": "Job ID(s)",
            "type": "string",
            "description": "One or more numeric JobsDB job IDs (comma-separated, or pass an array) to look up specific listings directly. Required for mode=byJobId; get an ID from the `jobId` field on any previously scraped job. Ignored in other modes.",
            "default": ""
          },
          "salaryMin": {
            "title": "Salary min",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Minimum salary (in the local currency, per `salaryType` period). Leave unset for no lower bound."
          },
          "salaryMax": {
            "title": "Salary max",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Maximum salary (in the local currency, per `salaryType` period). Leave unset for no upper bound."
          },
          "salaryType": {
            "title": "Salary period",
            "enum": [
              "annual",
              "monthly",
              "hourly"
            ],
            "type": "string",
            "description": "Period the salary min/max values are expressed in.",
            "default": "annual"
          },
          "dateRange": {
            "title": "Date posted",
            "enum": [
              "",
              "1",
              "3",
              "7",
              "14",
              "31"
            ],
            "type": "string",
            "description": "Only include jobs posted within this window.",
            "default": ""
          },
          "sortMode": {
            "title": "Sort by",
            "enum": [
              "KeywordRelevance",
              "ListedDate"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "KeywordRelevance"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}