Morocco Real Estate Scraper avatar

Morocco Real Estate Scraper

Pricing

from $1.50 / 1,000 scraped listings

Go to Apify Store
Morocco Real Estate Scraper

Morocco Real Estate Scraper

Scrape Moroccan property listings from Sarouty, Avito and Mubawab in one run: sale and rent prices in MAD, surface, price per m², bedrooms, city and district. If one site is down, the others keep running. No personal contact data.

Pricing

from $1.50 / 1,000 scraped listings

Rating

0.0

(0)

Developer

Atlas Data

Atlas Data

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

2

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

Share

Morocco Real Estate Scraper - Sarouty, Avito + Mubawab Listings

Extract property listings from Sarouty.ma, Avito.ma and Mubawab.ma, three of Morocco's main real estate portals, in one run. Type a city, choose buy or rent, pick a property type, and get clean, structured data in seconds: price, surface, price per m², bedrooms, district, agency, publication date and photos. Export to JSON, CSV or Excel, or connect it to your tools through the Apify API.

Keywords: Sarouty scraper, Avito scraper, Avito immobilier, Mubawab scraper, Morocco real estate scraper, Morocco property data, Marrakech real estate, Casablanca apartments, Rabat property prices, Tangier villas, price per m² Morocco, immobilier Maroc, annonces immobilières Maroc, prix m² Maroc.

Version française plus bas

What does Morocco Real Estate Scraper do?

  • 🔀 Three sources in one run: Sarouty.ma, Avito.ma and Mubawab.ma. Same output format for all, with a source field. If one website is down, the others still run.
  • 🏙️ Any city or district in Morocco: "Marrakech", "Casablanca", or a precise district like "Agdal, Rabat"
  • 🏠 20 property types: apartments, villas, riads, houses, land, farms, offices, shops, restaurants and more
  • 🎯 Filters: price, surface, bedrooms, bathrooms
  • ⚡ Fast: around 1,000 listings in a few seconds on Sarouty, about 30 seconds on Avito and Mubawab
  • 💰 All-inclusive price: $1.50 per 1,000 listings, no hidden platform costs
  • 📐 Analysis-ready: price per m² for sales, monthly rent per m² for rentals, prices as numbers, placeholder values (like a 1 MAD price) removed
  • 🔒 Privacy-friendly: agent names, phone numbers and emails are never collected, only the agency name

No URL to copy from the website, no browser, no login.

💰 All-inclusive pricing: $1.50 per 1,000 listings. No proxy or browser costs on top: this actor calls the data source directly, so platform usage is included in the price.

Who is it for?

Real estate investors and Moroccans living abroad

  • Compare price per m² between cities and districts before buying
  • Monitor a city or a district and spot new listings early
  • Find listings priced below the local average

Agencies, developers and property managers

  • Benchmark your listings against the market
  • Track the supply of competitors in your area
  • Follow price trends over time

Analysts, researchers and proptech teams

  • Feed dashboards, price models and market studies
  • Build time series by scheduling regular runs

Real run results

SourceSearchListingsDurationActor cost*
MubawabGuéliz (Marrakech) + Agdal (Rabat) + Fès, rent, apartments, 2+ bedrooms, 30 per location90~20 s~$0.14
MubawabMarrakech, buy, apartments, first 4040~5 s~$0.07
AvitoAgdal (Rabat) + Guéliz (Marrakech), rent, apartments, 2+ bedrooms, max 15,000 MAD80~21 s~$0.13
AvitoFès + Tétouan, buy, villas and riads20~28 s~$0.04
SaroutyMarrakech, buy, apartments319~5 s~$0.48
SaroutyAll Morocco, buy, apartments1,114~5 s~$1.68
SaroutyMarrakech, buy, apartments, 1-3 M MAD, 2+ bedrooms, max 150 m²168~2 s~$0.26

*Total cost including the run start, at the price below. Listing counts change every day as listings are published and removed. Avito and Mubawab runs from November 2026, Sarouty runs from October 2026.

Pricing

Pay per event: you only pay for the listings you get. Platform usage is included: no proxy, browser or compute costs on top.

EventPrice
Run start$0.005
Per listing$0.0015 ($1.50 per 1,000 listings)

Tip: set a Maximum charge per run in the run options to control your budget on large searches.

How to use it

  1. Click Try for free to open the actor in Apify Console.
  2. Type one or more cities (or "District, City").
  3. Choose Buy or Rent and a property type.
  4. Optionally add filters (price, surface, bedrooms).
  5. Click Start, then export the results as JSON, CSV or Excel.

First run recommendation: start with one city and set Max listings to 50. Check the fields and the cost, then scale up.

