# Haraj Car Listings Scraper (`sian.agency/haraj-car-listings-scraper`) Actor

Export qualifying Haraj car sale ads with Arabic titles, posted prices, model year, source mileage, fuel, gearbox, location, photos and original advert links.

- **URL**: https://apify.com/sian.agency/haraj-car-listings-scraper.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** E-commerce, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 car 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

## Haraj Car Listings Scraper 🚗

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-1AE392)](https://apify.com/sian.agency?fpr=sian) [![RockAuto Parts](https://img.shields.io/badge/Store-RockAuto%20Parts-1AE392)](https://apify.com/sian.agency/rockauto-product-scraper?fpr=sian) [![AutoZone Products](https://img.shields.io/badge/Store-AutoZone%20Products-1AE392)](https://apify.com/sian.agency/autozone-product-scraper?fpr=sian) [![Advance Auto Parts](https://img.shields.io/badge/Store-Advance%20Auto%20Parts-1AE392)](https://apify.com/sian.agency/advance-auto-parts-product-scraper?fpr=sian)

### 🔎 What is the Haraj Car Listings Scraper — and when should you use it?

The **Haraj Car Listings Scraper** turns qualifying Haraj car sale adverts into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

**Use it when you need:** you need Arabic car sale titles, listed prices, model years, source mileage and original advert links.

**Use something else when:** you need all classifieds, accessories, motorcycles or seller contacts. This actor returns qualifying car sale ads only. Choose a separately verified service for other categories.

### 🤖 Use with AI agents

Already connected to the [Apify MCP server](https://mcp.apify.com)? Just ask for this Actor by name: sian.agency/haraj-car-listings-scraper

**Agentic payments:** Availability of [x402](https://www.x402.org/) and [Skyfire](https://www.skyfire.xyz/) depends on this Actor's current Store eligibility. Check the published listing for supported payment methods. Each saved car advert has a result event. Failed or empty retrievals have no result event. A separate platform run-start fee may apply.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
I want a table of qualifying car sale adverts from Haraj using the Apify Actor `sian.agency/haraj-car-listings-scraper`.

Use it when I need: you need Arabic car sale titles, listed prices, model years, source mileage and original advert links.

Don't use it when: This actor returns qualifying car sale ads only. Choose a separately verified service for other categories.

How to call it: use search, provide the cars category searchUrl and choose maxResults.

Start with this input:
{
  "operation": "search",
  "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
  "maxResults": 25
}

Ask me how many car sale adverts to return, then run the Actor and summarise the results as a table.
```

**Things you can ask your agent for:**

- *Export 25 car sale adverts from Haraj.*
- *Compare model years and listed prices for the returned car ads.*
- *Prepare an Arabic car shortlist with original advert links.*

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at [apify.com/sian.agency/haraj-car-listings-scraper.md](https://apify.com/sian.agency/haraj-car-listings-scraper.md).

### 📋 Overview

Export qualifying Haraj car sale adverts with Arabic titles, listed prices, model years and source links. The actor keeps ads that include structured sale, fuel, gearbox and new/used condition information.

The cars category also includes parts. This release excludes incomplete vehicle records and ads explicitly tagged as parts, motorcycles or heavy trucks. Sellers can misclassify an advert, so review each shortlisted car on Haraj.

***

### ✨ Features

- 🚗 **Car sale ads:** A conservative vehicle filter rather than the whole classifieds category.
- 💰 **Listed prices:** Source price text and a numeric price when available.
- 📅 **Model year:** Preserve the seller's structured model-year field.
- ⚙️ **Vehicle fields:** Source fuel, gearbox, condition and four-wheel-drive flag.
- 📍 **Locations:** City and neighborhood when supplied.
- 🖼️ **Photos and links:** Preview image plus original advert URL.
- 📄 **Run report:** Saved car adverts, failures and available platform charge information.

***

### 🎬 Quick Start

Keep the cars category URL in the Console example. Choose a result limit, run the Actor and export the dataset.

```json
{
  "operation": "search",
  "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
  "maxResults": 25
}
```

***

### 🚀 Getting Started

#### 1. Choose car sale ads

Use the Haraj cars category URL shown in the example. Other categories and individual advert URLs are unsupported.

#### 2. Set the result limit

Choose maxResults. The free-plan evaluation returns at most 25 qualifying adverts per run.

#### 3. Review and export

Open the dataset and compare listed prices and model years. Open the Processing Report from the run Output tab for a summary.

***

### 📥 Input Configuration

| Field | Type | Required for work | Meaning |
|---|---|---|---|
| operation | string | No | search is the only operation. |
| searchUrl | string | Yes | The public Haraj cars category URL. |
| maxResults | integer | No | Maximum unique qualifying cars, 1–10000; default 25. |

The Console URL is a prefill. API callers must supply searchUrl; an empty input makes no car request. Other tags, filters and unrecognized inputs are rejected.

***

### 📤 Output

Each row has 21 fields. Missing values remain null. A false four-wheel-drive flag and a zero mileage source value remain distinct from missing data.

| Field | Type | Meaning |
|---|---|---|
| imageUrl | string | First available preview photo. |
| listingTitle | string | Arabic advert title. |
| price | number | Source price converted to a number when possible. |
| priceText | string | Source formatted price. |
| modelYear | integer | Seller's model-year value. |
| mileageRaw | number | Unconverted source mileage number. |
| fuel | string | Source fuel code. |
| gear | string | Source gearbox code. |
| condition | string | NEW or USED source value. |
| fourWheelDrive | boolean | Source four-wheel-drive flag. |
| city | string | Source city. |
| listingId | integer | Stable numeric advert ID. |
| listingUrl | string | Original Haraj advert URL. |
| processedAt | string | Capture timestamp. |

**Mileage units are unverified.** mileageRaw is the source number; do not assume kilometres or multiply it by 1000. Prices and vehicle details are seller claims. No seller identities, descriptions, phone numbers or account information are included.

***

### 💼 Use Cases & Examples

#### 1. Saudi vehicle buyers

Compare listed car prices, model years and reported condition before contacting a seller.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

#### 2. Vehicle sourcing teams

Export public car advert links to review a vehicle shortlist.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

#### 3. Price analysts

Study asking prices for qualifying Haraj car sale ads.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

#### 4. Automotive researchers

Compare vehicle model years, fuel and gearbox source codes.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

#### 5. Agency analysts

Deliver an Arabic car-advert table with source links and capture dates.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

#### 6. Data engineers

Join repeated car exports by numeric listing ID.

**Input:** Cars category URL and maximum adverts.

**Output:** Arabic car advert rows with source links.

**Use:** Review the shortlisted adverts on Haraj before making a decision.

***

### 🔗 Integration Examples

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('sian.agency/haraj-car-listings-scraper').call({"operation": "search", "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/", "maxResults": 25});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('sian.agency/haraj-car-listings-scraper').call(run_input={'operation': 'search', 'searchUrl': 'https://haraj.com.sa/tags/حراج السيارات/', 'maxResults': 25})
for car in client.dataset(run['defaultDatasetId']).iterate_items():
    print(car)
```

#### cURL

```bash
curl -X POST 'https://api.apify.com/v2/acts/sian.agency~haraj-car-listings-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"operation": "search", "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/", "maxResults": 25}'
```

#### Automation workflows

Schedule in Apify or connect n8n, Zapier or Make. Join repeated exports by listingId. Disappearance from a partial export does not establish that a car was sold.

***

### 📊 Performance & Pricing

The two source probes returned 21 and 20 category adverts. The conservative vehicle filter retained 12 and 10 candidates before deduplication. Those are observations, not a promise about future inventory.

BRONZE pricing is $0.0025 per saved car advert plus $0.005 for the platform run-start event. FREE tier pricing is $0.01 per advert plus $0.05 per start. Confirm your current plan price on the listing before starting a run.

Paid plans can request the full configured result limit; free plans return up to 25 qualifying cars. Errors and empty results have no car-listing charge. The separate platform start fee can still apply.

[Check current pricing](https://apify.com/sian.agency/haraj-car-listings-scraper?fpr=sian) before running. Runtime varies with export size and current availability.

***

### ❓ FAQ

**Does it export all cars?**

No. Only sale ads with vehicle fuel, gearbox and new/used condition metadata qualify.

**What units does mileage use?**

mileageRaw preserves the source number. Its unit has not been independently verified; do not interpret it as kilometres.

**Can I use other categories?**

No. Only the public cars category is supported.

**Are seller contacts included?**

No. This release excludes seller identities, contacts and descriptions.

**Do empty inputs fetch cars?**

No. API callers must supply searchUrl.

**What happens when login is required?**

The run stops without solving challenges or logging in.

***

### 🐛 Troubleshooting

**The URL was rejected.** Use the cars category URL shown above, with no query parameters. Percent-encoded Arabic text is accepted.

**A car advert is absent.** The actor requires structured sale, fuel, gearbox and NEW/USED condition fields. Incomplete or miscategorized records can be excluded.

**The run stopped.** Check your account budget and result limit. If Haraj requires login or denies access, wait before trying again.

**Mileage looks small.** It is the source value. Its unit has not been verified, so compare it with the original advert before interpreting it.

***

### ⚠️ Trademark Disclaimer

Haraj is a trademark of its owner. SIÁN Agency is independent and is not affiliated with Haraj. The logo is an independent vehicle-data icon.

***

### ⚖️ Legal

Haraj terms prohibit copying and republication and describe action against unlawful data collection. Its intellectual-property policy restricts copying, redistribution and modification. Obtain the rights you need before reusing any advert data or photos.

Public access is not a reuse licence. The actor does not collect seller contact fields or private accounts. Personal data, if present, can be protected by the GDPR and applicable privacy laws.

[Haraj terms](https://haraj.com.sa/terms.php) · [Haraj intellectual-property policy](https://haraj.com.sa/intellectual-property/) · [Apify scraping background](https://blog.apify.com/is-web-scraping-legal/).

***

### 🤝 Support

[Report an issue](https://apify.com/sian.agency/haraj-car-listings-scraper/issues) with the run URL and input, or email <apify@sian-agency.online>.

Built by [SIÁN Agency](https://www.sian-agency.online) · [More tools](https://apify.com/sian.agency?fpr=sian).

# Changelog

This Actor's version history is a separate document: https://apify.com/sian.agency/haraj-car-listings-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

🚗 **CAR SALES:** Export qualifying sale ads from the Haraj cars category. One event per saved car advert, plus the platform run-start event.

## `searchUrl` (type: `string`):

🚗 **CAR SALE ADS:** Use the Haraj cars category URL shown here. Encoded spaces and Arabic characters are accepted. Other tags, account pages, search parameters and car-detail URLs are unsupported. API calls must supply this URL.

## `maxResults` (type: `integer`):

🔢 **RESULT LIMIT:** Upper bound on qualifying unique car adverts. Free plans return at most 25 per run. Paid plans use your requested limit. Some car ads are excluded when their vehicle metadata is incomplete.

## Actor input object example

```json
{
  "operation": "search",
  "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
  "maxResults": 25
}
```

# Actor output Schema

## `harajCarListings` (type: `string`):

Every car listing this run returned.

## `scrapingSummary` (type: `string`):

HTML summary showing successful and failed results with key metrics

# 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 = {
    "operation": "search",
    "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/haraj-car-listings-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 = {
    "operation": "search",
    "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/haraj-car-listings-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 '{
  "operation": "search",
  "searchUrl": "https://haraj.com.sa/tags/حراج السيارات/",
  "maxResults": 25
}' |
apify call sian.agency/haraj-car-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sian.agency/haraj-car-listings-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/QZ0wAso1Lhu8Gvh4S/builds/yEgbnheeus59glQfB/openapi.json
