# Bayt Jobs Scraper (`thenetaji/bayt-jobs-scraper`) Actor

Search Bayt by keyword across the UAE, Saudi Arabia, Qatar, Egypt and the Middle East, by country or city and posting age, and export each job with company, pay band, career level and dates.

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

## Pricing

from $0.85 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

The Actor searches Bayt.com, the largest job board in the Middle East and North Africa, by keyword and country or city and saves each matching job as one dataset row with its title, company, city, country, pay band, career level, Bayt's summary and posting time. Results arrive in Bayt's relevance order by default, and the posting-age filter narrows a search the same way it does on bayt.com.

```json
{
  "query": "accountant",
  "location": "Dubai",
  "postedWithinDays": "30",
  "sort": "relevance",
  "maxItems": 100
}
```

### Accepted input

- `query` is required: a job title, skill or keyword such as `accountant`, `site engineer` or `c++ developer`.
- `location` is optional. It takes a country such as `UAE`, `Saudi Arabia`, `Qatar`, `Kuwait`, `Oman`, `Bahrain`, `Egypt`, `Jordan` or `Lebanon`; a city Bayt lists, such as `Dubai`, `Abu Dhabi`, `Sharjah`, `Riyadh`, `Jeddah`, `Doha` or `Cairo`; or `City, Country` for any other city, such as `Salalah, Oman`. Left empty, the search covers every country.
- `postedWithinDays` accepts `any`, `1`, `7` or `30`; the default is `any`.
- `sort` accepts `relevance` (the default) or `date` (newest first).
- `enrichJobDescription` adds each saved job's full posting to its row; it is off by default. See [Full postings](#full-postings).
- `page` is the first result page to read; it defaults to `1`.
- `maxItems` bounds the number of saved rows; it defaults to `100`, and `0` removes the bound.

### Response fields

Each row carries `job_id`, `title`, `url`, `company` (`name`, `id`, `url`, `logo_url`), `job_location` as Bayt prints it, `city` and `country`, `salary` (`label`, `min`, `max`, `currency`), `career_level`, `experience` (`min_years`, `max_years`, `label`) where the posting states a range, `summary`, `posted_at` as an ISO 8601 timestamp in UTC, and the flags `is_easy_apply`, `is_featured` and `is_confidential_company`. Every row also records the `query`, `location` and `page` it was collected under, together with Bayt's own `total` for the search, `total_is_estimate`, and the `search_url`.

### Full postings

With `enrichJobDescription` on, the Actor also reads each saved job's own posting and adds `description_html`, `skills_html`, `posted_salary` (`min`, `max`, `currency`, `period`), `employment_type`, `valid_through`, `vacancies` and `preferred_candidate` (the employer's preferences, such as `career_level`, `degree` or `nationality`), plus the company's `size` and `industry`. Each posting is a further request, so a run takes longer, and each posting read is billed as a separate event. A posting that has been removed since the search keeps its search row unchanged and is not billed.

Recruiter names and contact details are not collected.

### Behaviour on large searches

Bayt serves 30 jobs per page and lists at most 334 pages for one search, about 10,000 jobs, whatever its total. The run follows the results to their last page, or to `maxItems`, and stops cleanly there. A search with no match returns no rows rather than unrelated jobs.

### Notes on the results

**Why does `salary` show odd figures such as AED 5,509?**
Employers on Bayt pick a pay band, which Bayt sets in US dollars and shows converted to the local currency: AED 5,509 - AED 7,345 is the $1,500 - $2,000 band. With full postings on, `posted_salary` gives the band as the employer set it, with its currency and period, usually US dollars a month.

**Why is `total` sometimes a round number?**
Bayt rounds large counts on its own pages, as in "2K jobs found". `total_is_estimate` is then true and `total` is 2000.

**Why is relevance the default instead of newest first?**
Bayt matches a search more loosely in date order. On the first page of "accountant" in the UAE, 25 of 30 job titles named the role by relevance and 12 of 30 by date.

### Related Actors

[Naukrigulf Jobs Scraper](https://apify.com/thenetaji/naukrigulf-jobs-scraper) runs the same kind of search on Naukrigulf.com across the Gulf.

# Actor input Schema

## `query` (type: `string`):

The job title, skill or keyword to search for.

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

A country such as UAE, Saudi Arabia, Qatar or Egypt; a city Bayt lists such as Dubai, Abu Dhabi, Riyadh, Jeddah, Doha or Cairo; or "City, Country" for any other city, such as "Salalah, Oman". Left empty, the search covers every country.

## `postedWithinDays` (type: `string`):

Keep jobs posted within this many days, using Bayt's own date filter.

## `sort` (type: `string`):

Relevance keeps to jobs that match the search. Newest first matches it loosely: on page 1 of "accountant" in the UAE, 12 of 30 job titles by date named the role, against 25 of 30 by relevance.

## `enrichJobDescription` (type: `boolean`):

Reads each saved job's own posting and adds what a search row does not carry: the full description, the skills section, the pay as the employer set it with its period, the employment type, the closing date, the number of openings, the employer's candidate preferences, and the company's size and industry.

It costs one further request per job, so a run is slower with it on, and it is billed per posting read.

## `page` (type: `integer`):

Which result page to start from. Bayt serves 30 jobs a page.

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

Maximum number of rows to save. Set 0 for no limit.

## Actor input object example

```json
{
  "query": "accountant",
  "location": "Dubai",
  "postedWithinDays": "any",
  "sort": "relevance",
  "enrichJobDescription": false,
  "page": 1,
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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 = {
    "query": "accountant",
    "location": "Dubai",
    "page": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/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 = {
    "query": "accountant",
    "location": "Dubai",
    "page": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/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 '{
  "query": "accountant",
  "location": "Dubai",
  "page": 1,
  "maxItems": 20
}' |
apify call thenetaji/bayt-jobs-scraper --silent --output-dataset

```

## MCP server setup

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