Input

FieldDescriptionExample
Sourcessarouty, avito, mubawab, or any combination (default: all three)["avito", "mubawab"]
Cities or districtsOne per line. A city, or "District, City" for a precise district. Empty = all of Morocco.Marrakech, Agdal, Rabat
Transactionbuy or rentbuy
Property typeany (residential), any_commercial, all, or a specific typeapartment
Min / Max price (MAD)Price range. For rentals, monthly rent.1000000 / 3000000
Min / Max surface (m²)Surface range60 / 150
Min / Max bedroomsNumber of bedrooms2 / 4
Min bathroomsMinimum number of bathrooms (often missing at the source)2
Max pages per searchOptional limit per search and per source (Sarouty: 100 listings per page, Avito: about 35, Mubawab: about 33)5
Max listingsOptional limit on the total number of listings500
Max listings per cityOptional limit per city or district and per source, so that one big city does not take the whole budget200

Property types: apartment, studio, duplex, triplex, villa, house, riad, chalet, land, farm, building, office, shop, commercial villa, restaurant, factory, warehouse.

On Avito and Mubawab, these types are available: any (residential), all, apartment, studio, duplex, villa, riad, house, land, farm, office, shop (no farms for rent on Mubawab). Other types are searched on Sarouty only.

On Mubawab, price, surface and room filters are applied after download (the website does not take them in the URL), so a filtered search reads more pages. City and district names are matched with their accents: "Fes" is understood as "Fès"; for a district, write "District, City".

Proxy (advanced): if Avito or Mubawab returns errors (for example 403), enable Apify Proxy in the Proxy configuration field.

Simple input:

{
"locations": ["Marrakech"],
"transaction": "buy",
"property_type": "apartment"
}

With filters and several locations:

{
"locations": ["Casablanca", "Agdal, Rabat"],
"transaction": "rent",
"property_type": "apartment",
"max_price": 15000,
"min_bedrooms": 2,
"min_surface": 70
}

Output

Each item is one listing:

{
"source": "sarouty",
"source_listing_id": "907965",
"listing_url": "https://www.sarouty.ma/en/buy/apartment-marrakech-route-de-casablanca-907965/",
"title": "Appartement à Bd Abdelkrim El Khattabi, Piscine + Ascenseur, Marrakech : à vendre",
"transaction_type": "sale",
"property_type": "apartment",
"property_type_raw": "Appartement",
"category": "Residential",
"city": "Marrakech",
"district": "Route de Casablanca",
"price_mad": 1500000,
"currency": "MAD",
"price_period": null,
"surface_m2": 136,
"price_per_m2": 11029.41,
"rent_per_m2": null,
"bedrooms": 2,
"bathrooms": null,
"furnished": null,
"agency_name": "L'Immobilier Sans Frontières",
"publication_date": "2026-09-02T09:02:41.000Z",
"image_url": "https://...",
"images_count": 10,
"scraped_at": "2026-10-07T13:04:29.463Z"
}
FieldDescription
price_madPrice in Moroccan dirhams. For rentals, the monthly rent.
price_periodnull for sales, "month" for rentals, "day" for short-term rentals priced per day or night (Avito)
price_per_m2Sales only: price_mad / surface_m2, when the surface is known
rent_per_m2Monthly rentals only: monthly rent per m²
surface_sourceWhere the surface comes from: "listing" (structured field), "title" or "description" (written in the listing text, Avito and Mubawab), null when unknown
furnishedtrue, false, or null when unknown
source"sarouty", "avito" or "mubawab"
seller_type"professional" (agency, developer) or "private" (individual). Private sellers only exist on Avito; their name and phone number are never collected. null on Mubawab, whose search pages do not say who the seller is.
publication_dateDate the listing was published on the source website (null on Mubawab: not shown in search results)
source_listing_idStable ID, useful to track a listing across runs

Guide: monitor a market over time

  1. Run the actor once for your target city to get a baseline.
  2. In Apify Console, open Schedules and create a daily or weekly schedule with the same input.
  3. Each run creates a new dataset. Compare them using source_listing_id to detect new listings, removed listings and price changes.
  4. Connect the Google Sheets integration to get an automatically updated spreadsheet, or a Slack notification when each run finishes.

Guide: compare districts without coding

  1. Run a city with your property type (for example Marrakech, buy, apartment).
  2. Export to CSV and open it in Excel or Google Sheets.
  3. Create a pivot table: district in rows, average of price_per_m2 in values.
  4. Sort by price per m² to see the most and least expensive districts, then filter listings below the district average to spot potential deals.

Use it from your code

