# 4zida.rs Scraper — Serbia Property Listings (`blackfalcondata/4zida-rs-scraper`) Actor

Scrape 4zida.rs property listings for sale or rent across Serbia. Every record carries price, area and rooms. Search by city, a pasted search URL or a radius around any point and get full photos and agency details on each listing. Ready for a spreadsheet or CRM.

- **URL**: https://apify.com/blackfalcondata/4zida-rs-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.81 / 1,000 results

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

### What does 4zida.rs Scraper do?

4zida.rs Scraper extracts structured listing data from [4zida.rs](https://4zida.rs) — including contact details, full descriptions, prices, and location data. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions and contact information) where the source provides them.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **💵 Structured pricing:** structured `price` on every listing — numbers you can sort and compare without parsing price text.
- **📉 Price-change tracking:** `previousPrice` show how a listing's price moved since the previous run.
- **🏠 Property details:** `propertyType`, `area`, `rooms` and `floor` on each listing as separate fields, not listing text.
- **🤝 Agent and agency:** `agencyName` and `agentName` show who markets each listing.
- **📍 Coordinates:** `latitude` and `longitude` on each listing that has a location, ready for a map.
- **🏘️ Address:** `state`, `address`, `neighborhood` and `city` as separate fields for every listing that lists them.
- **🔍 Keyword search:** search 4zida.rs by keyword with the `query` input, in the place you name in `location`.
- **🧭 Radius search:** search around a point with `lat`, `lon` and `radiusKm`.
- **🔗 Paste-mode:** paste 4zida.rs URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **♻️ Incremental mode:** daily runs emit only listings that are new or whose price/condition changed since last run. Perfect for inventory-diff dashboards and competitive pricing alerts. Saves 80–95% on recurring monitoring.
- **🔔 Notifications:** telegram / Slack / Discord / WhatsApp / webhook alerts on each run. Combine with incremental to ping only when prices or inventory actually move.

### What data can you extract from 4zida.rs?

Each result includes Core listing fields (`id`, `url`, `portalUrl`, `transaction`, `propertyType`, `price`, `pricePerSqm`, and `priceCurrency`, and more), detail fields when enrichment is enabled (`description` and `detailFetched`), and contact information (`agentPhones`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions and contact information where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Property type + deal type, e.g. "apartments for sale", "houses rent", "offices sale", "lots sale", "garages rent" (Serbian words also work: "stanovi prodaja", "kuce izdavanje"). You can also paste a 4zida.rs search URL such as https://www.4zida.rs/prodaja-stanova/beograd. Use a JSON array for several searches in one run, e.g. \["apartments for sale","houses for sale"].
- **`location`** — City, municipality or neighbourhood as written on 4zida.rs ("Beograd", "Novi Sad", "Novi Beograd", "Vračar"). Leave empty to search all of Serbia. Use a JSON array for several locations, e.g. \["Beograd","Novi Sad"].
- **`maxResults`** — Maximum total listings (0 = unlimited). (default: `100`)
- **`startUrls`** — Paste raw 4zida.rs search URLs (e.g. https://www.4zida.rs/izdavanje-stanova/novi-sad). Each URL becomes its own search task; results are merged and deduped by listing ID. When provided, startUrls REPLACE the query/location fields (unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`includeDetails`** — Fetch each listing's detail page for the full description, all photos, coordinates, agency and amenities. Turn off for faster, cheaper runs with search-card fields only. (default: `true`)
- **`descriptionMaxLength`** — Truncate description to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls) so different filter sets never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip listings whose content matches an expired listing from a prior run (re-listed property detection). (default: `false`)
- **`emitUnchanged`** — When incremental mode is on, also emit listings whose content has not changed since the last run. (default: `false`)
- ...and 18 more parameters

### Input examples

**Basic search** — Keyword-driven search scoped to a city with a tight radius.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "apartments for sale",
  "location": "Beograd",
  "radiusKm": 25,
  "maxResults": 50
}
```

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "apartments for sale",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "apartments-for-sale-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "apartments for sale",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "id": "6ad5165f13c7bb15670a9593",
  "url": "https://www.4zida.rs/prodaja-stanova/mali-mokri-lug-zvezdara-opstina-beograd/jednoiposoban-stan/6ad5165f13c7bb15670a9593",
  "portalUrl": "https://www.4zida.rs/prodaja-stanova/mali-mokri-lug-zvezdara-opstina-beograd/jednoiposoban-stan/6ad5165f13c7bb15670a9593",
  "transaction": "sale",
  "propertyType": "apartment",
  "price": 98625,
  "pricePerSqm": 2529,
  "priceCurrency": "EUR",
  "area": 39,
  "rooms": 1.5,
  "floor": 3,
  "totalFloors": 5,
  "lastFloor": false,
  "heatingType": "norwegianRadiators",
  "state": "new",
  "registered": "yes",
  "structureLabel": "Jednoiposoban stan",
  "address": "Mali Mokri Lug 3",
  "neighborhood": "Mali Mokri Lug",
  "city": "Beograd",
  "placeTitles": [
    "Mali Mokri Lug",
    "Zvezdara opština",
    "Beograd"
  ],
  "agencyUrl": "https://www.4zida.rs/agencije/beograd/mint-nekretnine/268481",
  "images": [
    "https://resizer2.4zida.rs/5iMitnuZBNXktNf82jd7ZKpNntLxbfd1XC5_fq1PnzI/rs:fit:1920:1080:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzAyMTIyODU5ZTRfd20.webp",
    "https://resizer2.4zida.rs/fr27c-BjnrSaIpIgDL60ze_xXp2Lp_LClwbetYkuJFw/rs:fit:1920:1080:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzk0MzVkMTNiM2Nfd20.webp",
    "https://resizer2.4zida.rs/mYvh3qZd4GtKEieG8vNfbZTjCHDvoZ8i43GxBs5okEA/rs:fit:1920:1080:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzVjNjZlMmVhOWFfd20.webp",
    "https://resizer2.4zida.rs/E7VSTNWUnXeCEgrUr3r3UDaZG8hzzZxo7E2dXmA8B6Q/rs:fit:1920:1080:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzBmMTg3Mjk3MDhfd20.webp",
    "https://resizer2.4zida.rs/tXFe4a1D9wj9rTOd06LubpdCu9pTvCf9RicOmIA6KYg/rs:fit:1920:1080:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzBmNTE5Y2ZkZWZfd20.webp",
    "... 4 more items"
  ],
  "imageCount": 9,
  "createdAt": "2026-10-18T18:56:31.000Z",
  "scrapedAt": "2026-10-18T23:13:29.977Z",
  "title": "Jednoiposoban stan na prodaju, Mali Mokri Lug, 98.625€, 39m²",
  "category": "flat",
  "location": "Mali Mokri Lug, Zvezdara opština, Beograd",
  "previousPrice": 98,
  "elevator": true,
  "yearBuilt": 2026,
  "description": "Na prodaju prelep jednoiposoban stan površine **39 m²**, u novogradnji na atraktivnoj lokaciji u Malom Mokrom Lugu, u blizini Bulevara kralja Aleksandra.\n\n\n\nStan odlikuje funkcionalan raspored prostor...",
  "imageUrl": "https://resizer2.4zida.rs/K26GXJNdRfBHRKPEgKhepk8x5X1YQuuTUTAHJgayLXQ/rs:fill:380:0:0/bG9jYWw6Ly8vNmFkNTE2NWYxM2M3YmIxNTY3MGE5NTkzLzAyMTIyODU5ZTQ.webp",
  "agencyName": "MINT nekretnine",
  "agentName": "Nekretnine Mint",
  "agentPhones": [
    {
      "full": "+381653285500",
      "national": "065 3285500",
      "regionCode": "RS",
      "verified": true,
      "isViber": true
    }
  ],
  "sellerType": "trader",
  "latitude": 44.774245953759,
  "longitude": 20.536611942009,
  "bathrooms": 1,
  "hasTerrace": true,
  "hasGarage": false,
  "features": [
    "publicParkingOutOfZone"
  ],
  "status": "active",
  "checkedAt": "2026-10-18T18:56:31.000Z",
  "virtual3dTour": false,
  "listingId": "6ad5165f13c7bb15670a9593",
  "searchQuery": "apartments for sale",
  "contentQuality": "full",
  "detailFetched": true,
  "source": "4zida.rs",
  "contentHash": "18518a85964244855467229e1bb618d0c483f9bd9c53be6d6fad6ab5f5fbd036"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape 4zida.rs

1. Go to [4zida.rs Scraper](https://apify.com/blackfalcondata/4zida-rs-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions, contact info.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from 4zida.rs for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape 4zida.rs?

Pricing for 4zida.rs Scraper has not been finalized yet. It will be published here before the actor becomes publicly available.

You only use your normal Apify platform resources when you run the actor from your own account.

### FAQ

#### How many results can I get from 4zida.rs?

The number of results depends on the search query and available listings on 4zida.rs. Use the `maxResults` parameter to control how many results are returned per run.

#### Does 4zida.rs Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate 4zida.rs Scraper with other apps?

Yes. 4zida.rs Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use 4zida.rs Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use 4zida.rs Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape 4zida.rs?

This actor extracts publicly available data from 4zida.rs. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/4zida-rs-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Airbnb Realtime API — Live Listing, Reviews & Search Lookups](https://apify.com/blackfalcondata/airbnb-realtime?fpr=1h3gvi) — Real-time Airbnb lookups over HTTP: ask for one listing, its reviews or a location search and the.
- [Airbnb Scraper — Listings, Prices & Host Data](https://apify.com/blackfalcondata/airbnb-scraper?fpr=1h3gvi) — Scrape Airbnb stays: price, ratings, amenities, host info, photos, GPS and full filters.
- [Airbnb URL Finder — listing discovery](https://apify.com/blackfalcondata/airbnb-url-scraper?fpr=1h3gvi) — Scrape airbnb.com — enumerate every listing URL for a city or neighborhood · return listing id URL.
- [Bayut Scraper \[Just 💰$0.8\] — UAE Property Listings & Agents](https://apify.com/blackfalcondata/bayut-scraper?fpr=1h3gvi) — 💰 $0.80 per 1,000 rows across the UAE, Saudi Arabia, Qatar, Oman and Jordan. Scrape Bayut property.
- [Boliga Denmark Scraper - Homes for Sale](https://apify.com/blackfalcondata/boliga-dk-scraper?fpr=1h3gvi) — Scrape Danish homes for sale from boliga.dk. Each listing carries price, address and monthly costs,.
- [Centris Canada Scraper — Québec Real Estate Listings](https://apify.com/blackfalcondata/centris-ca-scraper?fpr=1h3gvi) — Scrape centris.ca — Québec MLS real-estate listings with price, address, coordinates, rooms, areas,.
- [Comparis Scraper \[Just 💰$0.69/1k\] — Swiss Real Estate](https://apify.com/blackfalcondata/comparis-scraper?fpr=1h3gvi) — Scrape comparis.ch real estate listings with deal type, property type, rooms, price, living space.
- [Craigslist Scraper \[Just 💰$1\] — classifieds listings](https://apify.com/blackfalcondata/craigslist-scraper?fpr=1h3gvi) — 💰 $1 per 1,000 listings. Scrape craigslist.org — for-sale housing & jobs · gigs & services.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on 4zida.rs. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with 4zida.rs's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by 4zida.rs or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

4zida scraper, 4zida api, apify 4zida, 4zida data extraction, 4zida.rs scraper, 4zida.rs api, apify 4zida.rs, 4zida.rs data extraction, 4zida.rs data, property listings scraper, real estate data, property data.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/4zida-rs-scraper/changelog.md

# Actor input Schema

## `query` (type: `string`):

Property type + deal type, e.g. "apartments for sale", "houses rent", "offices sale", "lots sale", "garages rent" (Serbian words also work: "stanovi prodaja", "kuce izdavanje"). You can also paste a 4zida.rs search URL such as https://www.4zida.rs/prodaja-stanova/beograd. Use a JSON array for several searches in one run, e.g. \["apartments for sale","houses for sale"].

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

City, municipality or neighbourhood as written on 4zida.rs ("Beograd", "Novi Sad", "Novi Beograd", "Vračar"). Leave empty to search all of Serbia. Use a JSON array for several locations, e.g. \["Beograd","Novi Sad"].

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

Maximum total listings (0 = unlimited).

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

Paste raw 4zida.rs search URLs (e.g. https://www.4zida.rs/izdavanje-stanova/novi-sad). Each URL becomes its own search task; results are merged and deduped by listing ID. When provided, startUrls REPLACE the query/location fields (unsupported URLs are skipped, and if none is supported the run stops with an input error).

## `includeDetails` (type: `boolean`):

Fetch each listing's detail page for the full description, all photos, coordinates, agency and amenities. Turn off for faster, cheaper runs with search-card fields only.

## `descriptionMaxLength` (type: `integer`):

Truncate description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (re-listed property detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "381641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

## `lat` (type: `number`):

Latitude of the centre point for a radius search. Set lat, lon and radiusKm together to get every listing within that distance, nearest first; location is then left out.

## `lon` (type: `number`):

Longitude of the centre point for a radius search. Use together with lat and radiusKm.

## `radiusKm` (type: `integer`):

Distance in kilometres around lat/lon. Every listing inside the circle is returned, nearest first.

## Actor input object example

```json
{
  "query": "apartments for sale",
  "location": "Beograd",
  "maxResults": 100,
  "startUrls": [],
  "includeDetails": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all"
}
```

# Actor output Schema

## `results` (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 = {
    "query": "apartments for sale",
    "location": "Beograd",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/4zida-rs-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 = {
    "query": "apartments for sale",
    "location": "Beograd",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/4zida-rs-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 '{
  "query": "apartments for sale",
  "location": "Beograd",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/4zida-rs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blackfalcondata/4zida-rs-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/a04gOc5FtWBsa6Dvc/builds/sikbFkTegRjofgS9d/openapi.json
