# Syarah Car Scraper | Saudi Arabia Listings (`rainminer/syarah-scraper`) Actor

Scrape new and used car listings from Syarah.com, Saudi Arabia's online vehicle marketplace. Export SAR prices, model year, mileage, photos, and URLs from browse or cardetail pages to JSON, CSV, or Excel for pricing research and lead generation.

- **URL**: https://apify.com/rainminer/syarah-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 car listing scrapeds

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

### What does Syarah Car Scraper do?

**Syarah Car Scraper** extracts **new and used car listings** from [Syarah.com](https://syarah.com/) — Saudi Arabia's online vehicle marketplace. Paste a browse URL (for example `https://syarah.com/en/autos`) or a single listing URL and export structured inventory data — **SAR price, year, mileage, and photos** — without writing any code.

Run it on the **Apify platform** to schedule crawls, export JSON/CSV/Excel, rotate proxies, monitor failures, and integrate results via API.

### Why scrape syarah.com?

- **Market research** — Track asking prices, years, and mileage across Saudi used- and new-car inventory.
- **Inventory monitoring** — Watch listings as they appear on Syarah autos pages.
- **Competitive intelligence** — Compare stock by brand, model, and price band in SAR.
- **Lead generation** — Collect vehicle URLs and specs for outreach or enrichment.
- **Data pipelines** — Feed structured car inventory into dashboards, alerts, or valuation tools.

### How to use Syarah Car Scraper

1. Open the Actor in Apify Console.
2. Add one or more **Syarah search or listing URLs** under **Start URLs**.
3. Set **Maximum items** (listings per start URL).
4. Run the Actor and download the results from the **Dataset** tab.

### Input

Syarah Car Scraper accepts **Start URLs**, **maxItems** (per start URL), and an optional **proxy configuration**. See the **Input** tab in Apify Console for details.

Supported start URLs:

- All autos: `https://syarah.com/en/autos`
- Brand filters: `https://syarah.com/en/autos/toyota`
- Used cars: `https://syarah.com/en/autos/used-cars`
- Listing pages: `https://syarah.com/en/cardetail/mg-rx5-used-314750`

### Output

Each result is a structured vehicle object. You can download the dataset in **JSON, CSV, Excel, or HTML**.

```json
{
  "id": "314750",
  "title": "MG RX5 STD 2023",
  "price": 38600,
  "currency": "SAR",
  "year": 2023,
  "mileage": 24252,
  "imageUrl": "https://cdn.syarah.com/photos-thumbs/online-v1/0x300/online/posts/314750/orignal-1788269726-603_cut.jpg?v=1",
  "imageUrls": [
    "https://cdn.syarah.com/photos-thumbs/online-v1/0x300/online/posts/314750/orignal-1788269726-603_cut.jpg?v=1"
  ],
  "url": "https://syarah.com/en/cardetail/mg-rx5-used-314750",
  "searchUrl": "https://syarah.com/en/autos"
}
```

### What data can you extract from syarah.com?

| Field | Description |
| --- | --- |
| id | Unique listing identifier |
| title | Listing headline (make, model, trim, year) |
| price | Numeric cash asking price |
| currency | Price currency (SAR) |
| year | Model year |
| mileage | Odometer reading in km |
| imageUrl | Primary listing photo |
| imageUrls | Full photo gallery when available |
| url | Public listing URL |
| searchUrl | Source browse URL for listings found via search |

### How much does it cost to scrape syarah.com?

This Actor uses a lightweight **HTTP crawler (no browser)**. A typical test run with a handful of listings per URL usually finishes in under a few minutes on the Apify free tier. Larger crawls scale with the number of search pages paginated.

If you encounter blocks, enable an Apify Proxy with **Saudi Arabia** country code in the proxy configuration.

### Tips and advanced options

- Use `https://syarah.com/en/autos` for the full inventory hub (thousands of listings).
- Increase **maxItems** to paginate deeper through browse results (`?page=`).
- Add brand or condition paths (`/en/autos/toyota`, `/en/autos/used-cars`) to narrow results.

### FAQ, disclaimers, and support

**Is web scraping syarah.com legal?**

This Actor collects **publicly visible** listing data shown on Syarah browse and detail pages. You are responsible for complying with Syarah's terms of service and applicable laws in your jurisdiction.

**Do I need a proxy?**

Many runs work without a proxy. If Cloudflare or geo checks block requests, enable Apify Proxy with country **SA**.

**How do I get help?**

Open an issue from the Actor page or contact the developer via Apify Console.

### Image Credit

Image credit: [syarah.com](https://syarah.com/)

# Actor input Schema

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

Syarah browse URLs (e.g. https://syarah.com/en/autos or https://syarah.com/en/autos/toyota) or individual listing URLs (/en/cardetail/...).

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

Maximum number of vehicle listings to return per start URL.

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

Proxy settings. Enable Saudi Arabia residential or datacenter proxy only if you encounter blocks.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://syarah.com/en/autos"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://syarah.com/en/autos"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/syarah-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://syarah.com/en/autos" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/syarah-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://syarah.com/en/autos"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rainminer/syarah-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/syarah-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/5b0r6fWxdk6htekg9/builds/86rWcRqBBTk5qyRFk/openapi.json
