# 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
- **Features:** Limited permissions
- **Stats:** 55 total users, 8 monthly users, 83.9% 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?

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

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

### Related

- [Israel Building Permits](https://apify.com/swerve/israel-building-permits) - building permits and urban-renewal activity by address, a leading indicator of new supply.

### 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/VwOfIZ6al1OVrKeyp/openapi.json
