{
  "openapi": "3.0.1",
  "info": {
    "title": "Bayt Jobs Scraper: UAE, Saudi & Middle East Jobs & Salaries",
    "description": "Bayt.com job scraper for MENA: jobs in the UAE, Saudi Arabia, Qatar, Kuwait, Egypt and 20 more countries by keyword and city, in English or Arabic. Returns title, company, full description, salary, skills, career level, education, expiry date and job link. $0.70 per 1,000 jobs; no-match is free.",
    "version": "0.0",
    "x-build-id": "eLaonov0M0W0XFoEi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~bayt-jobs-uae-saudi-middle-east/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-bayt-jobs-uae-saudi-middle-east",
        "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/scrapebench~bayt-jobs-uae-saudi-middle-east/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-bayt-jobs-uae-saudi-middle-east",
        "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/scrapebench~bayt-jobs-uae-saudi-middle-east/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-bayt-jobs-uae-saudi-middle-east",
        "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 keywords",
            "type": "array",
            "description": "Prefer this over 'query'. Job keywords, e.g. 'accountant', 'site engineer', 'nurse' (Arabic works with language ar). Each keyword is searched in every country and city below; a job found twice is returned once. Empty = every job in the country or city you give.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Job keyword",
            "type": "string",
            "description": "One keyword, e.g. 'accountant'. Prefer 'queries' (a list); this single value still works for saved tasks and API callers."
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Prefer this over 'country'. Bayt's URL names: uae, saudi-arabia, egypt, qatar, morocco, lebanon, kuwait, jordan, bahrain, india, pakistan, turkiye, usa, oman, uk, iraq, tunisia, canada, poland, spain, germany, brazil, algeria, italy, france; international = all countries in one list. Each is searched separately. Default uae.",
            "items": {
              "type": "string",
              "enum": [
                "uae",
                "saudi-arabia",
                "egypt",
                "qatar",
                "morocco",
                "lebanon",
                "kuwait",
                "jordan",
                "bahrain",
                "india",
                "pakistan",
                "turkiye",
                "usa",
                "oman",
                "uk",
                "iraq",
                "tunisia",
                "canada",
                "poland",
                "spain",
                "germany",
                "brazil",
                "algeria",
                "italy",
                "france",
                "international"
              ],
              "enumTitles": [
                "United Arab Emirates",
                "Saudi Arabia",
                "Egypt",
                "Qatar",
                "Morocco",
                "Lebanon",
                "Kuwait",
                "Jordan",
                "Bahrain",
                "India",
                "Pakistan",
                "Turkiye",
                "United States",
                "Oman",
                "United Kingdom",
                "Iraq",
                "Tunisia",
                "Canada",
                "Poland",
                "Spain",
                "Germany",
                "Brazil",
                "Algeria",
                "Italy",
                "France",
                "All countries"
              ]
            },
            "default": [
              "uae"
            ]
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "One country, same names as 'countries' (uae, saudi-arabia, qatar ...). Prefer 'countries' (a list); this single value still works for saved tasks."
          },
          "locations": {
            "title": "Cities",
            "type": "array",
            "description": "Prefer this over 'location'. A city as Bayt spells it, e.g. 'Dubai', 'Riyadh', 'Doha'. Applied in every country listed, so use it with one country. A city Bayt has no page for is matched inside the country's list, with a free 'input_adjusted' notice. Empty = the whole country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City",
            "type": "string",
            "description": "One city. Prefer 'locations' (a list); this single value still works for saved tasks."
          },
          "maxResults": {
            "title": "Maximum jobs per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap PER keyword x country x city, not per run. Billed $0.0007 per job returned: 100 jobs = $0.07, 1,000 = $0.70. A free 'truncated' notice says when a filter stopped a search early.",
            "default": 100
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "24h",
              "3d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "any = no filter; 24h, 3d, 7d, 30d = listed within that long, by the posting time Bayt shows on the search card. Jobs outside it are not fetched or billed. A filtered search reads at most 10 x maxResults jobs, then ends with a 'truncated' notice.",
            "default": "any"
          },
          "employmentTypes": {
            "title": "Employment types",
            "type": "array",
            "description": "Keep only these, as Bayt publishes them: FULL_TIME, PART_TIME, CONTRACTOR, TEMPORARY, INTERN. Matched on the job page; other jobs are not billed. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "FULL_TIME",
                "PART_TIME",
                "CONTRACTOR",
                "TEMPORARY",
                "INTERN"
              ],
              "enumTitles": [
                "Full time",
                "Part time",
                "Contractor",
                "Temporary",
                "Intern"
              ]
            },
            "default": []
          },
          "salaryOnly": {
            "title": "Only jobs with a salary",
            "type": "boolean",
            "description": "true = keep only jobs whose search card shows a salary; others are not fetched or billed. Most Bayt jobs publish none (6 of 100 for Saudi Arabia 'engineer', 2026-11-29), so a long run may end with a 'truncated' notice.",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "en = English pages; ar = Arabic pages (Arabic keywords, titles, places and labels). Same jobs, same price.",
            "default": "en"
          },
          "jobUrls": {
            "title": "Job page URLs",
            "type": "array",
            "description": "Bayt job links to fetch directly, e.g. https://www.bayt.com/en/uae/jobs/accountant-5514421/. Each is one job, billed like any other; an expired job comes back as a free 'blocked' notice.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "On by default: Apify datacenter proxy, included in your plan. A refused page retries on a fresh proxy session. Leave as is; switch it off only to test without a 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}