# Madlan Analytics - Israel Real Estate Market Data (`swerve/madlan-analytics`) Actor

Get Israeli real estate market analytics: median prices, price per sqm, demographics, school ratings, resident reviews, neighborhood boundaries, and transaction history from Madlan.co.il.

- **URL**: https://apify.com/swerve/madlan-analytics.md
- **Developed by:** [Swerve](https://apify.com/swerve) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 42 total users, 6 monthly users, 98.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Madlan.co.il Market Analytics & Neighborhood Data

Get comprehensive real estate market analytics from [Madlan.co.il](https://www.madlan.co.il), Israel's leading real estate data platform (by Localize.city).

### Features

- **Median prices by room count** - buy and rent prices with historical comparison
- **Price per sqm** - city/neighborhood level price density
- **ROI data** - rental yield percentages
- **Demographics** - socioeconomic index, age distribution, education levels, occupation
- **Community ratings** - safety, transport, parks, schools, walkability, shopping, and more
- **Analyst insights** - Hebrew text analysis of neighborhoods (education, livability, real estate)
- **Geographic hierarchy** - district, nearby cities, area structure
- **140+ Israeli cities** - all major cities pre-mapped

### Use Cases

- **Real estate investors** comparing ROI, median price/sqm, and yearly transaction volume across Israeli neighbourhoods to pick where to buy next
- **Relocation consultants** matching international clients to Israeli neighbourhoods based on school ratings, safety scores, and socioeconomic index
- **Urban planners and policy researchers** studying demographic shifts, ownership rates, and education levels at city and sub-city level
- **PropTech & mortgage startups** embedding neighbourhood scorecards (safety, transport, parks, walkability) directly in their product
- **Journalists and analysts** pulling up-to-date Israeli housing market statistics for articles, reports, and market commentary
- **Real estate agencies** arming buyers with data-rich neighbourhood briefings that competitors using only Yad2 can't match

### No Proxy Needed

Unlike web scrapers, this actor queries Madlan's public GraphQL API directly. No proxy or anti-bot bypass required.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `city` | string | City name (Hebrew/English) or Madlan docId. Comma-separated or `"all"` |
| `dataTypes` | array | Data to fetch: `"all"`, `"prices"`, `"demographics"`, `"ratings"`, `"insights"`, `"information"` |

#### Example Input

```json
{
  "city": "Tel Aviv, Jerusalem, Haifa",
  "dataTypes": ["all"]
}
```

### Output

Each city returns one record with:

- **pricePerSqm** - median price per sqm (ILS)
- **yearlyDeals** - number of transactions per year
- **pricesByRooms** - array of `{ rooms, medianBuyPrice, previousBuyPrice, medianRent, rentRoi }`
- **roi** - rental yield percentage
- **bulletinsForSale / bulletinsForRent** - active listing counts
- **schoolsRating** - average school score
- **demographicIndex** - socioeconomic index (1-10)
- **ratings** - community scores: safety, transport, parks, schools, walkability, etc.
- **demographics** - age, education, occupation, ownership distributions
- **insights** - analyst-written Hebrew text insights
- **hierarchy** - district, nearby cities

### Supported Cities

All 140+ Israeli cities supported. Use English or Hebrew names.

### Keywords

Israeli real estate analytics, Madlan market data, Tel Aviv neighbourhood data, Jerusalem demographics API, Israel school ratings, Israeli housing market analytics, real estate ROI Israel, neighbourhood insights Israel, socioeconomic index Israel, price per sqm Israel, madlan.co.il analytics, Israel property market research

# Actor input Schema

## `city` (type: `string`):

City name in Hebrew (e.g. תל אביב) or English (e.g. Tel Aviv). Comma-separated for multiple cities. Use "all" for all 140+ cities.

## `neighbourhood` (type: `string`):

Optional neighbourhood name in Hebrew (e.g. נווה זמר, הצפון הישן). When set, fetches analytics at the neighbourhood level instead of the full city.

## `dataTypes` (type: `array`):

Which data to fetch. Select specific types or 'all' for everything.

## Actor input object example

```json
{
  "city": "Tel Aviv",
  "dataTypes": [
    "all"
  ]
}
```

# 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 = {
    "city": "Tel Aviv"
};

// Run the Actor and wait for it to finish
const run = await client.actor("swerve/madlan-analytics").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 = { "city": "Tel Aviv" }

# Run the Actor and wait for it to finish
run = client.actor("swerve/madlan-analytics").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 '{
  "city": "Tel Aviv"
}' |
apify call swerve/madlan-analytics --silent --output-dataset

```

## MCP server setup

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

```

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/1vxzxbemjlzRz3Chc/builds/q0EOiBAONHQjcet51/openapi.json
