# Dubicars Scraper (`real_spidery/dubicars-scraper`) Actor

Fast and lightweight DubiCars.com scraper allows you to deep dive in the the UAE’s fastest-growing online car market for buyers and sellers. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools

- **URL**: https://apify.com/real\_spidery/dubicars-scraper.md
- **Developed by:** [Real Spidery](https://apify.com/real_spidery) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 28 total users, 0 monthly users, 84.4% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## What does DubiCars Scraper do?

DubiCars Scraper for cars allows you to scrape any cars from **chosen urls** from [DubiCars.com](https://www.dubicars.com/). Here are main functionalities:
1. Extract all DubiCars data from **chosen urls**
2. Extract all DubiCars data the last X days from now from **chosen urls**
3. Extract any DubiCars **individual** cars
4. Export any DubiCars data in many formats, also easy to integrate with your own external systems within minutes


## Input

Full input sample:

```json

{
"start_urls": [{
"url": "https://www.dubicars.com/dubai/new"},
{
"url": "https://www.dubicars.com/search?view=&ms=yes&o=&did=&ul=AD&ma=&mo=&b=&set=bu&c=new&eo=export-only&stsd=&cr=USD&cy=&co=&s=&gi=&f=&g=&l=2&st=&gen=0"
}
],
"scrape_page_limit": 1,
"ad_detail_page_urls": "https://www.dubicars.com/2022-victory-v2-448-aed-monthly-3-yr-warranty-insurance-registration-748194.html,https://www.dubicars.com/2023-mercedes-benz-s-400-s400d-import-japan-vcc-733650.html"
}
````

- `run_mode` By default, test mode is enabled, for the real scraped, please select Production option (prod)

- `start_urls`should be cars search page **without page=your-page or sort=your-sort**. i.e. https://uae.DubiCars.com/cars/used-cars/.

- `scrape_page_limit`if this data is set, only the first `scrape_page_limit` of `start_urls` will be scraped. To remove this limit, remove this `scrape_page_limit`from input

- `ad_detail_page_urls`If you just want to get **only specific cars** corresponding to provided urls, then setup value for this input, **delimiter ","**

- `proxy_settings` To **avoid getting blocked**, setup proxy for running scraper, delimiter ",". i.e. http://username:password@hostname:port,http://auto:apify\_proxy\_EaAFg6CFhc4eKk54Q1HbGDEiUTrk480uZv03@proxy.apify.com:8000

> Note: It's important to setup proxy to avoid getting blocked by DubiCars.com. I am currently using PacketStream for my other scrapers, and would recommend it for their pricing and quality is quite good. Use my link for both to get bonus https://packetstream.io/?psr=5xWZ

## Output

Here is output sample for cars:

```json
{
	"external_url": "https://www.dubicars.com/2023-ford-raptor-r-performance-4x4-local-registration-10-654152.html",
	"updated_at": "24 Jun, 2024",
	"title": "Ford Raptor R Performance 4x4. Local Registration +10%",
	"name": "[Ford Raptor]",
	"current_km": "70",
	"price": "541000",
	"currency": "AED",
	"description": " 2023 Ford F-150 Raptor. BRAND NEW.\nCanadian Specs\n5.2L supercharged 8 Cylinder, 4WD\nExterior Color: Red, Interior: Black\nFeatures!\nApple CarPlay, Back-Up Camera, Back-Up Sensor\nBluetooth Connection, Climate Control\nHeated Front Seat(s), Heated Rear Seat(s)\nNavigation System, Panoramic Vista Roof\nRemote Engine Start, Running Boards/Side Steps\nSafety..\n4-Wheel Disc Brakes, ABS, Adjustable Pedals\nBlind Spot Monitor, Brake Assist, Child Safety Locks\nDaytime Running Lights, Driver Air Bag\nFront Head Air Bag, Front Side Air Bag\nIntegrated Turn Signal Mirrors, Lane Departure Warning, Lane Keeping Assist\nPassenger Air Bag, Passenger Air Bag Sensor\nRear Head Air Bag, Stability Control\nTow Hooks, Traction Control\n12-inch touchscreen and 12.3-inch digital instrument cluster\nUpdated Sync 4 interface with wireless Android Auto and Apple CarPlay\n*One of the standout features of the 2024 F-150 Raptor is its impressive suspension system, specially tuned for off-road adventures.\nFor more information kindly contact us!\nLandline: \n",
	"type": [
		"Product",
		"Car"
	],
	"brand": "Ford",
	"model": "[Raptor]",
	"item_condition": "NewCondition",
	"manufacturer": "Ford",
	"vehicle_id": "DUBICARS000654152",
	"seats": "5",
	"doors": "4",
	"wheels": "17´",
	"years": "2023",
	"color": "Red",
	"interior_color": "Black",
	"transmission_type": "Automatic",
	"body_type": "Pick Up Truck",
	"fuel_type": "Gasoline",
	"export_status": "Can be exported",
	"cylinders": "8",
	"interiors_features": [
		"Air conditioning",
		"Climate control",
		"Cruise control",
		"Power seats"
	],
	"exteriors_features": [
		"Panoramic Roof",
		"Fog lights",
		"Off-road kit",
		"Off-road tyres"
	],
	"safety_features": [
		"4WD",
		"ABS",
		"Airbags (front and side)",
		"Adaptive cruise control",
		"Parking assist",
		"Traction Control"
	],
	"infotainment_features": [
		"Apple Car Play",
		"Bluetooth system"
	],
	"convenience_features": [
		"Parking sensor rear",
		"Power locks",
		"Power Windows",
		"Rear Camera",
		"360 Degree camera"
	],
	"dealer": {
		"name": "Dresden Used Cars",
		"url": "https://www.dubicars.com/dealers/dubai-dresden-used-cars-1564",
		"phone_numbers": [
			"97145869523"
		],
		"whatsapp": "971523064900"
	}
}
```

## Delisting ads

This feature requires to run full scraped. If the ads don't appear in the last full scraped run, then those ads have been delisted.

> Note: This full run will be cost consuming, so you'll need to well-scheduled based on your need.

## Support

If this ready made scraper does not match your need (input, output, pricing) or you get any issue or you need to scrape other websites, please contact us at: <realspidery@gmail.com>
X: [realspidery](https://x.com/realspidery)

# Actor input Schema

## `start_urls` (type: `array`):

Start Urls (Properties page list urls)

## `scrape_page_limit` (type: `integer`):

Only scrape X page of given start\_utls, remove this to run full scrape (max 333)

## `ad_detail_page_urls` (type: `string`):

Enter ad\_detail\_page\_urls, comma as delimiter (i.e: url1,url2,url3)

## `proxy_settings` (type: `string`):

Enter proxy settings, comma as delimiter. i.e: http://<username>:<password>@<hostname>:<port>

## `run_mode` (type: `string`):

Please select Run Mode = Production for real scrape

## Actor input object example

```json
{
  "run_mode": "test"
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("real_spidery/dubicars-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("real_spidery/dubicars-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call real_spidery/dubicars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=real_spidery/dubicars-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Dubicars Scraper",
        "description": "Fast and lightweight DubiCars.com scraper allows you to deep dive in the the UAE’s fastest-growing online car market for buyers and sellers. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools",
        "version": "0.0",
        "x-build-id": "K34U3024MGrgSQJgL"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/real_spidery~dubicars-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-real_spidery-dubicars-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/real_spidery~dubicars-scraper/runs": {
            "post": {
                "operationId": "runs-sync-real_spidery-dubicars-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/real_spidery~dubicars-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-real_spidery-dubicars-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "start_urls": {
                        "title": "Start Urls",
                        "type": "array",
                        "description": "Start Urls (Properties page list urls)",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "scrape_page_limit": {
                        "title": "Only scrape X page of given start_utls, remove this to run full scraped",
                        "type": "integer",
                        "description": "Only scrape X page of given start_utls, remove this to run full scrape (max 333)"
                    },
                    "ad_detail_page_urls": {
                        "title": "Car detail page urls (optional):",
                        "type": "string",
                        "description": "Enter ad_detail_page_urls, comma as delimiter (i.e: url1,url2,url3)"
                    },
                    "proxy_settings": {
                        "title": "Proxy settings",
                        "type": "string",
                        "description": "Enter proxy settings, comma as delimiter. i.e: http://<username>:<password>@<hostname>:<port>"
                    },
                    "run_mode": {
                        "title": "Run mode",
                        "enum": [
                            "test",
                            "prod"
                        ],
                        "type": "string",
                        "description": "Please select Run Mode = Production for real scrape",
                        "default": "test"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
