# Wasalt.sa Real Estate Scraper (`datascrapers/wasalt-sa-scraper`) Actor

Scrape property listings from Wasalt.sa (Saudi Arabia) using search URLs or city filters. Optionally enrich each listing with full property details.

- **URL**: https://apify.com/datascrapers/wasalt-sa-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 property listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

**Wasalt Scraper** creates a structured dataset of property listings collected from Wasalt. Each dataset item can include the listing id, title, city, price, currency, and bedroom count. Query the source with a city and a sale or rent filter, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![wasalt-sa-scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/wasalt-sa-scraper/wasalt-sa-scraper-value-demo.gif)](https://apify.com/datascrapers/wasalt-sa-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | wasalt.sa |
| Record unit | One property listing |
| Input methods | searchQueries, propertyFor, category |
| Main identifiers | id, url |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 listings on the free plan |

### Coverage and available records

A city search returns sale or rent listings. The stored Riyadh sale includes a floor of 173.16 square metres with 3 bedrooms, price 620000 SAR. id is 5898496.

Set scrapePropertyDetails to charge property-details. maxItems limits listings. The Actor does not enquire or make an offer.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| id | number | no | Listing id. Use this field to deduplicate. | 5898496 |
| url | string | yes | Listing URL. | https://wasalt.sa/en/property/sale/floor-17316-sqm-with-3-bedrooms-5898496 |
| title | string | yes | Listing title. | Floor 173.16 SQM with 3 Bedrooms |
| propertyFor | string | yes | sale or rent. | sale |
| category | string | yes | Category. | Residential |
| propertyType | string | yes | Property type. | Floor |
| price | number | yes | Price amount. | 620000 |
| currency | string | yes | Currency code. | SAR |
| bedrooms | number | yes | Bedroom count. | 3 |
| city | string | yes | City. | Riyadh |

### Example dataset record

```json
{
  "id": 5898496,
  "title": "Floor 173.16 SQM with 3 Bedrooms",
  "propertyFor": "sale",
  "category": "Residential",
  "propertyType": "Floor",
  "price": 620000,
  "currency": "SAR",
  "bedrooms": 3,
  "city": "Riyadh"
}
```

This is a stored Riyadh sale listing.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | city names | Cities to search. |
| propertyFor | string | no | schema default | sale or rent | Transaction type. |
| category | string | no | schema default | residential and other codes | Category. |
| scrapePropertyDetails | boolean | no | false | true or false | Charge property-details. |
| language | string | no | en | language code | Result language. |
| maxItems | integer | no | schema default | integer | Listing cap. |
| proxyConfiguration | object | no | Apify residential | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["Riyadh"], "propertyFor": "sale", "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/wasalt-sa-scraper").call(run_input={
    "searchQueries": ["Riyadh"],
    "propertyFor": "sale",
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("id"), item.get("price"))
```

### Data quality and record handling

Deduplicate on id. price is the amount in currency. expectedRent stays empty on a sale listing. A later run can show a new price for the same id.

### Pricing and cost examples

Pay per event. property and property-details are $1.50 per 1,000 on Free, $1.40 on Bronze, $1.30 on Silver, and $1.20 on Gold. Platinum and Diamond use the Gold price. Platform usage is included. Saving 1,000 listings without details costs $1.50 on Free.

### Limitations and responsible data use

The Actor reads public listings. It does not contact a seller. Wasalt can change a price or withhold a city. Use the data in line with Wasalt terms.

### Dataset questions

#### What is one record?

One listing, keyed by id.

#### Which field should I use to deduplicate?

id.

#### When is property-details charged?

When scrapePropertyDetails is true and the detail payload is saved.

### Related datasets from Data Scrapers

- [Bayut Scraper](https://apify.com/datascrapers/bayut-sa-scraper)
- [MagicBricks Scraper](https://apify.com/datascrapers/magicbricks-scraper)
- [Savills Property Scraper](https://apify.com/datascrapers/savills-scraper)
- [HAR.com Scraper](https://apify.com/datascrapers/har-com-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `searchQueries` (type: `array`):

City or district names on Wasalt (e.g. Riyadh, Jeddah, Al Malqa). The first matching location is used. Primary input for agents — no URL required.

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

Wasalt search pages (sale/rent with city and filters) and/or individual listing URLs. Search URLs such as https://wasalt.sa/en/sale/search?propertyFor=sale\&countryId=1\&cityId=273 are paginated automatically.

## `propertyFor` (type: `string`):

Offer type used when scraping via cityId (ignored when startUrls already include propertyFor).

## `category` (type: `string`):

Property category used with cityId (residential or commercial).

## `cityId` (type: `string`):

Wasalt city id used when startUrls are empty, or as an extra search. Riyadh = 273, Jeddah = 274, Makkah = 275. Leave empty if you only pass startUrls.

## `countryId` (type: `string`):

Wasalt country id. Saudi Arabia is 1.

## `districtId` (type: `string`):

Optional district/zone id to narrow a cityId search.

## `propertyTypes` (type: `array`):

Optional subtype slugs for a cityId search, e.g. apartment, villa, floor, land.

## `scrapePropertyDetails` (type: `boolean`):

When enabled, each listing is enriched from the property details page (description, extra attributes, views). Disabled by default. Direct listing URLs always load details. Charges the property-details event when this returns extra detail data.

## `language` (type: `string`):

Language for listing text and public URLs (English or Arabic).

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

Maximum number of listings to scrape (0 = unlimited).

## `maxConcurrency` (type: `integer`):

Maximum parallel listing/detail requests. Higher is faster; keep moderate to reduce blocks.

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

Proxy settings. Residential proxies are recommended.

## Actor input object example

```json
{
  "searchQueries": [
    "Riyadh"
  ],
  "startUrls": [
    {
      "url": "https://wasalt.sa/en/sale/search?propertyFor=sale&countryId=1&cityId=273&type=residential"
    }
  ],
  "propertyFor": "sale",
  "category": "residential",
  "countryId": "1",
  "scrapePropertyDetails": false,
  "language": "en",
  "maxItems": 100,
  "maxConcurrency": 8,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

JSON array of scraped Wasalt property listings

## `runStats` (type: `string`):

Record counts and timestamps for 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 = {
    "searchQueries": [
        "Riyadh"
    ],
    "startUrls": [
        {
            "url": "https://wasalt.sa/en/sale/search?propertyFor=sale&countryId=1&cityId=273&type=residential"
        }
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/wasalt-sa-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 = {
    "searchQueries": ["Riyadh"],
    "startUrls": [{ "url": "https://wasalt.sa/en/sale/search?propertyFor=sale&countryId=1&cityId=273&type=residential" }],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/wasalt-sa-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 '{
  "searchQueries": [
    "Riyadh"
  ],
  "startUrls": [
    {
      "url": "https://wasalt.sa/en/sale/search?propertyFor=sale&countryId=1&cityId=273&type=residential"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/wasalt-sa-scraper --silent --output-dataset

```

## MCP server setup

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