# Dubizzle KSA Scraper (`datascrapers/dubizzle-ksa-scraper`) Actor

Scrape Dubizzle Saudi Arabia listings across property, motors, classifieds, and more — from start URLs, keywords, or category filters.

- **URL**: https://apify.com/datascrapers/dubizzle-ksa-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 $0.97 / 1,000 listings

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

**Dubizzle KSA Scraper** creates a structured dataset of classified listings collected from Dubizzle Saudi Arabia. Each dataset item can include the listing id, title, price, currency, and city. Query the source with a search term and a category, 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.

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

### Dataset at a glance

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

### Coverage and available records

A category search returns the ads Dubizzle sends. The stored phone search includes a Samsung Galaxy S23 Ultra listing in Riyadh, price 4000 SAR. id is 110544447.

Set fetchDetails to charge listing-details. Set fetchContactDetails to charge contact-details. The example does not copy a seller name or phone. maxItems limits listings. The Actor does not message a seller.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| id | number | no | Listing id. Use this field to deduplicate. | 110544447 |
| listingId | number | yes | Dubizzle listing id. | 632516 |
| url | string | yes | English listing URL. | https://www.dubizzle.sa/en/ad/samsung-galaxy-s23-ultra-samsung-watch-and-samsung-ring-ID110544447.htm |
| title | string | yes | Listing title. | Samsung Galaxy S23 Ultra, Samsung Watch and Samsung RING |
| price | number | yes | Price amount. | 4000 |
| currency | string | yes | Currency code. | SAR |
| city | string | yes | City. | Riyadh |
| section | string | yes | Section slug. | mobile-phones-accessories |
| purpose | string | yes | Listing purpose when the source sends it. | |

### Example dataset record

```json
{
  "id": 110544447,
  "listingId": 632516,
  "title": "Samsung Galaxy S23 Ultra, Samsung Watch and Samsung RING",
  "price": 4000,
  "currency": "SAR",
  "city": "Riyadh",
  "section": "mobile-phones-accessories"
}
```

This is a stored Riyadh listing. Seller contact fields are not copied into this example.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | search terms | Terms to search. |
| category | string | no | empty | category slugs | Category path. |
| city | string | no | empty | city slugs | City or country slug. |
| fetchDetails | boolean | no | false | true or false | Charge listing-details. |
| fetchContactDetails | boolean | no | false | true or false | Charge contact-details. |
| maxItems | integer | no | schema default | integer | Listing cap. |
| proxyConfiguration | object | no | Apify residential | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["samsung"], "category": "mobile-phones-accessories/mobile-phones", "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/dubizzle-ksa-scraper").call(run_input={
    "searchQueries": ["samsung"],
    "category": "mobile-phones-accessories/mobile-phones",
    "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. A later run can show a new price for the same id. Contact fields stay absent unless fetchContactDetails is true.

### Pricing and cost examples

Pay per event. dataset-item, listing-details, and contact-details are $1.00 per 1,000 on Free, $0.99 on Bronze, $0.98 on Silver, and $0.97 on Gold. Platinum and Diamond use the Gold price. Platform usage is included. Saving 1,000 listings without extras costs $1.00 on Free.

### Limitations and responsible data use

The Actor reads public ads. It does not message a seller. Dubizzle can change a price or withhold a category. Use the data in line with Dubizzle terms.

### Dataset questions

#### What is one record?

One listing, keyed by id.

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

id.

#### When is contact-details charged?

When fetchContactDetails is true and the contact is saved.

### Related datasets from Data Scrapers

- [Wasalt Scraper](https://apify.com/datascrapers/wasalt-sa-scraper)
- [Bayut Scraper](https://apify.com/datascrapers/bayut-sa-scraper)
- [Housing.com Scraper](https://apify.com/datascrapers/housing-com-scraper)
- [MagicBricks Scraper](https://apify.com/datascrapers/magicbricks-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

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

Dubizzle Saudi Arabia search, category, or listing URLs from www.dubizzle.sa (e.g. https://www.dubizzle.sa/en/mobile-phones-accessories/mobile-phones/ or a single ad URL). Filters already in the URL are kept.

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

Keywords to search on Dubizzle KSA (e.g. "samsung", "apartment riyadh", "camry"). Combined with Category and City when those are set.

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

Marketplace category when you are not pasting a URL. Used with search queries and as a standalone scrape target. Value is the URL slug path (leaf slug is used as the search filter).

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

Geographic scope for category and keyword searches. Ignored when a start URL already includes a region slug.

## `priceMin` (type: `integer`):

Optional lower price bound applied to search results.

## `priceMax` (type: `integer`):

Optional upper price bound applied to search results.

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

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

## `maxPages` (type: `integer`):

Maximum search result pages per start URL or query. Leave at 0 to keep paging until results run out or maxItems is reached. Each page has 36 listings. A value of 1 returns only the first page (36 ads).

## `fetchDetails` (type: `boolean`):

Fetch the full listing JSON for longer descriptions, seller, coordinates, and extra attributes. Search results already include title, price, photos, location, and attributes. Charges the listing-details event per listing that is successfully enriched, in addition to dataset-item. Off by default.

## `fetchContactDetails` (type: `boolean`):

Reveal the seller or agent phone number (and WhatsApp when present). Charges the contact-details event only when a number is actually extracted. Off by default.

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

Apify Residential proxies in Saudi Arabia are recommended.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.dubizzle.sa/en/mobile-phones-accessories/mobile-phones/"
    }
  ],
  "category": "",
  "city": "saudi-arabia",
  "maxItems": 25,
  "maxPages": 1,
  "fetchDetails": false,
  "fetchContactDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SA"
  }
}
```

# Actor output Schema

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

Scraped Dubizzle KSA listings

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

Record count and timestamps for this run

## `input` (type: `string`):

Input configuration stored 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 = {
    "startUrls": [
        {
            "url": "https://www.dubizzle.sa/en/mobile-phones-accessories/mobile-phones/"
        }
    ],
    "maxItems": 25,
    "maxPages": 1,
    "fetchDetails": false,
    "fetchContactDetails": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "SA"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/dubizzle-ksa-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 = {
    "startUrls": [{ "url": "https://www.dubizzle.sa/en/mobile-phones-accessories/mobile-phones/" }],
    "maxItems": 25,
    "maxPages": 1,
    "fetchDetails": False,
    "fetchContactDetails": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "SA",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/dubizzle-ksa-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 '{
  "startUrls": [
    {
      "url": "https://www.dubizzle.sa/en/mobile-phones-accessories/mobile-phones/"
    }
  ],
  "maxItems": 25,
  "maxPages": 1,
  "fetchDetails": false,
  "fetchContactDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SA"
  }
}' |
apify call datascrapers/dubizzle-ksa-scraper --silent --output-dataset

```

## MCP server setup

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