# Mudah.my Listings Scraper (`bovi/mudah-scraper`) Actor

Collect public Mudah.my listings from supplied pages. Get titles, URLs, prices, locations, sellers, images, and optional vehicle/property fields. Run with URLs or queries; no Mudah login. Pricing: $0.0016 per item + $0.00005 per Actor Start on Free.

- **URL**: https://apify.com/bovi/mudah-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce, Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 mudah.my listings scrapers

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

## Mudah.my Listings Scraper

Extract publicly visible classified listings from Mudah.my search, category, and individual listing pages into structured dataset records. You can collect listing cards, structured JSON-LD, and server-rendered page data without signing in to Mudah.

- Collect titles, canonical URLs, prices, categories, regions, seller information, and images
- Search public listings by query, location, or category
- Build structured price and category datasets for analysis
- Extract listing images alongside structured listing records

### What you get

Records can differ by category and listing; fields that Mudah does not provide are not filled. For card-derived records, `image_urls` holds only the cover image while `image_count` is the card's media count, so in the sample below `image_count` (3) is larger than the one URL in `image_urls`.

| Field family | Fields | Type | Description |
|---|---|---|---|
| Identity | `id`, `url`, `title`, `description` | string | Listing identifiers, canonical URL, title, and listing body when available. |
| Identity | `ad_id` | integer | Mudah ad identifier when present in page data. |
| Price | `price` | number | Numeric asking price in Malaysian ringgit. |
| Price | `price_label`, `currency` | string | Displayed price and ISO currency code when the displayed price is in RM. |
| Classification | `category`, `condition`, `listing_type` | string | Listing category, item condition, and arrangement type when present. |
| Location | `region`, `subarea` | string | Mudah region and subarea. |
| Seller | `seller_name`, `seller_kind`, `verification_status` | string | Seller details and verification information when present in listing data or cards. |
| Seller | `seller_type_code` | integer | Seller type code from listing data. |
| Seller | `seller_is_company` | boolean | Company seller flag when listing data provides it. |
| Property | `property_type`, `building_name`, `rooms`, `bathrooms`, `size`, `size_unit` | string | Property attributes when Mudah provides them. |
| Vehicle | `make`, `model`, `year`, `mileage`, `transmission`, `fuel_type`, `engine_capacity`, `vehicle_type` | string | Vehicle attributes when Mudah provides them. |
| Timing | `posted_at`, `expires_at`, `posted_label` | string | Posting, expiry, and relative posting information when Mudah provides them. |
| Media | `image_url` | string | Primary listing image URL. |
| Media | `image_urls` | array of strings | Listing image URLs; for card-derived records only the cover image. |
| Media | `image_count` | integer | Image count provided by Mudah or shown on a listing card. |
| Emission | `scraped_at` | ISO 8601 string | UTC time when this Actor emitted the record. |

### Sample output

One real record, shortened:

```json
{
  "id": "116161810",
  "url": "https://www.mudah.my/joker-player-sling-bag-black-116161810.htm",
  "title": "Joker Player Sling Bag (Black)",
  "price": 59,
  "price_label": "RM 59",
  "currency": "MYR",
  "condition": "Pre-owned (Used)",
  "category": "Bags & Wallets",
  "region": "Kedah",
  "image_url": "https://img.rnudah.com/grids/30/3008445139573456274.jpg",
  "image_urls": ["https://img.rnudah.com/grids/30/3008445139573456274.jpg"],
  "image_count": 3,
  "seller_kind": "private",
  "posted_label": "Today, 15:38",
  "scraped_at": "2026-10-28T07:47:48.008774+00:00"
}
```

### Pricing

The Actor uses pay-per-event billing. The dataset-item event represents one scraped result with all fields.

| Charge event | Free-plan price |
|---|---:|
| `apify-actor-start` | $0.00005 per event |
| `apify-default-dataset-item` | $0.0016 per event |

For example, **1,000 results = $1.60005 on the Free plan** when the run has one Actor Start event: 1,000 × $0.0016 plus $0.00005. For 10,000 results, the calculation is 10,000 × $0.0016 plus $0.00005 = **$16.00005 on the Free plan**. `apify-actor-start` is charged once per GB of run memory, minimum one event.
The Apify Free plan includes **$5 of monthly platform usage credit**. At the Free-plan event prices above, the $5 credit covers the event charges for 3,124 results, counting one Actor Start event. This is a billing figure, not a promise that a single URL yields that many listings.

You pay only for the events listed above. This Actor does not use the Pay per event + usage option, so the platform usage of your runs (compute, proxy traffic and storage) is not billed to you separately.

### How to use

1. **Add** Mudah.my search, category, or individual listing URLs in `startUrls`.
2. **Enter** search terms in `queries` to append `q=` searches to the selected `location` and `category` path; queries also search listing text (`search_include=subject%2Cbody`).
3. **Set** `location`, `category`, and `maxResults` to control query paths and the run-wide output cap.
4. **Start** the run. When it finishes, open the dataset and use each record's `url` to open the listing on Mudah.my.
5. **Repeat** the run on a schedule with Apify Schedules.

