# Bayt.com Jobs Scraper — Dubai, UAE, Saudi & MENA Vacancies (`foxlabs/bayt-jobs-scraper`) Actor

Extract Middle East and Gulf job listings from Bayt.com across UAE (Dubai/Abu Dhabi), Saudi Arabia, Qatar, Kuwait, Oman, Bahrain, Egypt, and Jordan with exact post timestamps, AI summaries, citizenship rules, Easy Apply flags, and full JobPosting descriptions.

- **URL**: https://apify.com/foxlabs/bayt-jobs-scraper.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Jobs, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 bayt.com mena job listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![Bayt Jobs Scraper Banner](https://data.foxlabs.com.tr/img/bayt-jobs-scraper-banner.svg)

## Bayt.com Jobs Scraper — Dubai, UAE, Saudi Arabia & MENA Vacancies 🚀

Extract structured Middle East & North Africa (**MENA**) job postings from **Bayt.com** — the Gulf region's #1 career portal covering **UAE (Dubai / Abu Dhabi), Saudi Arabia (Riyadh / Jeddah), Qatar (Doha), Kuwait, Bahrain, Oman, Egypt, Jordan, and Morocco** — including **exact Unix activation timestamps (`postedAt`)**, **Bayt AI job summaries**, **Gulf nationalization / citizenship rules**, **Easy Apply flags**, and optional **full Schema.org `JobPosting` descriptions & candidate profiles**.

> **AI Agent & MCP Quick-Start:** Run with `{"country":"UAE","keywords":["software engineer"],"maxJobsPerSearch":30}`. Machine-readable documentation is available at `https://apify.com/foxlabs/bayt-jobs-scraper.md`.

***

### 🔍 1. What Does Bayt.com Jobs Scraper Do?

**Bayt.com** hosts over `50,000+` active corporate vacancies across the GCC and wider Middle East. Standard scrapers either get blocked at the edge or misalign candidate profile attributes on Bayt's dynamic layout.

**Bayt.com Jobs Scraper** delivers clean, verified MENA hiring intelligence across `10` regional portals:

- **10 MENA & GCC Portals Out of the Box:** Switch seamlessly between `UAE`, `SA` (Saudi Arabia), `QA` (Qatar), `KW` (Kuwait), `BH` (Bahrain), `OM` (Oman), `EG` (Egypt), `JO` (Jordan), `MA` (Morocco), and `INTERNATIONAL` — with optional `city` targeting (`dubai`, `abu-dhabi`, `riyadh`, `doha`).
- **Exact Unix Activation Timestamps (`postedAt`):** Converts Bayt's imprecise `"30+ days ago"` card labels into exact ISO 8601 timestamps via `data-automation-jobActiveDate`.
- **AI Summary, Citizenship & Experience Signals:** Extracts Bayt's card-level `aiSummary`, `experienceRange` (`0-2 Years of Experience`), `citizenshipRequirement` (Emiratization / Saudization tags such as `"UAE nationals"`), `salaryText` (`AED`/`SAR`/`QAR`/`USD`), and `isEasyApply` at `30 jobs/page` search speed.
- **Full Detail & Candidate Attribute Enrichment (`includeJobDetails`):** Combines Schema.org `JobPosting` JSON-LD (`descriptionMarkdown`, `employmentType`, `validThrough`, `monthsOfExperience`, `totalJobOpenings`) with Bayt's `data-automation-id` candidate profile fields (`companyIndustry`, `careerLevel`, `degreeRequirement`, `jobRole`).

***

### 🤖 2. Built for AI Agents, MCP & Automated Workflows

- **MCP & Autonomous Pipeline Ready:** Compatible with Apify MCP Server (`https://mcp.apify.com`), Claude, Gemini, OpenAI, LangChain, n8n, Make, and x402 / Skyfire workflows.
- **Synchronous Standby HTTP Mode:** Call `POST /scrape` directly for instant Dubai/Riyad recruitment intelligence without polling.
- **Suggested Agent Prompt:** *"Run `foxlabs/bayt-jobs-scraper` for `country: 'UAE'`, `city: 'dubai'`, `keywords: ['cloud architect', 'devops engineer']`, `postedWithinDays: 14`, and list hiring companies with direct company profile URLs."*

