Discover/mubawab.ma API
live

mubawab.ma APImubawab.ma

Access Mubawab.ma apartment listings via API. Search by city, paginate results, and retrieve price, rooms, seller, and contact data for Moroccan properties.

Endpoints
2
Updated
3mo ago
Try it
City slug to search in (e.g. casablanca, rabat, marrakech, tanger, agadir)
Page number for pagination, must be a positive integer
api.parse.bot/scraper/56aec35b-5e3a-491d-8543-287613d93fd9/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/56aec35b-5e3a-491d-8543-287613d93fd9/search_apartments_for_sale?city=casablanca&page=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Search for apartments for sale in a specific Moroccan city. Returns paginated listings with title, price, URL, and listing ID.

Input
ParamTypeDescription
citystringCity slug to search in (e.g. casablanca, rabat, marrakech, tanger, agadir)
pageintegerPage number for pagination, must be a positive integer
Response
{
  "type": "object",
  "fields": {
    "city": "string, city slug used in the search",
    "page": "integer, current page number",
    "listings": "array of listing objects with id, url, title, and price"
  },
  "sample": {
    "data": {
      "city": "casablanca",
      "page": 1,
      "listings": [
        {
          "id": "8322586",
          "url": "https://www.mubawab.ma/fr/a/8322586/vend-appartement-%C3%A0-palmier-3-chambres-terrasse-et-ascenseur",
          "price": "2 200 000 DH",
          "title": "Vend appartement à Palmier. 3 chambres. Terrasse et ascenseu..."
        },
        {
          "id": "8137157",
          "url": "https://www.mubawab.ma/fr/pa/8137157/nozha-r%C3%A9sidence-%C3%A0-ain-seba%C3%A2-appartement-3-chambres-salon",
          "price": "1 060 620 DH",
          "title": "Nozha Résidence à Ain Sebaâ _ Appartement 3 chambres Salon"
        }
      ]
    },
    "status": "success"
  }
}

About the mubawab.ma API

The Mubawab.ma API provides 2 endpoints for accessing apartment-for-sale listings on Morocco's major real estate portal. Use search_apartments_for_sale to retrieve paginated listings across cities like Casablanca, Rabat, and Marrakech, and get_listing_details to pull 10 structured fields per property including price, room count, seller name, and currency.

Search Apartments by City

The search_apartments_for_sale endpoint accepts a city slug (e.g. casablanca, rabat, marrakech, tanger, agadir) and an optional page integer for pagination. Each response returns the matched city, the current page, and a listings array. Each listing object includes a numeric id, a direct url to the detail page, a title, and a price.

Retrieve Full Listing Details

Pass any url from search results into get_listing_details to get the complete property record. The response returns price as a number with an explicit currency field (e.g. MAD), plus rooms, bedrooms, bathrooms, location, title, seller, and listing_id. The seller field contains either the individual owner name or the agency name as listed on the property page.

Coverage and Data Shape

Coverage is limited to apartments for sale. The city parameter uses Mubawab's own slug conventions, so values must match the site's URL structure. Pagination starts at page 1; the API echoes back the page number in the response so you can track position across paginated crawls. Not all listings include a complete set of room or bathroom counts — those fields may be absent for listings where the seller has not filled in full details.

Common use cases
  • Build a Moroccan property price index by aggregating price and location fields across cities.
  • Track listing inventory changes over time by comparing paginated search_apartments_for_sale results on a schedule.
  • Enrich a CRM with seller contact details by feeding listing URLs into get_listing_details.
  • Compare average price per room across cities using price, rooms, and city fields.
  • Generate neighborhood-level reports by grouping location values from detail responses.
  • Alert users when new listings appear in a target city by diffing listing IDs between crawl runs.
  • Populate a property comparison tool with bedroom, bathroom, and price data for side-by-side display.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Mubawab.ma have an official public developer API?+
Mubawab.ma does not publish a public developer API or documented data feed. This Parse API is the structured way to access listing data programmatically.
What does `get_listing_details` return beyond what the search results include?+
search_apartments_for_sale returns only id, url, title, and price per listing. get_listing_details adds rooms, bedrooms, bathrooms, location, seller, currency, and listing_id — fields that are only available on the individual listing page.
Does the API cover rental listings or only apartments for sale?+
Currently, only apartments for sale are covered. You can fork this API on Parse and revise it to add a rentals endpoint targeting Mubawab's rental listing pages.
Are property types other than apartments available, such as villas or commercial spaces?+
Not currently. Both endpoints are scoped to apartments. You can fork this API on Parse and revise it to target villas, riads, or commercial listings by adjusting the search parameters.
How should I handle missing room or bathroom counts in listing detail responses?+
Those fields are only populated when the seller has provided them. Treat rooms, bedrooms, and bathrooms as nullable in your data model and filter out null values before any aggregation.
Page content last updated . Spec covers 2 endpoints from mubawab.ma.
Related APIs in Real EstateSee all →
idealista.pt API
Search and filter property listings across Portugal by location, price, and size, then access detailed information about each property including its characteristics and pricing history. Monitor how property prices change over time to help you make informed decisions about buying or selling real estate.
cookcountyil.gov API
Search Cook County property tax records, look up court cases, find code violations, and get department contact information all in one place. Quickly access public records and government contacts without navigating multiple websites.
amberstudent.com API
Search student accommodation listings across popular cities and access comprehensive property information including room types, pricing trends, and tenant reviews. Get detailed insights into student housing options to compare amenities, prices, and community feedback all in one place.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
homes.com API
Search for real estate agents and properties available for sale or rent, while accessing detailed agent profiles with their 1-year transaction history, active listings, and performance statistics. Get comprehensive property details and agent information all in one place to help you find the right agent or property that matches your needs.
beijing.anjuke.com API
Search Beijing real estate listings for second-hand homes and rentals, view detailed property information and price trends, and discover agents and community-specific listings. Get access to the Beijing house price index to track market movements and make informed decisions about property purchases or rentals.
58.com Housing API
Access real-time housing market data from 58.com (58同城), China's largest classifieds platform. Search house price trends across 31+ major Chinese cities at city, district, and neighborhood levels, and browse hot new property developments with prices, floor plans, and location details.
zapimoveis.com.br API
Search and filter real estate listings across Brazil on ZAP Imóveis — the country's largest property portal. Retrieve listings for sale or rent with detailed attributes including price, location, size, bedrooms, bathrooms, parking, and amenities. Supports location autocomplete, property type discovery, and full listing detail retrieval.