# Mubawab.ma Housing Scraper (`scraper_guru/mubawab-housing-scraper`) Actor

Scrapes Moroccan real estate listings from mubawab.ma and outputs a structured dataset ready for ML model training (price prediction, classification).

- **URL**: https://apify.com/scraper\_guru/mubawab-housing-scraper.md
- **Developed by:** [LIAICHI MUSTAPHA](https://apify.com/scraper_guru) (community)
- **Categories:** Real estate, Developer tools
- **Stats:** 12 total users, 4 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-event

## 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

## Mubawab.ma Housing Scraper

> **The Moroccan Housing Dataset** — an open-source [Apify Actor](https://apify.com/actors) that scrapes real estate listings from [mubawab.ma](https://www.mubawab.ma) and produces a flat, ML-ready dataset modelled after the classic California Housing dataset (Géron, *Hands-On ML*, Chapter 2).

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-00b4f0?logo=apify&logoColor=white)](https://apify.com/scraper_guru/mubawab-housing-scraper)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Node.js 20](https://img.shields.io/badge/Node.js-20-green?logo=node.js)](https://nodejs.org)
[![Playwright](https://img.shields.io/badge/Playwright-Chromium-45ba4b?logo=playwright)](https://playwright.dev)
[![Open Issues](https://img.shields.io/github/issues/MuLIAICHI/Mubawab-Housing-Scraper)](https://github.com/MuLIAICHI/Mubawab-Housing-Scraper/issues)

---

### Table of Contents

- [What it does](#what-it-does)
- [Output dataset](#output-dataset)
- [Quick start](#quick-start)
- [Input configuration](#input-configuration)
- [Apify Console output](#apify-console-output)
- [ML usage example](#ml-usage-example-python)
- [Architecture](#architecture)
- [Cities & property types covered](#cities--property-types-covered)
- [Contributing](#contributing)
- [License](#license)

---

### What it does

Morocco's real estate market lacks structured, machine-readable public data. This actor closes that gap by crawling **mubawab.ma** — Morocco's largest property portal — and extracting every listing into a single CSV/JSON dataset suitable for:

- 🏠 **Price prediction models** (regression)
- 📍 **Geo-spatial analysis** by city and neighborhood
- 📊 **Market trend dashboards**
- 🤖 **AI / LLM-powered property assistants**

The scraper uses a **two-phase Playwright crawl** (search results → detail pages) and persists output through the Apify storage API so you can export CSV/JSON directly from the platform or via API with zero extra tooling.

---

### Output dataset

Every scraped listing maps to one row with these fields:

| Field | Type | Description |
|---|---|---|
| `priceDh` | `number \| null` | **Target variable** — price in Moroccan Dirhams (MAD) |
| `pricePerM2` | `number \| null` | Derived: price ÷ surface (MAD/m²) |
| `surfaceM2` | `number \| null` | Living area in m² |
| `numRooms` | `integer \| null` | Bedrooms |
| `numBathrooms` | `integer \| null` | Bathrooms |
| `floor` | `integer \| null` | Floor (0 = ground / RDC) |
| `propertyType` | `string \| null` | `appartement`, `villa`, `maison`, `riad`, … |
| `standing` | `string \| null` | `economique`, `moyen_standing`, `haut_standing` |
| `state` | `string \| null` | `neuf`, `bon_etat`, `a_renover`, `en_cours_de_construction` |
| `city` | `string \| null` | Lowercase ASCII name, e.g. `casablanca` |
| `neighborhood` | `string \| null` | Sub-area within the city |
| `transactionType` | `string \| null` | `vente` or `location` |
| `url` | `string` | Direct link to the listing on mubawab.ma |
| `title` | `string \| null` | Raw listing title |
| `scrapedAt` | `string` | ISO-8601 scrape timestamp |

#### Sample record

```json
{
  "priceDh": 1250000,
  "pricePerM2": 12500,
  "surfaceM2": 100,
  "numRooms": 3,
  "numBathrooms": 2,
  "floor": 3,
  "propertyType": "appartement",
  "standing": "moyen_standing",
  "state": "bon_etat",
  "city": "casablanca",
  "neighborhood": "maârif",
  "transactionType": "vente",
  "url": "https://www.mubawab.ma/fr/a/12345/appartement-a-vendre-casablanca",
  "title": "Appartement à vendre à Maârif, Casablanca",
  "scrapedAt": "2025-03-27T14:32:00.000Z"
}
````

***

### Quick start

#### Option A — Run on Apify (no setup needed)

1. Open the actor on the [Apify Store](https://apify.com/scraper_guru/mubawab-housing-scraper)
2. Click **Try for free**
3. Configure inputs in the visual form
4. Click **Start** → export results as **CSV** or **JSON** once the run completes

#### Option B — Run locally

**Prerequisites**: Node.js 20+, [Apify CLI](https://docs.apify.com/cli)

```bash
## 1. Install the CLI
npm install -g apify-cli

## 2. Clone this repo
git clone https://github.com/MuLIAICHI/Mubawab-Housing-Scraper.git
cd Mubawab-Housing-Scraper

## 3. Install dependencies
npm install

## 4. Quick test — 10 listings only
apify run --input='{"maxListings": 10, "transactionType": "vente"}'

## 5. Full run — all 9 cities, up to 5 000 listings
apify run
```

Results are saved locally under `storage/datasets/mubawab-housing/`.

#### Option C — Deploy to your Apify account

```bash
apify login    ## Enter your Apify API token
apify push     ## Build & upload the actor
```

Then run and schedule from [console.apify.com](https://console.apify.com).

***

### Input configuration

Configure the actor via the Apify Console form or by passing a JSON input:

| Parameter | Type | Default | Description |
|---|---|---|---|
| `transactionType` | `string` | `"vente"` | `"vente"` · `"location"` · `"both"` |
| `cities` | `string[]` | *(all 9 cities)* | Filter to specific cities, e.g. `["casablanca", "rabat"]` |
| `propertyTypes` | `string[]` | 4 main types | `appartements` · `villas` · `maisons` · `riads` · `terrains` · `bureaux` · `commerces` |
| `maxListings` | `integer` | `5000` | Hard cap on detail pages scraped (0 = unlimited) |
| `maxConcurrency` | `integer` | `5` | Parallel browser tabs (max 20) |
| `startUrls` | `array` | `[]` | Override seed URLs; leave empty for auto-generation |
| `proxyConfiguration` | `object` | Apify Residential | Proxy settings — residential proxy is strongly recommended |

#### Example input

```json
{
  "transactionType": "vente",
  "cities": ["casablanca", "marrakech", "rabat"],
  "propertyTypes": ["appartements", "villas"],
  "maxListings": 1000,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### Apify Console output

After a run completes, the **Output tab** in Apify Console shows four named links:

| Output | Description |
|---|---|
| **Housing listings (Overview)** | All scraped records in a table view (city, type, price, surface, rooms, URL) |
| **ML-ready dataset** | Same records restricted to the 12 ML feature columns — export this as CSV for model training |
| **Run statistics** | JSON with total listings, pages visited, null-rates per field, elapsed time |
| **Debug HTML snapshots** | HTML captured when a page could not be parsed — useful for debugging after site updates |

***

### ML usage example (Python)

```python
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import r2_score, mean_absolute_error

## 1. Load dataset exported from Apify as CSV (ML Dataset view)
df = pd.read_csv("mubawab_dataset.csv")

## 2. Drop rows missing the target variable
df = df.dropna(subset=["priceDh", "surfaceM2"])

## 3. Encode categoricals
df = pd.get_dummies(df, columns=["propertyType", "standing", "state", "city", "transactionType"])

## 4. Feature engineering — Géron-style derived features
df["roomsPerM2"] = df["numRooms"] / df["surfaceM2"]

feature_cols = [c for c in df.columns if c not in ["priceDh", "pricePerM2", "neighborhood", "url", "title", "scrapedAt"]]
X = df[feature_cols].fillna(0)
y = df["priceDh"]

## 5. Train & evaluate
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
model = RandomForestRegressor(n_estimators=200, random_state=42)
model.fit(X_train, y_train)

y_pred = model.predict(X_test)
print(f"R²  : {r2_score(y_test, y_pred):.3f}")
print(f"MAE : {mean_absolute_error(y_test, y_pred):,.0f} MAD")
```

***

### Architecture

```
.
├── .actor/
│   ├── actor.json                ← Actor metadata + schema references
│   ├── input_schema.json         ← Typed input form for Apify Console
│   ├── output_schema.json        ← Output tab links (dataset + KV store)
│   ├── dataset_schema.json       ← Field definitions + two table views
│   └── key_value_store_schema.json ← KV store collections (stats / snapshots)
│
├── src/
│   ├── main.js                   ← Entry point: reads input, seeds URLs, starts crawler
│   ├── router.js                 ← Crawlee router with LISTING_PAGE + DETAIL_PAGE labels
│   ├── parsers/
│   │   ├── listingPage.js        ← Extracts listing URLs + next-page link from search results
│   │   └── detailPage.js        ← Extracts all 15 schema fields from a property detail page
│   └── utils/
│       └── normalize.js          ← Pure functions: parsePrice(), parseSurface(), normalizeCity()
│
├── Dockerfile                    ← Apify Playwright image (Node.js 20 + Chromium)
├── package.json
└── README.md
```

#### Crawl flow

```
main.js ──builds seed URLs──► LISTING_PAGE handler
                                    │
                              ┌─────▼──────────────────────────┐
                              │  Parse search result page       │
                              │  Extract listing URLs           │
                              │  Follow rel="next" pagination   │
                              └─────┬──────────────────────────┘
                                    │ enqueue detail URLs
                              ┌─────▼──────────────────────────┐
                              │  DETAIL_PAGE handler            │
                              │  detailPage.js extracts fields  │
                              │  normalize.js cleans values     │
                              │  Actor.pushData() → dataset     │
                              └────────────────────────────────┘
```

#### Key technical decisions

- **Playwright** (not Cheerio) — mubawab.ma is JS-rendered; a headless browser is required
- **Multiple CSS selector fallbacks** — the site uses different HTML structures for individual listings vs. project/ensemble listings
- **Polite delays** — 500–800 ms between requests to avoid rate-limiting
- **Named dataset** `mubawab-housing` — makes the output easy to find and retrieve via API

***

### Cities & property types covered

**Cities (default):** Casablanca · Marrakech · Rabat · Agadir · Tanger · Fès · Meknès · Oujda · Tétouan

**Property types:** Appartements · Villas · Maisons · Riads · Terrains · Bureaux · Commerces

Pass any subset via the `cities` and `propertyTypes` input fields.

***

### Proxy recommendation

mubawab.ma blocks datacenter IPs. Using **Apify Residential Proxy** (the default) is strongly recommended for production runs. A free Apify account includes a proxy trial.

Without a proxy, you will encounter CAPTCHAs and 403 errors.

***

### Contributing

Contributions are welcome! Here is how to get started:

1. **Fork** this repository
2. Create a feature branch: `git checkout -b feat/your-feature`
3. Make your changes and run a quick local test:
   ```bash
   apify run --input='{"maxListings": 5}'
   ```
4. Open a **Pull Request** with a clear description of what changed and why

#### Good first issues

- Add support for additional Moroccan cities (`agadir`, `beni-mellal`, `laayoune`…)
- Improve null-rate for `standing` and `state` fields on project listings
- Add `listing_id` extraction from the URL slug
- Write unit tests for `normalize.js` (Jest or Vitest)

Please open an [issue](https://github.com/MuLIAICHI/Mubawab-Housing-Scraper/issues) before starting large changes.

***

### License

[MIT](LICENSE) © 2025 [Mustapha LIAICHI](https://github.com/MuLIAICHI)

***

*Built with [Crawlee](https://crawlee.dev) · [Playwright](https://playwright.dev) · [Apify SDK](https://docs.apify.com/sdk/js)*

# Actor input Schema

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

Optional. Override seed URLs. Leave empty to auto-generate URLs for all cities and property types.

## `transactionType` (type: `string`):

Scrape sale listings, rental listings, or both.

## `cities` (type: `array`):

List of Moroccan cities. Leave empty to scrape all cities.

## `propertyTypes` (type: `array`):

Filter by property type. Leave empty to scrape all types.

## `maxListings` (type: `integer`):

Maximum number of property detail pages to scrape. Use 0 for unlimited.

## `maxConcurrency` (type: `integer`):

Max parallel browser tabs. Lower = slower but more stable.

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

Use Apify Proxy to avoid blocks.

## Actor input object example

```json
{
  "startUrls": [],
  "transactionType": "vente",
  "cities": [],
  "propertyTypes": [
    "appartements",
    "villas",
    "maisons",
    "riads"
  ],
  "maxListings": 5000,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped property records displayed in the Overview table view (city, type, price, surface, rooms, link…).

## `mlDataset` (type: `string`):

The same records restricted to the 12 ML feature columns matching the Géron California Housing schema (price\_dh, surface\_m2, num\_rooms…). Export this view as CSV for model training.

## `runStats` (type: `string`):

JSON record with scraping run metrics: total listings, pages visited, null-rates per field, and elapsed time.

## `debugSnapshots` (type: `string`):

HTML snapshots saved when a detail page could not be parsed. Use these to debug selector drift after site updates.

# 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("scraper_guru/mubawab-housing-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("scraper_guru/mubawab-housing-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 scraper_guru/mubawab-housing-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Mubawab.ma Housing Scraper",
        "description": "Scrapes Moroccan real estate listings from mubawab.ma and outputs a structured dataset ready for ML model training (price prediction, classification).",
        "version": "0.2",
        "x-build-id": "A5pX8Dy580vpauGIL"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scraper_guru~mubawab-housing-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scraper_guru-mubawab-housing-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/scraper_guru~mubawab-housing-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scraper_guru-mubawab-housing-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/scraper_guru~mubawab-housing-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scraper_guru-mubawab-housing-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": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Optional. Override seed URLs. Leave empty to auto-generate URLs for all cities and property types.",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "transactionType": {
                        "title": "Transaction Type",
                        "enum": [
                            "both",
                            "vente",
                            "location"
                        ],
                        "type": "string",
                        "description": "Scrape sale listings, rental listings, or both.",
                        "default": "vente"
                    },
                    "cities": {
                        "title": "Cities to scrape",
                        "type": "array",
                        "description": "List of Moroccan cities. Leave empty to scrape all cities.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "propertyTypes": {
                        "title": "Property types",
                        "type": "array",
                        "description": "Filter by property type. Leave empty to scrape all types.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "appartements",
                                "villas",
                                "maisons",
                                "riads",
                                "terrains",
                                "bureaux",
                                "commerces"
                            ]
                        },
                        "default": [
                            "appartements",
                            "villas",
                            "maisons",
                            "riads"
                        ]
                    },
                    "maxListings": {
                        "title": "Max listings",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of property detail pages to scrape. Use 0 for unlimited.",
                        "default": 5000
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Max parallel browser tabs. Lower = slower but more stable.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy to avoid blocks.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