***

### 📋 3. Why Choose `foxlabs/bayt-jobs-scraper`?

| Capability | Typical Bayt Scrapers | `foxlabs/bayt-jobs-scraper` |
| :--- | :--- | :--- |
| **Posting Date Precision** | Vague `"12 days ago"` / `"30+ days ago"` | **Exact Unix epoch `postedTimestamp` & ISO 8601 `postedAt`** |
| **Field Mapping Accuracy** | Shifted DOM columns (e.g. industry inside `companySize`) | **Keyed by `JobPosting` JSON-LD + `data-automation-id` attributes** |
| **GCC Nationalization Signals** | Dropped | **Dedicated `citizenshipRequirement` (Emiratization / Saudization)** |
| **Fast Search Intelligence** | Title & URL only | **Includes Bayt `aiSummary`, `companyId`, `experienceRange` & `isEasyApply`** |
| **Memory & Speed** | Heavy Playwright browser (`1–2 GB` RAM) | **Pure Node.js `undici` extraction (`256 MB` RAM)** |

***

### ✨ 4. Key Features

1. **Multi-Country GCC & MENA Coverage:** Built-in URL routing for `UAE`, `SA`, `QA`, `KW`, `BH`, `OM`, `EG`, `JO`, `MA`, and `INTERNATIONAL`, plus custom `searchUrls` and `jobUrls`.
2. **Pre-Billing `easyApplyOnly` & `postedWithinDays` Filters:** Excluded listings are skipped before `ChargingManager` — zero wasted spend on stale `"30+ days ago"` postings.
3. **Confidential Employer Detection:** Cleanly flags `isConfidentialCompany: true` when employers mask their corporate identity while preserving direct `companyId` and `companyUrl` for named employers.
4. **Crash-Safe Deduplication:** Keyed by `rowKey: "bayt:<jobId>"` across overlapping keyword searches and container restarts.

***

### 📊 5. Transparent Pay-Per-Event Pricing

Billing is enforced strictly via `Actor.getChargingManager()` — **no monthly rental, no start fee, and `$0.00` charge on zero-result searches, filtered-out listings, or `status` notes**:

| Event Name | Price | Per 1,000 Events | When Charged |
| :--- | :---: | :---: | :--- |
| `keyword-search` | **$0.0040** | **$4.00 / 1K** | Once per search slice (`keyword` or `searchUrl`) **only when ≥1 job is delivered** |
| `job` | **$0.0020** | **$2.00 / 1K** | Each unique Bayt.com job delivered in fast search mode (`includeJobDetails: false`) |
| `job-detail` | **$0.0060** | **$6.00 / 1K** | Each unique Bayt.com job enriched with full Markdown/HTML description & candidate profile (`includeJobDetails: true` or `jobUrls`) |
| `status` | **$0.0000** | **Free** | Diagnostic note emitted when input is empty or zero jobs match |

***

