# Duna House Hungary Homes Listings Scraper (`rainminer/dh-hu-scraper`) Actor

Extract Hungarian real estate listings from Duna House on dh.hu — apartments and houses for sale and rent. Capture titles, prices, locations, types, and photos from public pages. Export JSON, CSV, or Excel on Apify to monitor the market and compare prices.

- **URL**: https://apify.com/rainminer/dh-hu-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** 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 $2.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### What does Duna House Hungary Scraper do?

**Duna House Hungary Scraper** extracts **Hungarian real estate listings** from [dh.hu](https://dh.hu/) — the Duna House portal for apartments and houses across Budapest and the rest of Hungary. Paste a search URL (for example `https://dh.hu/elado-ingatlan/lakas-haz`) or a single listing URL and export structured property data — **price, location, property type, and photos** — without writing any code.

Run it on the **Apify platform** to schedule crawls, export JSON/CSV/Excel, rotate proxies, monitor failures, and integrate results via API.

### Why scrape dh.hu?

- **Market research** — Compare asking prices for Hungarian apartments and houses.
- **Inventory monitoring** — Track new Duna House ads as they appear in search results.
- **Location intelligence** — Analyze supply by city, district, and property type.
- **Lead generation** — Collect listing URLs and property details for outreach or enrichment.
- **Data pipelines** — Feed structured Hungary real estate data into dashboards or valuation tools.

### How to use Duna House Hungary Scraper

1. Open the Actor in Apify Console.
2. Add one or more **dh.hu search or listing URLs** under **Start URLs**.
3. Set **Maximum items** (listings per start URL).
4. Run the Actor and download the results from the **Dataset** tab.

### Input

Duna House Hungary Scraper accepts **Start URLs**, **maxItems** (per start URL), and an optional **proxy configuration**. See the **Input** tab in Apify Console for details.

Supported start URLs:

- Search pages: `https://dh.hu/elado-ingatlan/lakas-haz`, `https://dh.hu/kiado-ingatlan/`, `https://dh.hu/ingatlankereso`
- Listing pages: `https://dh.hu/ingatlan/HZ015812/elado-haz-borsod-abauj-zemplen-megye-miskolc`

### Output

Each result is a structured property object. You can download the dataset in **JSON, CSV, Excel, or HTML**.

```json
{
  "id": "HZ015812",
  "title": "3534 Miskolc",
  "price": 58500000,
  "currency": "HUF",
  "location": "3534 Miskolc",
  "propertyType": "Ház",
  "imageUrl": "https://cdn2.fs2.matrixhu.com/storage/production/fileID/6a93ea286d2edcf322130185/fileVersionKey/JjNDE4MGE1OTAwYWM0Mz/fileVersionID/propertyListCard/fileVersionForceKey/c90c0fcb33f013a01127d6aa04f91e27",
  "imageUrls": [
    "https://cdn2.fs2.matrixhu.com/storage/production/fileID/6a93ea286d2edcf322130185/fileVersionKey/JjNDE4MGE1OTAwYWM0Mz/fileVersionID/propertyListCard/fileVersionForceKey/c90c0fcb33f013a01127d6aa04f91e27"
  ],
  "url": "https://dh.hu/ingatlan/HZ015812/elado-haz-borsod-abauj-zemplen-megye-miskolc",
  "searchUrl": "https://dh.hu/elado-ingatlan/lakas-haz"
}
```

### What data can you extract from dh.hu?

| Field | Description |
| --- | --- |
| id | Duna House listing reference (e.g. HZ015812) |
| title | Listing headline / address |
| price | Numeric asking price |
| currency | Price currency (HUF) |
| location | City / address line |
| propertyType | Property type (house, apartment, etc.) |
| imageUrl | Primary listing photo |
| imageUrls | Full photo gallery |
| url | Public listing URL |
| searchUrl | Source search URL for listings found via search |

### How much does it cost to scrape dh.hu?

This Actor uses a lightweight **HTTP crawler (no browser)**. A typical test run with a handful of listings per URL usually finishes in under a few minutes on the Apify free tier. Larger crawls scale with the number of detail pages.

If you encounter blocks, enable proxies in the proxy configuration.

### Tips and advanced options

- Use `/elado-ingatlan/` for sale or `/kiado-ingatlan/` for rent.
- Increase **maxItems** to page deeper through search results; the Actor follows `?page=N` pagination when needed.
- Add multiple start URLs to collect several searches in a single run.

### FAQ, disclaimers, and support

**Is scraping dh.hu legal?**\
This Actor collects only **public** listing content shown on dh.hu. You are responsible for complying with applicable laws (including GDPR) when processing any personal data contained in listings.

**Which URLs are supported?**\
Public search pages under `/elado-ingatlan/`, `/kiado-ingatlan/`, and `/ingatlankereso`, plus individual listing pages under `/ingatlan/{id}/`.

**Something not working?**\
Use the **Issues** tab to report bugs or request features. If runs return empty results, try enabling proxies.

### Image Credit

Image credit: [dh.hu](https://dh.hu/)

# Actor input Schema

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

dh.hu search URLs (e.g. https://dh.hu/elado-ingatlan/lakas-haz) or individual listing URLs.

## `maxItems` (type: `integer`):

Maximum number of property listings to return per start URL.

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

Proxy settings. Leave Apify Proxy off unless you hit blocks.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://dh.hu/elado-ingatlan/lakas-haz"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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": [
        {
            "url": "https://dh.hu/elado-ingatlan/lakas-haz"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/dh-hu-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": [{ "url": "https://dh.hu/elado-ingatlan/lakas-haz" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/dh-hu-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": [
    {
      "url": "https://dh.hu/elado-ingatlan/lakas-haz"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rainminer/dh-hu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/dh-hu-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/6Kw5v8KMHnwk508o5/builds/7bpBc4jerOZmsdbef/openapi.json
