# Bahrain Property Finder Real Estate Monitor (`mohamedbr/my-actor-4`) Actor

Watches Property Finder Bahrain and reports only NEW listings: price, area, bedrooms, location and agent — never the same listing twice. For agencies, investors and real-estate market watchers. Part of Mohamed Bourim's 12 MENA monitors on Apify.

- **URL**: https://apify.com/mohamedbr/my-actor-4.md
- **Developed by:** [Mohamed Bourim](https://apify.com/mohamedbr) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 property listings

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

## Bahrain Property Finder Real Estate Monitor

**Every fresh property listing from Property Finder Bahrain — the country's leading real-estate portal — as clean structured data.** Agencies, developers and sellers across Bahrain post their properties on Property Finder (3,284 apartments for sale countrywide at first capture; 16,248 properties for rent), and this Actor collects them from the search-result cards: price in BHD (monthly for rent), bedrooms, bathrooms, area, the full location breadcrumb, the agent's name and agency, the cards' Exclusive / Premium / Featured badges, and the rent cards' structured **Inclusive** flag (bills/EWA included) as `billsInclusive`.

Every record is keyed by the portal's own listing ID, taken from the card's link on the search page. Titles are kept exactly as published — Arabic titles stay Arabic.

### List-only — please read

This Actor reads **listing cards only; it never opens detail pages**. Property Finder restricts its detail pages to ordinary automated access, so fields that exist only on a detail page are **not included** in the output:

- the agent's **phone number**,
- the full description text.

Everything the search card itself publishes **is** included — see the field table below. (Corrected in v0.2, verified against a real captured card: the listing **reference number**, the **amenities** list, the **furnished** status and the **exact listed date** all ride on the list cards themselves, so they are included.) If a card does not print a value, the field is `null`, never invented.

### What you get

One record per published listing (newest first):

| Field | Description |
|---|---|
| `listingId` | The portal's own numeric listing ID — the record identity, e.g. `1000442` |
| `reference` | The agency's listing reference number, as published on the card, e.g. `Reef-BO-AZ-2-resort-sale` |
| `url` | The official listing page the card links to |
| `country` | Always `BH` |
| `listingType` | `buy` or `rent`, as collected |
| `title` | Listing title as published (Arabic titles kept as-is) |
| `price` | Price as a number, in `currency` (`null` when the card publishes none) |
| `currency` | Always `BHD` |
| `pricePeriod` | `month` for rent listings, `total` for buy listings |
| `pricePerSqm` | Price per m² when the card prints it |
| `propertyType` | e.g. `Apartment`, `Villa`, `Land` |
| `bedrooms` | Bedrooms as a number, or the string `studio` for studio units |
| `bathrooms` | Bathrooms as printed, e.g. `2` or `7+` |
| `areaSqm` | Built-up area in m² when published |
| `plotSqm` | Plot size in m² when published |
| `locationText` | The full location breadcrumb, e.g. `The Lagoon, Amwaj Islands, Muharraq Governorate` |
| `locationBuilding` | Building segment of the breadcrumb, when present |
| `locationCommunity` | Community segment, e.g. `The Lagoon` |
| `locationArea` | Area segment, e.g. `Amwaj Islands` |
| `locationGovernorate` | Governorate, e.g. `Muharraq Governorate` |
| `listedDate` | Exact publication moment as published on the card (ISO 8601, UTC), e.g. `2026-11-18T19:34:43Z` |
| `agentName` | Agent as published on the card |
| `agencyName` | Agency as published on the card |
| `isSuperAgent` | Whether the card carries the SUPERAGENT badge |
| `badges` | Card badges as printed, e.g. `["Premium"]`, `["Exclusive"]`, `["Inclusive"]` |
| `billsInclusive` | The rent cards' structured flag: bills (EWA) included |
| `furnished` | Furnished status as published, e.g. `YES` |
| `amenities` | Amenity names as published on the card, e.g. `["Balcony", "Shared Pool", "Security"]` |
| `imageUrl` | First listing photo |
| `portalTotal` | The portal's printed result count for the search (same on every record of a run) |
| `source` | Always `propertyfinder.bh` |
| `firstSeenAt` | Monitor mode only: when this listing was first emitted as new |

### Monitor mode

Set **onlyNew** and the Actor returns only listings that are new since your last run with the same listing type/area — the baseline is kept per stream in a persistent store, a failed run never marks listings as seen, and every successful run refreshes the baseline (even a plain sweep). The first monitor run for a stream only establishes the baseline and returns nothing, so a new schedule never floods you with the portal's backlog. Schedule it daily and you have a live feed of new Bahraini property.

### Inputs

| Input | Description |
|---|---|
| `listingType` | `buy` (for sale, default) or `rent` (monthly prices) |
| `area` | Optional area path segment as printed in portal search URLs (e.g. `manama`, `muharraq`) — empty means all of Bahrain |
| `maxResults` | Maximum listings to return (newest first, default 100; the console pre-fills 10 so a first test run finishes fast — raise it for a full sweep) |
| `onlyNew` | Monitor mode: only listings new since your last run |

### Pricing

Pay per event: **$0.05 per run start + $0.02 per listing record** ($20 / 1,000 records). Platform usage is included.

# Actor input Schema

## `area` (type: `string`):

Optional area path segment as printed in Property Finder Bahrain search URLs (e.g. manama, muharraq, juffair). Empty = countrywide (all of Bahrain).

## `listingType` (type: `string`):

Collect listings for sale (buy) or for rent (rent). Rent prices are monthly; buy prices are totals.

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

Maximum number of listings to return (newest first, 1-5000). Prefilled with 10 so a first run finishes fast; the default for API runs is 100.

## `onlyNew` (type: `boolean`):

Return only listings not seen in previous runs with the same listing type/area. The first monitor run for a stream only establishes the baseline and returns nothing.

## Actor input object example

```json
{
  "area": "",
  "listingType": "buy",
  "maxResults": 10,
  "onlyNew": false
}
```

# Actor output Schema

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

Structured real-estate listing records (price, location, rooms, agent, badges) read from the portal's listing cards.

# 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 = {
    "area": "",
    "listingType": "buy",
    "maxResults": 10,
    "onlyNew": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("mohamedbr/my-actor-4").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 = {
    "area": "",
    "listingType": "buy",
    "maxResults": 10,
    "onlyNew": False,
}

# Run the Actor and wait for it to finish
run = client.actor("mohamedbr/my-actor-4").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 '{
  "area": "",
  "listingType": "buy",
  "maxResults": 10,
  "onlyNew": false
}' |
apify call mohamedbr/my-actor-4 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mohamedbr/my-actor-4"
        }
    }
}
```

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/DMSPbsthu78gx2phm/builds/iRYi0qUHMKDV0HdwX/openapi.json