### 📥 6. Input Parameters

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `country` | `string` | `"UAE"` | Target portal: `"UAE"`, `"SA"`, `"QA"`, `"KW"`, `"BH"`, `"OM"`, `"EG"`, `"JO"`, `"MA"`, `"INTERNATIONAL"`. |
| `keywords` | `string[]` | `["software engineer"]` | Job titles, skills, or roles to search on Bayt.com. |
| `city` | `string` | `""` | Optional city slug (`"dubai"`, `"abu-dhabi"`, `"riyadh"`, `"jeddah"`, `"doha"`). |
| `searchUrls` | `string[]` | `[]` | Pre-filtered Bayt.com search URLs. |
| `jobUrls` | `string[]` | `[]` | Direct Bayt.com job posting URLs to enrich (`job-detail`). |
| `easyApplyOnly` | `boolean` | `false` | Keep only vacancies with Bayt Easy Apply enabled (`$0` for skipped jobs). |
| `postedWithinDays` | `integer` | — | Keep only jobs activated within the last `N` days (`1–365`). |
| `includeJobDetails` | `boolean` | `false` | Fetch full `JobPosting` description, skills, employment type & candidate attributes (`job-detail`). |
| `maxJobsPerSearch` | `integer` | `30` | Maximum unique jobs per keyword/search URL (`1–2000`; `30` jobs per Bayt page). |
| `maxTotalJobs` | `integer` | `100` | Global cap on billable jobs across the run (`1–25000`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Proxy settings (managed automatically out of the box). |

***

### 🎬 7. Quick-Start Input Examples

#### Fast Dubai & UAE Tech Hiring Discovery (`30` Jobs/Page)

```json
{
  "country": "UAE",
  "city": "dubai",
  "keywords": ["software engineer", "data analyst"],
  "postedWithinDays": 14,
  "maxJobsPerSearch": 30,
  "maxTotalJobs": 60
}
```

#### Saudi Arabia (`Riyadh`) Full Job Description & Candidate Requirements

```json
{
  "country": "SA",
  "city": "riyadh",
  "keywords": ["project manager"],
  "easyApplyOnly": true,
  "includeJobDetails": true,
  "maxJobsPerSearch": 15
}
```

***

### 📤 8. Sample Output Record

```json
{
  "rowType": "job-detail",
  "rowKey": "bayt:5507901",
  "jobId": "5507901",
  "title": "Fresher",
  "jobUrl": "https://www.bayt.com/en/uae/jobs/fresher-5507901/",
  "country": "UAE",
  "city": "Dubai",
  "region": "Dubai",
  "location": "Dubai, UAE",
  "companyName": "Cognizant",
  "companyId": "1542258",
  "companyUrl": "https://www.bayt.com/en/company/cognizant-1542258/",
  "companyLogoUrl": "https://secure.b8cdn.com/70x70/images/logo/58/1542258_logo_1781525935_n.png",
  "isConfidentialCompany": false,
  "isEasyApply": true,
  "isAggregated": false,
  "aiSummary": "Unlock your potential as a Forward Deployment Engineer, where you'll develop innovative software and AI solutions that transform business operations...",
  "experienceRange": "0 - 2 years",
  "citizenshipRequirement": "UAE nationals",
  "salaryText": null,
  "salaryMin": null,
  "salaryMax": null,
  "salaryCurrency": null,
  "postedTimestamp": 1794379435,
  "postedAt": "2026-11-11T04:03:55.000Z",
  "postedRelative": "12 days ago",
  "employmentType": "FULL_TIME",
  "validThrough": "2027-01-10T00:00:00Z",
  "monthsOfExperience": 24,
  "totalJobOpenings": 1,
  "careerLevel": null,
  "degreeRequirement": null,
  "companyIndustry": null,
  "companyType": null,
  "jobRole": null,
  "descriptionText": "Roles & responsibilities Develop and deploy software, AI, and data-driven solutions...",
  "descriptionMarkdown": "**Roles & responsibilities**\n- Develop and deploy software, AI, and data-driven solutions...",
  "skillsText": "Desired candidate profile About the Role Cognizant is seeking high-potential graduates...",
  "recruitingEmails": [],
  "sourceUrl": "https://www.bayt.com/en/uae/jobs/software-engineer-jobs/",
  "scrapedAt": "2026-11-24T01:31:50.000Z"
}
```

***

### 📚 9. Complete Output Schema Reference

| Field | Type | Mode | Description |
| :--- | :---: | :---: | :--- |
| `rowType` / `rowKey` | `string` | Both | `"job"`, `"job-detail"`, or `"status"`, keyed by `"bayt:<jobId>"`. |
| `jobId` / `title` / `jobUrl` | `string` | Both | Numeric Bayt vacancy ID, job title, and canonical URL. |
| `country` / `city` / `location` | `string\|null` | Both | Country code (`UAE`, `SA`, `QA`, etc.), city (`Dubai`, `Riyadh`), and formatted location. |
| `companyName` / `companyId` / `companyUrl` | `string\|null` | Both | Employer name, Bayt company ID, company profile URL, and `isConfidentialCompany` flag. |
| `isEasyApply` / `isAggregated` | `boolean` | Both | Bayt Easy Apply button availability and aggregated external feed indicator. |
| `aiSummary` | `string\|null` | Both | Bayt AI executive summary extracted directly from the search card. |
| `experienceRange` / `citizenshipRequirement` | `string\|null` | Both | Years of experience and nationalization requirement (e.g. `"UAE nationals"`, `"Saudi Arabia"`). |
| `salaryText` / `salaryMin` / `salaryMax` / `salaryCurrency` | `mixed` | Both | Disclosed monthly/annual salary text and parsed numeric bounds (`AED`, `SAR`, `QAR`, `USD`). |
| `postedTimestamp` / `postedAt` / `postedRelative` | `mixed` | Both | Exact Unix epoch seconds, ISO 8601 timestamp, and relative label. |
| `employmentType` / `validThrough` | `string\|null` | Detail | Schema.org employment type (`FULL_TIME`, `CONTRACTOR`) and expiration timestamp. |
| `monthsOfExperience` / `totalJobOpenings` | `integer\|null` | Detail | Structured experience months and open headcount from `JobPosting` JSON-LD. |
| `companyIndustry` / `careerLevel` / `degreeRequirement` / `jobRole` | `string\|null` | Detail | Structured employer & candidate profile fields (`candidateAttributes` dictionary included). |
| `descriptionText` / `descriptionMarkdown` / `descriptionHtml` | `string\|null` | Detail | Full job description in plain text, Markdown, and HTML (`skillsText` & `recruitingEmails[]` included). |

***

### 💻 10. API & SDK Integration Examples

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~bayt-jobs-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"country":"UAE","keywords":["software engineer"],"maxJobsPerSearch":30}'
```

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('foxlabs/bayt-jobs-scraper').call({
    country: 'UAE',
    city: 'dubai',
    keywords: ['software engineer'],
    postedWithinDays: 14,
    maxJobsPerSearch: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("foxlabs/bayt-jobs-scraper").call(run_input={
    "country": "SA",
    "city": "riyadh",
    "keywords": ["project manager"],
    "includeJobDetails": True,
    "maxJobsPerSearch": 15,
})
dataset_id = getattr(run, "default_dataset_id", None) or run["defaultDatasetId"]
items = client.dataset(dataset_id).list_items().items
print(f"Fetched {len(items)} Bayt MENA jobs")
```

