{
  "openapi": "3.0.1",
  "info": {
    "title": "Bayt Jobs Scraper | MENA Job Listings & Salaries",
    "description": "Get Bayt.com job listings: job title, company, location, career level, salary range (min, max, currency), posting date, AI summary and apply link. 17 countries or all at once, city, date, career-level, employment-type and remote filters, many keywords per run, optional job details. No login.",
    "version": "0.0",
    "x-build-id": "JALs3w2Qs88x5OFPk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~bayt-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-bayt-jobs-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/genial_candlestand~bayt-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-bayt-jobs-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/genial_candlestand~bayt-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-bayt-jobs-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": {
          "queries": {
            "title": "Job titles or keywords",
            "type": "array",
            "description": "One job title or keyword per line, e.g. \"accountant\", \"civil engineer\". English or Arabic. Each line is a separate search with the country, city and filters below. Leave empty to list all jobs in the country (or city). Bayt drops symbols (\"c++\" is searched as \"c\").",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "uae",
              "saudi-arabia",
              "egypt",
              "qatar",
              "kuwait",
              "oman",
              "bahrain",
              "jordan",
              "lebanon",
              "morocco",
              "algeria",
              "tunisia",
              "iraq",
              "libya",
              "pakistan",
              "india",
              "usa",
              "international"
            ],
            "type": "string",
            "description": "Bayt market to search: 17 countries, or International for all countries at once. International cannot be combined with a City. Applies to job titles, not to Start URLs.",
            "default": "uae"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional English city name inside the selected Country, e.g. \"Dubai\", \"Abu Dhabi\", \"Riyadh\". Latin letters only; not allowed with International. A city Bayt does not know in that country gives no results and a warning."
          },
          "datePosted": {
            "title": "Date posted",
            "enum": [
              "any",
              "24h",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Only jobs posted in the past 24 hours, 7 days or 30 days. Works with every country and city.",
            "default": "any"
          },
          "careerLevels": {
            "title": "Career levels",
            "type": "array",
            "description": "Only jobs of these career levels (Student / Internship, Fresh graduate, Entry level, Mid career, Management, Director / Head, Senior executive). Several values combine with OR. Empty = all levels.",
            "items": {
              "type": "string",
              "enum": [
                "student-internship",
                "fresh-graduate",
                "entry-level",
                "mid-career",
                "management",
                "director-head",
                "senior-executive"
              ],
              "enumTitles": [
                "Student / Internship",
                "Fresh graduate",
                "Entry level",
                "Mid career",
                "Management",
                "Director / Head",
                "Senior executive"
              ]
            }
          },
          "employmentTypes": {
            "title": "Employment types",
            "type": "array",
            "description": "Only jobs of these employment types (Full time, Part time, Contractor, Temporary, Freelance, Internship). Several values combine with OR. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "full-time",
                "part-time",
                "contractor",
                "temporary",
                "freelance",
                "internship"
              ],
              "enumTitles": [
                "Full time",
                "Part time",
                "Contractor",
                "Temporary",
                "Freelance",
                "Internship"
              ]
            }
          },
          "remoteOnly": {
            "title": "Work from home only",
            "type": "boolean",
            "description": "Only remote (work from home) jobs. Works with every country, city and filter.",
            "default": false
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Bayt relevance or newest first. Use Newest first with Date posted = Past 24 hours for a daily feed.",
            "default": "relevance"
          },
          "language": {
            "title": "Site language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "Language of Bayt pages. Arabic gives Arabic labels (career level, country name, \"posted ago\") and leaves the preferred-candidate detail fields empty. Job texts stay in the language the employer wrote them in.",
            "default": "en"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Bayt search result pages to scrape with their own filters, e.g. https://www.bayt.com/en/qatar/jobs/?filters[jb_career_level_id_original][]=2 (copy from the browser after setting filters). Country, City and the filters above do not apply to them. A page parameter is removed and the search starts at page 1. Job, company and non-Bayt pages are rejected.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop each search (one job title or one start URL) after this many jobs, 1–10,000. Bayt shows at most 10,000 jobs (333 pages of 30) per search.",
            "default": 100
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on jobs saved in the whole run, over all searches. Empty = only the per-search limit applies."
          },
          "includeDetails": {
            "title": "Include job details",
            "type": "boolean",
            "description": "Open every job page and add the full description, skills, employment type, closing date, openings, direct-apply flag, preferred candidate (gender, nationality, degree, residence) and Bayt's own salary figure (usually USD). One extra page per job, charged as a separate Job details event; failed pages are free.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Bayt is behind Cloudflare. Default: Apify datacenter proxy; the actor switches to Apify residential automatically when datacenter IPs are challenged. Choose Residential to start on it.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}