# Qatarsale.com Qatar Car Listings Scraper (`rainminer/qatarsale-com-scraper`) Actor

Extract public car listings from Qatarsale.com, Qatar's classifieds marketplace. Capture asking price in QAR, year, make, model, photos, and listing URL from cars-for-sale search pages. Export structured vehicle inventory to JSON, CSV, or Excel for market research and pricing analysis in Qatar.

- **URL**: https://apify.com/rainminer/qatarsale-com-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** E-commerce, Lead generation
- **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 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

### What does Qatarsale.com Cars Scraper do?

**Qatarsale.com Cars Scraper** extracts **public car listings** from [Qatarsale.com](https://qatarsale.com/ar/products/cars_for_sale) — Qatar's classifieds marketplace. Paste a cars-for-sale search URL or a single vehicle URL and export structured data: **title, price (QAR), year, make, model, photos, and listing URL** — without writing code.

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

### Why scrape Qatarsale.com cars?

- **Inventory research** — Track asking prices, years, and models listed in Qatar.
- **Dealership intelligence** — Compare private and showroom stock.
- **Lead generation** — Collect listing URLs for outreach.
- **Pricing models** — Build QAR price datasets by make, model, and year.

### How to use Qatarsale.com Cars Scraper

1. Open the Actor in Apify Console.
2. Add one or more **Qatarsale.com cars-for-sale or listing URLs** under **Start URLs**.
3. Set **Maximum items** (cars per start URL).
4. Keep **Apify Proxy** enabled if the site blocks datacenter traffic.
5. Run the Actor and download results from the **Dataset** tab.

### Input

Supported start URLs:

- Cars for sale: `https://qatarsale.com/ar/products/cars_for_sale`
- Car detail: `https://qatarsale.com/ar/product/{slug}-{id}`

English `/en/cars` is not a live listings path. Use the Arabic cars-for-sale search above.

### Output

Each result is a structured vehicle object:

```json
{
  "id": "628476",
  "title": "مزاراتي ليفانت اس كيو 4",
  "price": 94000,
  "currency": "QAR",
  "year": 2018,
  "make": "مزاراتي",
  "model": "ليفانت",
  "imageUrl": "https://media-blob.qatarsale.com/628476-productcovers/3be74ca4-a933-4e3c-899d-5b36eb350c75_0_cover.webp",
  "imageUrls": [
    "https://media-blob.qatarsale.com/628476-productcovers/3be74ca4-a933-4e3c-899d-5b36eb350c75_0_cover.webp"
  ],
  "url": "https://qatarsale.com/ar/product/maserati_levante_sq4_2018_black_automatic_suv-628476",
  "searchUrl": "https://qatarsale.com/ar/products/cars_for_sale"
}
```

### How much does it cost?

This Actor uses a lightweight **HTTP crawler (no browser)**. **Apify Proxy residential** is the default because datacenter IPs receive Cloudflare 403s on this site.

### FAQ

#### Does this scrape all classifieds on Qatarsale?

No. This Actor is scoped to **cars for sale**. Other verticals (rentals, general classifieds, showroom homepages) are out of scope.

#### How does maxItems work?

`maxItems` is counted **per start URL**, not across the whole run.

### Image Credit

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

# Actor input Schema

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

Qatarsale.com cars-for-sale search URLs (e.g. https://qatarsale.com/ar/products/cars\_for\_sale) or individual car listing URLs.

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

Maximum number of car listings to return per start URL.

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

Proxy settings. Qatarsale.com blocks datacenter IPs; Apify residential proxy is the default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://qatarsale.com/ar/products/cars_for_sale"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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://qatarsale.com/ar/products/cars_for_sale"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/qatarsale-com-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://qatarsale.com/ar/products/cars_for_sale" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/qatarsale-com-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://qatarsale.com/ar/products/cars_for_sale"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call rainminer/qatarsale-com-scraper --silent --output-dataset

```

## MCP server setup

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