{
  "openapi": "3.0.1",
  "info": {
    "title": "Bayt Jobs Scraper | Middle East UAE Jobs Companies",
    "description": "Scrape Bayt.com jobs and company profiles across UAE, Saudi Arabia & MENA. Extract titles, salaries, locations, JobPosting fields & URLs — Bayt API alternative.",
    "version": "0.5",
    "x-build-id": "OM8j8LVJxPdBNf7tD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~bayt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-bayt-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/lentic_clockss~bayt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-bayt-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/lentic_clockss~bayt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-bayt-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": "What to scrape",
            "enum": [
              "jobs",
              "jobDetails",
              "company",
              "locations",
              "allJobs"
            ],
            "type": "string",
            "description": "Job search (default), full job pages for given job IDs/URLs, one company with its open jobs, the list of countries and cities with job counts, or every job of a country (or of all Bayt) past the 10,000 one search can page through.",
            "default": "jobs"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Job title, skill or company (e.g. accountant, software engineer). Empty = all jobs."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country name, ISO code or Bayt slug: uae, saudi-arabia, egypt, qatar, kuwait, india… Empty = all countries."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional city in that country (Dubai, Riyadh, Cairo…). Use mode \"Countries and cities\" to list them.",
            "default": ""
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows for each input (search, company, country/location request, or job ID/URL). Default 70; larger numbers are collected in parts of 70. All row types count together, and in company mode the company itself is the first row. The whole run stops at your maximum total charge. Free Apify plan: up to 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "cursor": {
            "title": "Continue from (cursor)",
            "type": "string",
            "description": "For mode \"All jobs\": RUN_SUMMARY.nextCursor of an earlier run with the same input, to carry on where it stopped. Empty = start at the beginning.",
            "default": ""
          },
          "dateInterval": {
            "title": "Posted within",
            "enum": [
              "",
              "24h",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Only jobs posted or updated in this window.",
            "default": ""
          },
          "remote": {
            "title": "Remote jobs only",
            "type": "boolean",
            "description": "Remote and hybrid jobs only.",
            "default": false
          },
          "careerLevel": {
            "title": "Career level",
            "enum": [
              "",
              "student",
              "graduate",
              "entry",
              "mid",
              "management",
              "director",
              "executive"
            ],
            "type": "string",
            "description": "Career level Bayt assigns to the job.",
            "default": ""
          },
          "employmentType": {
            "title": "Employment type",
            "enum": [
              "",
              "full time",
              "part time",
              "contractor",
              "temporary",
              "internship",
              "freelance"
            ],
            "type": "string",
            "description": "Employment type.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Bayt's own order, or newest jobs first.",
            "default": "relevance"
          },
          "enrichDetails": {
            "title": "Read full job pages",
            "type": "boolean",
            "description": "Add the full description, requirements, AI summary, employment type, vacancies, salary range and company size of each job (five pages per request).",
            "default": false
          },
          "enrichLimit": {
            "title": "Job pages to read",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "How many of the first jobs get their full page.",
            "default": 30
          },
          "jobIds": {
            "title": "Job IDs or URLs",
            "type": "array",
            "description": "For mode \"Job pages\": Bayt job IDs (5488783) or job links.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeSimilarJobs": {
            "title": "Similar job IDs",
            "type": "boolean",
            "description": "For mode \"Job pages\": add the IDs Bayt lists as similar (only some jobs have them).",
            "default": false
          },
          "companyUrl": {
            "title": "Company link or ID",
            "type": "string",
            "description": "For mode \"Company\": a Bayt company link (https://www.bayt.com/en/company/al-futtaim-1661592/) or its numeric ID.",
            "default": ""
          },
          "includeCompanyJobs": {
            "title": "Company's open jobs",
            "type": "boolean",
            "description": "For mode \"Company\": list the company's open jobs after the company row. Each job is a separate billed row.",
            "default": false
          },
          "includeCompanyPage": {
            "title": "Company website and employees",
            "type": "boolean",
            "description": "For mode \"Company\": read the public company page for its website, about text, followers and employees (with HR contacts). Adds ~15 seconds.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}