Example input:

```json
{
  "startUrls": ["https://www.mudah.my/malaysia/cars-for-sale"],
  "queries": ["BMW 740Le"],
  "location": "malaysia",
  "category": "cars-for-sale",
  "maxResults": 50
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---|
| `startUrls` | Optional Mudah.my search, category, or listing URLs. Accepted Mudah URLs are processed as starting pages. | `[]`; if empty, the Malaysia for-sale page is used. |
| `queries` | Optional terms appended as `q=` to the selected location and category path. | `[]` |
| `location` | Location path used when building query URLs, such as `malaysia` or `selangor`. | `"malaysia"` |
| `category` | Category path used when building query URLs, such as `for-sale`, `cars-for-sale`, or `houses-for-sale`. The aliases `cars`, `motorcycles`, `houses`, `apartments`, `properties` and `all` are mapped to Mudah category paths. | `"for-sale"` |
| `maxResults` | Maximum number of listing records saved in the run. | `50` |
| `proxyConfiguration` | Apify proxy settings for the run. | The input form prefills Apify residential proxy. If the field is omitted from the input, the run uses no proxy. |

### Limits and edge cases

The Actor fetches each start or query URL once and does not follow pagination. A run returns only the listings found on the pages you supply, so `maxResults` is a cap, not a target: a high value does not mean that many records are reachable from a single URL. To collect more, supply more start URLs or query variants.

Each parsed, de-duplicated record is pushed to the dataset as it is processed. If a run is aborted, times out, or fails after records have been pushed, those records remain in the dataset.

| Condition | What you see | What to do |
|---|---|---|
| `maxResults` is reached | `maxResults` is the run-wide cap on saved records. | Add more start URLs or more query variants to collect more records. |
| `maxResults` is zero or negative | The run returns without saving records. | Use an integer of at least `1`. |
| No `startUrls` and no usable queries are entered | The Actor opens `/malaysia/for-sale`. | Enter a specific Mudah URL or query if you need a narrower collection. |
| A starting URL is not an HTTP(S) Mudah URL | The URL is skipped during start-URL construction. | Use a URL on `mudah.my` or one of its subdomains. |
| A page contains no parsed listings | The Actor logs that the page contained no parsed listings and continues with the next URL. | Check the URL and try another search or category page. |
| A page fetch fails | The fetch retries eligible failures up to three attempts before the URL is skipped; records already pushed from earlier URLs remain in the dataset. | Review the run log and retry the run or use another starting URL. |
| The same listing is found through multiple URLs | The Actor de-duplicates records by listing ID, or by URL when no ID is available. | No action is required. |

### FAQ

#### How much does it cost to scrape Mudah.my listings?

Pricing is pay-per-event; the Pricing section gives the Free-plan event prices and worked example.

#### What happens if the Actor returns an empty dataset?

A page with no parsed listings is logged and skipped. Check that the URL is a Mudah.my search, category, or listing page, then try a narrower or different URL. An empty result can also occur when the page does not contain data recognized by the Actor’s listing parsers.

#### Does the Actor require a Mudah.my login or buyer API key?

No Mudah.my login is used. The Actor reads publicly visible pages and does not sign in to Mudah; buyer credentials, cookies, and API keys are not required.

#### Is scraping public Mudah.my data legal and allowed?

The Actor reads publicly visible data on Mudah.my. Whether a particular collection or use is legal or allowed depends on the source’s terms and the buyer’s use case; review applicable ToS and law for your situation.

### Related actors

- [Chotot Scraper - Vietnam Classifieds Listings](https://apify.com/bovi/chotot-scraper) — related classifieds listing extraction for Vietnam.
- [4zida.rs Scraper - Serbia Property Listings](https://apify.com/bovi/4zida-scraper) — related property listing extraction for Serbia.
- [Aruodas.lt Property Listings Scraper](https://apify.com/bovi/aruodas-scraper) — related property listing extraction for Lithuania.

# Actor input Schema

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

Optional Mudah.my search, category, or listing URLs. If empty, the actor uses the Malaysia for-sale page.

## `queries` (type: `array`):

Optional terms appended as q= to the selected location and category page.

## `location` (type: `string`):

Mudah location path used for queries, for example malaysia or selangor.

## `category` (type: `string`):

Mudah category path used for queries, for example for-sale, cars-for-sale, or houses-for-sale.

## `maxResults` (type: `integer`):

Maximum number of listing records to save.

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

Optional Apify proxy configuration. Disabled by default; settings are passed to the actor proxy helper unchanged.

## Actor input object example

```json
{
  "startUrls": [],
  "queries": [],
  "location": "malaysia",
  "category": "for-sale",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with the scraped listing records.

# 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": [],
    "queries": [],
    "location": "malaysia",
    "category": "for-sale",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/mudah-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": [],
    "queries": [],
    "location": "malaysia",
    "category": "for-sale",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/mudah-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": [],
  "queries": [],
  "location": "malaysia",
  "category": "for-sale",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/mudah-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/mudah-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/WTPkrijd9VdHdDT0u/builds/bmgBMari8fxtQbilx/openapi.json