***

### ⚡ 11. Standby HTTP Mode

Query `POST /scrape` synchronously when running in Apify Standby:

```bash
curl -X POST "https://foxlabs--bayt-jobs-scraper.apify.actor/scrape?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"country":"UAE","keywords":["accountant"],"maxJobsPerSearch":15}'
```

***

### 🔗 12. Workflow Automation (n8n, Make, HubSpot, Clay & ATS)

- **GCC B2B Expansion Signals:** Pipe `companyName` + `companyUrl` from `UAE` and `SA` engineering vacancies into Clay or HubSpot to identify enterprises scaling teams in Dubai and Riyadh.
- **Emiratization & Saudization Tracking:** Filter dataset rows where `citizenshipRequirement` is non-null to monitor nationalization-mandated roles across banking, energy, and public-sector contractors.

***

### 🎯 13. Industry Use Cases

- **International Executive Search & GCC Staffing:** Source fresh vacancies in Dubai, Abu Dhabi, Riyadh, Jeddah, and Doha before aggregators index them, skipping confidential ads (`isConfidentialCompany === false`).
- **MENA Compensation & Labor Analytics:** Benchmark disclosed `AED`, `SAR`, `QAR`, and `USD` salary bands, experience requirements (`monthsOfExperience`), and multi-seat hiring (`totalJobOpenings`).
- **Job Aggregators & Career Portals:** Ingest clean Markdown descriptions (`descriptionMarkdown`), company logos, and `validThrough` expiry dates via scheduled feeds.

