# Hatla2ee Egypt Used Cars Scraper (`zuse-ventures/hatla2ee-scraper`) Actor

Scrape public used-car listings from eg.hatla2ee.com: make, model, year, price, mileage, transmission, fuel, location, features, posting date. No personal contact data.

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

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Hatla2ee Egypt Used Cars Scraper

Collect public used-car listings from [eg.hatla2ee.com](https://eg.hatla2ee.com), one of Egypt's car classifieds sites, as clean structured data: make, model, year, price, mileage, transmission, fuel, colour, location, features, photo count and posting date.

This actor collects only public, non-personal listing data. It does not output seller names, phone numbers, e-mail addresses or profile links, and description text is returned for dealer (Showroom) listings only, with phone numbers, e-mail addresses and links removed. Free text typed by private sellers is not returned (`description` is `null` for them).

### What you get

One flat JSON object per car:

```json
{
  "listingId": "7320176",
  "url": "https://eg.hatla2ee.com/en/car/mercedes/mercedes-benz-eqs-450-plus/7320176",
  "title": "Mercedes EQS 450+ 2023",
  "make": "Mercedes",
  "model": "EQS 450+",
  "year": 2023,
  "price": 4300000,
  "currency": "EGP",
  "mileageKm": 19000,
  "transmission": "Automatic",
  "fuelType": "Electric",
  "color": "Dark blue",
  "condition": "Used",
  "location": "Borg el arab, Alexandria",
  "area": "Borg el arab",
  "city": "Alexandria",
  "sellerType": "Private",
  "imageCount": 7,
  "imageUrl": "https://legion-images.hatla2ee.com/listing_image/f5f07db4-a217-45ee-86bb-4fdece46bf27/full.jpeg",
  "features": [
    "Air Conditioning",
    "Leather seats",
    "AM/FM Radio",
    "AUX"
  ],
  "description": null,
  "datePosted": "2026-11-09T20:20:23.632Z",
  "dateModified": "2026-11-09T20:29:57.000Z",
  "searchUrl": "https://eg.hatla2ee.com/en/car/city/alexandria",
  "scrapedAt": "2026-11-09T22:51:44.430Z"
}
```

(features list shortened here.) Dates are ISO 8601 UTC; numbers are numbers. Fields the site does not show for a car are `null`; nothing is guessed. `sellerType` is only the role word: `Showroom` (a dealer account) or `Private`. In our 40-car test run, make, model, year, price, currency, mileage, transmission, fuel, colour, condition, city, posting date, photo count and main photo were filled for 100% of cars (`description` only for showroom listings), `area` for 70% (many listings only name the city or governorate) and `features` for 60% (sellers leave them empty).

### Input

| Field | Meaning |
|---|---|
| `make` | Make slug as on the site, e.g. `toyota`, `hyundai`, `kia`, `renault`. Empty = all used cars |
| `model` | Model slug, e.g. `corolla`, `elantra` (needs a make) |
| `city` | Site slug, e.g. `cairo`, `alexandria`, `giza`, `new-cairo`. Alone it opens the site's city page; with a make the actor keeps cars whose location text contains the name |
| `startUrls` | Instead of the three fields above: eg.hatla2ee.com used-car listing pages |
| `minPrice`, `maxPrice` | Price range in EGP |
| `minYear`, `maxYear` | Model-year range |
| `postedWithinDays` | Only cars posted in the last N days (needs the car pages) |
| `includeDetails` | Default on: open each car for colour, condition, features, description, dates, exact photo count. Off: search-card data only (about 3x cheaper) |
| `maxItems` | Default 50 |
| `proxyConfiguration` | Optional. Our tests ran without a proxy |

Examples:

```json
{ "make": "hyundai", "model": "elantra", "minYear": 2018, "maxPrice": 1500000, "maxItems": 100 }
```

```json
{ "city": "alexandria", "postedWithinDays": 2, "maxItems": 50 }
```

### Cost and speed

This actor is free: you pay only your own Apify platform usage. In our tests that was about $0.06 per 1,000 cars with car pages and about $0.02 per 1,000 with `includeDetails` off (1 GB memory). Speed is about 0.7 cars per second with car pages, because the actor keeps at least 1 second between requests and uses 2 parallel requests.

### Limits and honest notes

- The site shows no body type, engine size or VIN on its car pages, so those fields do not exist. New-car dealer units that the site mixes into used-car lists are skipped. Imported cars are included but not flagged.
- The site ignores a city given together with a make, so `city` together with `make` is a text match on the location shown on each car (for example `new-cairo` matches "Tagamo3 - New Cairo, Cairo"); a slug that differs from the printed place name can match nothing.
- Filters (price, year, city text, posting date) are applied by the actor after reading each result page. `postedWithinDays` needs car pages for the date and reads whole result pages, so it costs more per returned car.
- The site's search pages (`/search?`), `/ncar`, compare, account and api paths are disallowed by its robots.txt and are never requested; no query strings are sent. A make, model or city the site does not know stops the run with an error (an HTTP 404 or a redirect to another search is detected).
- If the site answers with HTTP 403 or 429 five times in a row the run stops and says so instead of retrying. Failed pages are retried up to 4 times with growing waits.
- `description` is filled for dealer (Showroom) listings only, scrubbed of phone numbers, e-mails and links; it is `null` for private sellers, whose free text can contain personal details. A showroom description can still contain the showroom's own name or address (company data).
- Values are what the seller entered (some cars show an electric or hybrid fuel that looks wrong); the actor does not correct them. A car edited after it was read shows its newer values only on the next run.
- Tested with: all used cars, Toyota, Hyundai Elantra, Kia Sportage, Alexandria, Giza. Other makes and cities use the same page layout but were not tested.
- You are responsible for using the data in line with the law that applies to you and with the site's terms.

# Actor input Schema

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

eg.hatla2ee.com used-car listing pages, for example https://eg.hatla2ee.com/en/car/toyota/corolla or https://eg.hatla2ee.com/en/car/city/alexandria. If set, make / model / city below are ignored. Query strings and paths that the site's robots.txt disallows (search, ncar, compare, account, api) are never requested.

## `make` (type: `string`):

Make slug as in the site's address bar, e.g. toyota, hyundai, kia, nissan, renault, bmw, mercedes. Leave empty for all used cars.

## `model` (type: `string`):

Model slug as on the site, e.g. corolla, megane, sportage. Needs a make. A make or model the site does not know stops the run with an error instead of returning other cars.

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

Site slug such as cairo, alexandria, giza, new-cairo, nasr-city, 6-october. Without make/model it opens the site's city page; together with a make the actor keeps only cars whose location text contains the city name (best effort, text match).

## `minPrice` (type: `integer`):

Skip cars priced below this. Applied by the actor.

## `maxPrice` (type: `integer`):

Skip cars priced above this. Applied by the actor.

## `minYear` (type: `integer`):

Skip cars of an older model year. Applied by the actor.

## `maxYear` (type: `integer`):

Skip cars of a newer model year. Applied by the actor.

## `postedWithinDays` (type: `integer`):

Keep only cars posted in the last N days. Needs detail pages (switches them on). The site's default order is newest first for most pages, but the actor reads pages until it has maxItems matches.

## `includeDetails` (type: `boolean`):

On (default): one extra request per car to add color, condition, features, posting date, the exact photo count and, for dealer listings, the description. Off: only the data on the search result cards (faster and cheaper).

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

Stop after this many cars. Default 50; the Store's automatic daily test uses the prefill (5) so it finishes within seconds.

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

Optional. The site worked from Apify datacenter IPs without a proxy in our tests.

## Actor input object example

```json
{
  "startUrls": [],
  "make": "toyota",
  "includeDetails": true,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `cars` (type: `string`):

Used-car listings as JSON (add ?format=csv or ?format=xlsx for other formats).

# 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": [],
    "make": "toyota",
    "includeDetails": true,
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("zuse-ventures/hatla2ee-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": [],
    "make": "toyota",
    "includeDetails": True,
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("zuse-ventures/hatla2ee-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": [],
  "make": "toyota",
  "includeDetails": true,
  "maxItems": 5
}' |
apify call zuse-ventures/hatla2ee-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zuse-ventures/hatla2ee-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/Eibw8XuFU7Y3cf1xd/builds/LwzSXd8zl20CtvCHu/openapi.json
