{
  "openapi": "3.0.1",
  "info": {
    "title": "JobThai Thailand Jobs Scraper",
    "description": "Thai job scraper for JobThai.com. Extract Thailand job listings in Thai or English with salary, company, province, job type, WFH, hybrid tags, descriptions, qualifications, benefits, and optional public contacts.",
    "version": "0.1",
    "x-build-id": "7Xzztv15mrCStZEGa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/beige_unison~jobthai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-beige_unison-jobthai-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/beige_unison~jobthai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-beige_unison-jobthai-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/beige_unison~jobthai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-beige_unison-jobthai-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": {
          "mode": {
            "title": "โหมดการทำงาน / Mode",
            "enum": [
              "auto",
              "search",
              "urls"
            ],
            "type": "string",
            "description": "เลือกวิธีเริ่มดึงข้อมูล: search สร้าง URL จากตัวกรอง, urls ใช้ URL ที่ใส่เอง, auto ใช้ทั้งสองแบบ.",
            "default": "search"
          },
          "keyword": {
            "title": "คำค้นหา / Keyword",
            "type": "string",
            "description": "ชื่อตำแหน่ง ทักษะ หรือชื่อบริษัท เช่น โปรแกรมเมอร์, บัญชี, Python."
          },
          "keywords": {
            "title": "หลายคำค้นหา / Keywords",
            "type": "array",
            "description": "ใส่หลายคำค้นหาได้ แต่ละคำจะเริ่มค้นหาแยกกัน.",
            "items": {
              "type": "string"
            }
          },
          "jobTypes": {
            "title": "รหัสประเภทงาน / Job type IDs",
            "type": "array",
            "description": "รหัสประเภทงานของ JobThai เช่น 7 สำหรับ Computer/IT. ใส่หลายค่าได้ เช่น 7,35.",
            "items": {
              "type": "string"
            }
          },
          "salaryMin": {
            "title": "เงินเดือนต่ำสุด / Minimum salary",
            "minimum": 0,
            "type": "integer",
            "description": "เงินเดือนรายเดือนขั้นต่ำ หน่วยบาท."
          },
          "salaryMax": {
            "title": "เงินเดือนสูงสุด / Maximum salary",
            "minimum": 0,
            "type": "integer",
            "description": "เงินเดือนรายเดือนสูงสุด หน่วยบาท."
          },
          "orderBy": {
            "title": "การเรียงลำดับ / Sort order",
            "enum": [
              "",
              "SALARY_ASC",
              "SALARY_DESC"
            ],
            "type": "string",
            "description": "เว้นว่างเพื่อเรียงตามงานล่าสุด หรือเลือกเรียงตามเงินเดือน.",
            "default": ""
          },
          "massTransit": {
            "title": "รถไฟฟ้า / Mass transit",
            "type": "string",
            "description": "ใส่ all เพื่อค้นหางานใกล้ BTS/MRT/SRT/ARL/BRT หรือใส่รหัสสถานีถ้าทราบ."
          },
          "industrialEstate": {
            "title": "รหัสนิคมอุตสาหกรรม / Industrial estate IDs",
            "type": "array",
            "description": "รหัสหรือ slug ของนิคมอุตสาหกรรม ถ้าทราบ.",
            "items": {
              "type": "string"
            }
          },
          "workFromHome": {
            "title": "ทำงานที่บ้าน / Work from Home",
            "type": "boolean",
            "description": "เพิ่มตัวกรองงานที่ทำงานจากบ้านของ JobThai.",
            "default": false
          },
          "hybrid": {
            "title": "ทำงานแบบ Hybrid / Hybrid Work",
            "type": "boolean",
            "description": "เพิ่มตัวกรองงานแบบ Hybrid ของ JobThai.",
            "default": false
          },
          "startUrls": {
            "title": "URL เริ่มต้น / Start URLs",
            "type": "array",
            "description": "URL หน้าค้นหาหรือหน้ารายละเอียดงานของ JobThai.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "language": {
            "title": "ภาษา / Language",
            "enum": [
              "en",
              "th"
            ],
            "type": "string",
            "description": "เลือกภาษาเว็บไซต์ JobThai ที่ต้องการดึงข้อมูล.",
            "default": "th"
          },
          "maxItems": {
            "title": "จำนวนผลลัพธ์สูงสุด / Max items",
            "minimum": 1,
            "type": "integer",
            "description": "จำนวนรายการงานสูงสุดที่จะบันทึก.",
            "default": 100
          },
          "maxPages": {
            "title": "จำนวนหน้าสูงสุด / Max pages",
            "minimum": 0,
            "type": "integer",
            "description": "จำนวนหน้าผลการค้นหาสูงสุดต่อหนึ่งคำค้นหา ใช้ 0 เพื่อดึงต่อจนถึง maxItems หรือจนไม่มีหน้าถัดไป.",
            "default": 5
          },
          "includeDetails": {
            "title": "ดึงรายละเอียดงาน / Include job details",
            "type": "boolean",
            "description": "เปิดหน้ารายละเอียดงานเพื่อดึงรายละเอียดงาน คุณสมบัติ สวัสดิการ วิธีสมัคร และข้อมูลเพิ่มเติม.",
            "default": true
          },
          "includeContacts": {
            "title": "รวมข้อมูลติดต่อ / Include contacts",
            "type": "boolean",
            "description": "รวมข้อมูลติดต่อสาธารณะจากหน้ารายละเอียดงาน ปิดไว้เป็นค่าเริ่มต้นเพื่อความปลอดภัยของ dataset.",
            "default": false
          },
          "maxConcurrency": {
            "title": "จำนวน request พร้อมกัน / Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "จำนวน HTTP request ที่รันพร้อมกัน แนะนำให้ใช้ค่าพอดีสำหรับ JobThai.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "ตั้งค่า Proxy / Proxy configuration",
            "type": "object",
            "description": "การตั้งค่า Apify Proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}