***

### 💡 14. Performance & Cost Optimization Tips

1. **Request Multiples of `30` in Fast Search Mode:** Each Bayt search page returns `30` rich cards (`aiSummary`, `postedAt`, `companyUrl`, `experienceRange`), making `maxJobsPerSearch: 30` or `60` maximally cost-efficient.
2. **Pre-Filter Before `includeJobDetails: true`:** Combine `postedWithinDays: 7` or `easyApplyOnly: true` with `includeJobDetails: true` so detail enrichment runs only on fresh, high-intent vacancies.

***

### 🛠️ 15. Troubleshooting

- **`salaryText` Is `null` on Many Listings:** Across GCC job boards, most employers mark salary as undisclosed on public postings; `salaryText`, `salaryMin`, and `salaryMax` are populated whenever the employer discloses a pay band and cleanly `null` (never fake `0`) otherwise.
- **`companyName` Shows `"Confidential Company"`:** Employers on Bayt can pay to hide their brand name; check `isConfidentialCompany: false` to filter strictly for named companies.
- **Custom Filter URLs:** Copy any filtered URL from `bayt.com/en/.../jobs/...` in your browser and paste it into `searchUrls` to combine Bayt's native industry/career-level facets with automatic pagination.

***

### ❓ 16. Frequently Asked Questions (FAQ)

#### Which Middle East and North Africa countries are supported?

Built-in `country` selection supports **United Arab Emirates (`UAE`), Saudi Arabia (`SA`), Qatar (`QA`), Kuwait (`KW`), Bahrain (`BH`), Oman (`OM`), Egypt (`EG`), Jordan (`JO`), Morocco (`MA`), and All MENA (`INTERNATIONAL`)**. Any other regional Bayt URL can also be passed via `searchUrls`.

#### How does `postedAt` provide an exact timestamp when Bayt cards show `"30+ days ago"`?

Bayt embeds the exact Unix epoch activation second inside `data-automation-jobActiveDate` on every search card. `foxlabs/bayt-jobs-scraper` extracts both `postedTimestamp` and ISO 8601 `postedAt`, allowing accurate `postedWithinDays` filtering even when visible text only says `"30+ days ago"`.

#### What is the difference between `includeJobDetails: false` and `includeJobDetails: true`?

Fast search mode (`includeJobDetails: false`, `$2.00 / 1K` jobs) extracts `30` jobs per page including `aiSummary`, `companyName`, `companyUrl`, `location`, `experienceRange`, `citizenshipRequirement`, `isEasyApply`, and exact `postedAt`. Setting `includeJobDetails: true` (`$6.00 / 1K` jobs) visits each job page to extract full `descriptionMarkdown` / `descriptionHtml`, `skillsText`, `employmentType`, `monthsOfExperience`, `totalJobOpenings`, and structured `candidateAttributes`.

#### Am I charged for `keyword-search` if a search returns zero matching jobs?

No. The `$0.004` `keyword-search` event is charged **only** after a search slice delivers at least `1` matching job. Searches that yield `0` jobs after `postedWithinDays` or `easyApplyOnly` filtering emit `$0.00` charges.

#### Does Bayt.com Jobs Scraper require a Bayt account, cookies, or user-supplied proxies?

No. Everything works keylessly out of the box with zero login credentials, cookies, or third-party proxy keys.

#### How does this scraper avoid column-shift bugs seen in other Bayt scrapers?

Instead of relying on positional CSS child indices (which shift whenever an employer omits salary or career level), `foxlabs/bayt-jobs-scraper` reads keyed Schema.org `JobPosting` JSON-LD and explicit `data-automation-id="data_*"` attributes (`data_Company_Industry`, `data_Years_of_experience`, `data_Nationality`, etc.).

#### Can I target a specific city like Dubai, Abu Dhabi, Riyadh, or Doha?

