# Moteur.ma Used Cars Scraper (Morocco) (`scraper_guru/moteur-ma-used-cars-scraper`) Actor

Scrape used car listings from moteur.ma, Morocco: make, model, year, price in MAD, mileage, fuel, gearbox, city and date posted. Filter by brand, city or body type. No seller data.

- **URL**: https://apify.com/scraper_guru/moteur-ma-used-cars-scraper.md
- **Developed by:** [LIAICHI MUSTAPHA](https://apify.com/scraper_guru) (community)
- **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 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

## Moteur.ma Used Cars Scraper (Morocco)

Scrape used car listings from moteur.ma, one of Morocco's main car classifieds sites. You get make, model, year, asking price in MAD, mileage, fuel, gearbox, city and the date each car was posted, in clean typed fields ready for a spreadsheet or a price model.

Filter by brand, city or body type, or paste any moteur.ma search page with the filters you set on the site. The Actor reads the public search pages only, with no login and no browser, and returns no seller details.

### Features

- ✅ **Clean car fields:** `make`, `model`, `year`, `price` (number, MAD), `mileageKm` (number), `fuel`, `gearbox`, `city`, `postedAt` (ISO date with Morocco time zone).
- ✅ **Make and model split for you:** two-word brands such as Mercedes-Benz, Land Rover or Alfa Romeo are handled.
- ✅ **Simple filters:** brand, city and body type, or any moteur.ma search URL (price range, year, mileage, fuel and more).
- ✅ **Newest first:** listings come in the site's own order, so a small run gives you the latest cars.
- ✅ **No duplicates:** a listing that shows up in two of your searches is returned once.
- ✅ **No personal data:** no seller names or phone numbers, the free-text description is left out, and phone numbers typed into a title are masked.
- ✅ **Only pay for what you keep:** with "Only listings with a price" on, listings that say "Appeler pour le prix" are skipped and not charged.

### Use cases

- **Used car price research:** what a 5-year-old Clio or Tucson is listed for in Morocco, by city and by mileage.
- **Depreciation analysis:** how much value each model or brand loses per year of age.
- **Dealers and importers:** watch the stock and asking prices of the models you buy and sell.
- **Car valuation and lending:** feed a pricing model with fresh asking prices.
- **Market studies and journalism:** brand shares, the move to automatic gearboxes, diesel vs petrol vs hybrid.

We used this data for our own report: on moteur.ma, a Dacia loses about 4% of its asking price per year of age and a VW Touareg about 14% (50,423 listings, November 2026).

### Input

| Field | Type | Description |
|---|---|---|
| `brand` | text | Brand as written on moteur.ma: `dacia`, `renault`, `volkswagen`, `mercedes-benz`, `land-rover`... Empty = all brands. |
| `city` | text | City, for example `Casablanca`, `Rabat`, `Marrakech`, `Tanger`. Empty = all of Morocco. |
| `bodyType` | select | Citadine, Micro-citadine, Compact, Berline, Break, SUV et 4x4, Monospace, Coupé, Cabriolet, CC. |
| `searchUrls` | list of URLs | Advanced: any moteur.ma used-car search page. When set, the three filters above are ignored. |
| `maxItems` | number | Stop after this many listings (default 200). |
| `onlyWithPrice` | true/false | Skip listings without a price (default off). |

Example input:

```json
{
  "brand": "dacia",
  "city": "Casablanca",
  "maxItems": 500,
  "onlyWithPrice": true
}
```

### Output

One row per car listing:

```json
{
  "listingId": "703875",
  "url": "https://www.moteur.ma/fr/voiture/achat-voiture-occasion/detail-annonce/703875/renault-express.html",
  "title": "Renault express",
  "makeSlug": "renault",
  "make": "Renault",
  "model": "Express",
  "year": 2022,
  "price": 145000,
  "currency": "MAD",
  "priceText": "145,000 MAD",
  "mileageKm": 78000,
  "fuel": "Diesel",
  "gearbox": "Manuelle",
  "city": "Casablanca",
  "postedAt": "2026-11-10T13:28:36+01:00",
  "imageUrl": "https://content.avito.ma/classifieds/images/10156940224?t=moteur_feed",
  "fromAvitoFeed": true,
  "searchUrl": "https://www.moteur.ma/fr/voiture/achat-voiture-occasion/",
  "page": 1,
  "source": "moteur.ma",
  "scrapedAt": "2026-11-10T13:39:26.830Z"
}
```

| Field | Meaning |
|---|---|
| `listingId`, `url` | moteur.ma listing ID and link |
| `title` | Listing title as written by the seller (phone numbers masked) |
| `make`, `model`, `makeSlug` | Brand and model, from the listing's own link |
| `year` | Model year |
| `price`, `currency`, `priceText` | Asking price as a number in MAD (null when the ad says "Appeler pour le prix"), and the text shown |
| `mileageKm` | Mileage in km, as written in the ad |
| `fuel`, `gearbox` | Diesel, Essence, Hybride, Electrique... and Manuelle or Automatique |
| `city` | City of the listing |
| `postedAt` | When the listing was posted or last refreshed, Morocco time |
| `imageUrl` | Main photo link |
| `fromAvitoFeed` | `true` when moteur.ma shows the listing from Avito's feed (its photo is served by Avito) |
| `searchUrl`, `page` | Which search and page the listing came from |
| `source`, `scrapedAt` | `moteur.ma` and the time of your run |

A `SUMMARY` record in the run's key-value store lists, for each search, the pages read, listings returned and why it stopped.

### FAQ

**How many listings are on moteur.ma?**
About 127,000 used cars in November 2026. A full brand like Dacia or Volkswagen has several thousand.

**How fast is it?**
One search page (30 listings) every 1.5 seconds or so, on purpose, to stay light on the site. 1,000 listings take about one minute.

**Are these sale prices?**
No. They are asking prices set by private sellers and dealers. Buyers usually negotiate.

**Why do some listings have no price?**
About one listing in five on moteur.ma says "Appeler pour le prix" (call for the price). `price` is then `null`. Turn on "Only listings with a price" to skip them.

**What is `fromAvitoFeed`?**
moteur.ma also shows listings from Avito, the other big Moroccan marketplace. On those, the photo is served by Avito. In our test runs this was a third to a half of the newest listings. Use the field if you want to separate the two, or to avoid counting the same car twice when you also use Avito data.

**Does it read the listing pages?**
No. Everything comes from the search result cards, which keeps runs fast and returns no seller details.

**Is this allowed?**
The Actor reads public search pages that moteur.ma's robots.txt allows, at a slow rate, without logging in. Its terms of use have no clause against automated access. It returns no personal data. You are responsible for using the data in line with the laws that apply to you, including Morocco's law 09-08 on personal data.

# Actor input Schema

## `brand` (type: `string`):

Only this brand, as written on moteur.ma: dacia, renault, volkswagen, mercedes-benz, land-rover... Leave empty for all brands.

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

Only cars listed in this city, for example Casablanca, Rabat, Marrakech, Tanger, Agadir. Leave empty for all of Morocco.

## `bodyType` (type: `string`):

Only this body type.

## `searchUrls` (type: `array`):

Any moteur.ma used-car search page, with the filters you set on the site (price, year, mileage, fuel...). Example: https://www.moteur.ma/fr/voiture/achat-voiture-occasion/marque/toyota/?ville=Rabat. When set, Brand, City and Body type are ignored.

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

Stop after this many listings (newest first). A page has 30 listings and takes about 2 seconds.

## `onlyWithPrice` (type: `boolean`):

Skip listings that say "Appeler pour le prix" (about 1 in 5). Skipped listings are not charged.

## Actor input object example

```json
{
  "brand": "dacia",
  "maxItems": 200,
  "onlyWithPrice": false
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

## `summary` (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 = {
    "brand": "dacia"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraper_guru/moteur-ma-used-cars-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 = { "brand": "dacia" }

# Run the Actor and wait for it to finish
run = client.actor("scraper_guru/moteur-ma-used-cars-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 '{
  "brand": "dacia"
}' |
apify call scraper_guru/moteur-ma-used-cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraper_guru/moteur-ma-used-cars-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/JkWa0kA2GfGoyEal6/builds/T0EYCcSJI2kCdOzCH/openapi.json