Replace YOUR_API_TOKEN with your Apify API token.

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("atlasdata-labs/morocco-real-estate-scraper").call(run_input={
"locations": ["Marrakech"],
"transaction": "buy",
"property_type": "apartment",
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('atlasdata-labs/morocco-real-estate-scraper').call({
locations: ['Marrakech'],
transaction: 'buy',
property_type: 'apartment',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);

cURL (runs the actor and returns the listings directly)

curl -X POST "https://api.apify.com/v2/acts/atlasdata-labs~morocco-real-estate-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"locations": ["Marrakech"], "transaction": "buy", "property_type": "apartment"}'

Use it with AI assistants (MCP)

Morocco Real Estate Scraper can be used by AI assistants that support the Model Context Protocol, through the Apify MCP server:

https://mcp.apify.com?tools=atlasdata-labs/morocco-real-estate-scraper

Then ask, for example: "Get apartments for sale in Marrakech under 2 million MAD and give me the average price per m² by district."

Integrations

Send the results to Google Sheets, Slack, Make, Zapier, Airbyte, webhooks or your own database with Apify integrations.

FAQ

Why did I get fewer listings than the total shown on Sarouty? Listings are published and removed continuously, and they can move between pages during a run. Duplicates are removed automatically. Filters on surface, bedrooms and bathrooms also exclude listings where that information is missing.

Why is the number of bathrooms often empty? Many agencies don't fill it in on Sarouty. The actor returns what the source provides.

Can I search several cities in one run? Yes, add one city per line. You pay the run start only once.

What happens if one of the websites is down? The actor checks each source and skips the one that does not answer. The run status tells you how many listings came from each source, and which one was skipped.

What if a district name exists in several cities? Add the city: "Agdal, Rabat" instead of "Agdal". The log tells you which location was used.

The actor only collects publicly available listing data and deliberately excludes personal data about agents. You remain responsible for how you use the data, in line with applicable laws (including data protection rules) and the website's terms of use.

Built by Atlas Data

For ready-made analyses of the Moroccan property market (median price per m² by district, weekly updates), visit atlas-data.fr.

Disclaimer

This actor is an independent tool. It is not affiliated with, endorsed by, or sponsored by Sarouty, Avito or Mubawab. All trademarks belong to their respective owners.


Version française

Ce que fait cet actor

Extrayez les annonces immobilières de Sarouty.ma, Avito.ma et Mubawab.ma : tapez une ville, choisissez achat ou location et un type de bien, et obtenez des données propres : prix, surface, prix au m², chambres, quartier, agence, date de publication et photos. Export JSON, CSV ou Excel.

  • 🔀 Trois sources en un seul run : Sarouty.ma, Avito.ma et Mubawab.ma, au même format (champ source). Si un site est en panne, les autres continuent.
  • 🏙️ Toutes les villes et quartiers du Maroc : "Marrakech", ou "Agdal, Rabat" pour un quartier précis
  • 🏠 20 types de biens : appartements, villas, riads, maisons, terrains, bureaux, magasins...
  • 🎯 Filtres : prix, surface, chambres, salles de bain
  • ⚡ Rapide : environ 1 000 annonces en quelques secondes sur Sarouty, une trentaine de secondes sur Avito et Mubawab
  • 🔒 Aucune donnée personnelle : seul le nom de l'agence est conservé

Pour qui ?

  • Investisseurs et MRE : comparer les prix au m² par ville et par quartier, repérer les nouvelles annonces et les biens sous le prix du marché
  • Agences et promoteurs : se situer face au marché et suivre l'offre concurrente
  • Analystes et proptech : alimenter tableaux de bord, modèles de prix et études

Utilisation

  1. Indiquez une ou plusieurs villes (ou "Quartier, Ville")
  2. Choisissez achat ou location et le type de bien
  3. Ajoutez des filtres si besoin (prix, surface, chambres)
  4. Lancez, puis exportez en JSON, CSV ou Excel

Conseil : pour un premier essai, limitez à 50 annonces. Pour suivre le marché, programmez l'actor chaque jour ou chaque semaine.

Tarif

0,005 $ par lancement, puis 1,50 $ pour 1 000 annonces, tout compris : aucun coût de proxy, de navigateur ou de plateforme en plus.

Analyses prêtes à l'emploi

Pour des analyses du marché immobilier marocain (prix médian au m² par quartier, mises à jour chaque semaine), rendez-vous sur atlas-data.fr.

Clause de non-responsabilité

Cet actor est un outil indépendant, non affilié à Sarouty, Avito ou Mubawab, ni approuvé ou sponsorisé par eux. Les marques citées appartiennent à leurs propriétaires respectifs.