Yes. Set `country: "UAE"` with `city: "dubai"` (or `"abu-dhabi"`), or `country: "SA"` with `city: "riyadh"` (or `"jeddah"`), and the scraper queries Bayt's city-scoped index directly.

#### Can I enrich specific Bayt job URLs I already collected?

Yes. Pass an array of URLs in `jobUrls` (with `keywords: []`) to enrich only those postings as `job-detail` records without triggering any `keyword-search` event.

***

### ™️ 17. Trademark Notice

**Bayt.com** is a registered trademark of Bayt.com Inc. This actor is an independent data extraction tool built by **foXLabs** and is not affiliated with, endorsed by, or sponsored by Bayt.com Inc.

***

### ⚖️ 18. Legal & Responsible Use

This actor collects **publicly posted job advertisements** only and does not access private candidate resumes or authenticated employer accounts. Users are responsible for complying with applicable laws in their jurisdiction.

***

### 🤝 19. Support & Custom Integrations

Need custom GCC recruitment feeds, Arabic `/ar/` portal localization, or enterprise volume? Reach out via the **Issues** tab on Apify Store.

***

### 📝 20. Changelog

- **v0.1.0 (2026-11-24):** Initial release — 10 MENA portals (`UAE`, `SA`, `QA`, `KW`, `BH`, `OM`, `EG`, `JO`, `MA`, `INTERNATIONAL`), exact Unix `postedAt`, Bayt `aiSummary`, citizenship & experience tags, `JobPosting` JSON-LD + `data-automation-id` detail enrichment, and Standby HTTP mode.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/bayt-jobs-scraper/changelog.md

# Actor input Schema

## `country` (type: `string`):

MENA country portal on Bayt.com used when building search URLs from 'keywords'.

## `keywords` (type: `array`):

Job titles, roles, or skills to search on Bayt.com (e.g., 'software engineer', 'project manager', 'accountant').

## `city` (type: `string`):

Optional city slug or name within the selected country (e.g., 'dubai', 'abu-dhabi', 'riyadh', 'jeddah', 'doha').

## `searchUrls` (type: `array`):

Optional pre-filtered Bayt.com search URLs (e.g., 'https://www.bayt.com/en/uae/jobs/software-engineer-jobs/').

## `jobUrls` (type: `array`):

Specific Bayt.com job posting URLs to enrich directly with full descriptions and candidate requirements ('job-detail').

## `easyApplyOnly` (type: `boolean`):

Keep only vacancies with Bayt Easy Apply enabled (filtered-out listings cost $0).

## `postedWithinDays` (type: `integer`):

Keep only jobs activated within the last N days using Bayt's exact Unix activation timestamp (filtered-out listings cost $0).

## `includeJobDetails` (type: `boolean`):

Fetch each vacancy's detail page for full Markdown/HTML job description, skills block, employment type, total openings, and preferred candidate attributes ('job-detail' event).

## `maxJobsPerSearch` (type: `integer`):

Maximum unique jobs to collect per keyword or search URL (Bayt serves 30 jobs per page).

## `maxTotalJobs` (type: `integer`):

Global cap on billable jobs across the entire run.

## `proxyConfiguration` (type: `object`):

Proxy settings for Bayt.com requests (managed automatically out of the box).

## Actor input object example

```json
{
  "country": "UAE",
  "keywords": [
    "software engineer"
  ],
  "city": "",
  "searchUrls": [],
  "jobUrls": [],
  "easyApplyOnly": false,
  "includeJobDetails": false,
  "maxJobsPerSearch": 30,
  "maxTotalJobs": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "software engineer"
    ],
    "maxJobsPerSearch": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/bayt-jobs-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["software engineer"],
    "maxJobsPerSearch": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/bayt-jobs-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "software engineer"
  ],
  "maxJobsPerSearch": 30
}' |
apify call foxlabs/bayt-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,foxlabs/bayt-jobs-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hFyt4q64lskHeE3JK/builds/no1bcgmTQlEohbyC8/openapi.json
