# Bayt Scraper (`tortuga/bayt-scraper`) Actor

Scrape Bayt.com jobs in the UAE, Saudi Arabia, Qatar, Kuwait, Oman, Bahrain, Egypt, Jordan and more by keyword, country and city. Get title, company, location, career level, salary, posted date and, optionally, the full description, skills and job type. Export to JSON, CSV or Excel.

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

## Pricing

from $0.70 / 1,000 jobs

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Scraper

Scrape Bayt.com jobs in the UAE, Saudi Arabia, Qatar, Kuwait, Oman, Bahrain, Egypt, Jordan and more by keyword, country and city. Get title, company, location, career level, salary, posted date and, optionally, the full description, skills and job type. Export to JSON, CSV or Excel.

Bayt is the largest job board in the Gulf and the wider Middle East. This Actor reads the public search and job pages (no login) and returns one clean row per job, deduplicated by job id.

### What data does Bayt Scraper extract?

| Field | Description |
|---|---|
| `jobId`, `url` | Bayt job id and job page URL |
| `title`, `company`, `companyUrl` | Job title, employer and its Bayt company page |
| `location`, `city`, `country` | As shown on the card, for example "Dubai, UAE" |
| `experience` | Career level shown by Bayt (Entry level, Mid career, Management, ...) |
| `salary`, `salaryMin`, `salaryMax`, `salaryCurrency` | Only when the employer shows a salary |
| `postedAt`, `postedAgo` | Posting time (ISO, UTC) and Bayt's own "4 days ago" label |
| `description` | Search result summary; with details on, the full job description as plain text |
| `jobType`, `skills`, `salaryPeriod`, `validThrough`, `companySize`, `vacancies`, `applyUrl` | Details mode only |
| `industry`, `functionalArea` | Bayt does not show them on the public page, so they are null |

Fields Bayt does not show for a job are null. Nationality or gender preferences are only present when the employer wrote them into the description text.

### Input example

```json
{
  "keywords": ["accountant"],
  "country": "uae",
  "location": "Dubai",
  "careerLevel": ["mid career"],
  "postedWithinDays": 14,
  "includeDetails": false,
  "maxItems": 20
}
```

You can also paste Bayt search URLs such as `https://www.bayt.com/en/uae/jobs/accountant-jobs/` or single job URLs into **Start URLs**.

### Output example

```json
{
  "jobId": "5508064",
  "url": "https://www.bayt.com/en/uae/jobs/accountant-5508064/",
  "title": "Accountant",
  "company": "Pittura FZ-LLC",
  "companyUrl": "https://www.bayt.com/en/company/pittura-fz-llc-2317759/",
  "location": "Dubai, UAE",
  "country": "UAE",
  "experience": null,
  "salary": "AED 1,836 - AED 3,673",
  "salaryMin": 1836,
  "salaryMax": 3673,
  "salaryCurrency": "AED",
  "postedAt": "2026-11-11T11:29:00Z",
  "jobType": null,
  "industry": null,
  "functionalArea": null,
  "skills": null,
  "description": "A detail-oriented Accountant is sought to oversee daily accounting tasks ...",
  "applyUrl": null
}
```

### Pricing

| Event | Price | When |
|---|---|---|
| Job | $0.70 / 1,000 | One job from a search result |
| Job details fetched | $0.70 / 1,000 | Extra, per job page opened (full description, skills, job type, apply link) |

Bayt blocks datacenter IPs, so the Actor uses Apify residential proxy. Its traffic is platform usage on your account: roughly 250 KB per search page of 30 jobs and about 120 KB per job page.

### How to scrape Bayt jobs by country or city

Pick a **Country** and add **Keywords**, optionally a **City**. The Actor opens `bayt.com/en/<country>/jobs/<keyword>-jobs-in-<city>/` and pages through the results until **Max jobs** is reached. Several keywords run as separate searches and duplicates are dropped.

### Can I filter by career level or date?

Yes, **Career level** and **Posted within (days)** are applied to the search results by the Actor. Bayt's own filter URLs are not used, because its robots.txt disallows them.

### Does it work without login?

Yes. It only reads public pages. It never logs in, never solves CAPTCHAs and does not return anything hidden behind sign-in. A Cloudflare challenge is retried on a fresh IP and, if it persists, reported in the run summary instead of being bypassed.

### Is it legal to scrape Bayt?

The Actor collects publicly visible job postings and employer names only, and respects robots.txt paths. You are responsible for using the data in line with local law and Bayt's terms.

# Actor input Schema

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

Job titles or skills to search, one search per entry (for example accountant, sales manager). Leave empty to list all jobs of the country.

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

Bayt country site to search.

## `location` (type: `string`):

Optional city inside the country, for example Dubai, Abu Dhabi, Riyadh or Doha. Applied together with a keyword (the city page is keyword-jobs-in-city).

## `startUrls` (type: `array`):

Optional Bayt search pages (https://www.bayt.com/en/uae/jobs/accountant-jobs/) or job pages. URLs with filters\[ or options\[ parameters are not supported.

## `careerLevel` (type: `array`):

Keep only jobs with these career levels (applied to the search results).

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

Keep only jobs posted in the last N days (applied to the search results; jobs without a date are kept).

## `includeDetails` (type: `boolean`):

Open every job page for the full description, skills, job type, salary, company size and apply link. One extra request and a Job details event per job.

## `maxItems` (type: `integer`):

Stop after this many jobs in total. Keeps cost predictable.

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

Bayt blocks datacenter IPs with a Cloudflare challenge, so residential proxy is the default and is billed as platform usage on your account (about 250 KB per 30 jobs, 120 KB per job page).

## Actor input object example

```json
{
  "keywords": [
    "accountant"
  ],
  "country": "uae",
  "includeDetails": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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": [
        "accountant"
    ],
    "country": "uae",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/bayt-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": ["accountant"],
    "country": "uae",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/bayt-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": [
    "accountant"
  ],
  "country": "uae",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call tortuga/bayt-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/bayt-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/tsC53VOb3OcKGeLei/builds/4ftIOrooX0yYaBgTa/openapi.json
