# Nieruchomosci Online Properties and Details Scraper (`realestateapi/nieruchomosci-online-properties-and-details-scraper`) Actor

Permission-gated Nieruchomosci Online listing scraper. Requires written authorization before collecting or reusing listing data.

- **URL**: https://apify.com/realestateapi/nieruchomosci-online-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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

## Nieruchomosci Online Properties and Details Scraper

This Actor is permission-gated. Nieruchomosci-online.pl terms §14a restrict automated collection and reuse of listing data; provide `authorizationConfirmed: true` only if you hold written authorization covering the intended collection and reuse. With the default `false`, the Actor makes zero source requests and writes a `SUCCEEDED` / `SKIPPED_POLICY` status and policy diagnostic to `OUTPUT_SUMMARY`. The dataset contains only verified property listing records; failure and policy diagnostics are never dataset items. It supports explicit search/listing URLs, sale/rental mode, property type, location, price/area/room filters, bounded pagination, and detail enrichment after authorization is confirmed.

The code is intentionally split into cohesive modules: `src/input.js` validates public URLs and builds city search URLs; `src/http.js` owns direct HTTP and explicit access diagnostics; `src/parser.js` parses collection `CollectionPage`/`AggregateOffer` JSON-LD and property `Apartment`/`House` JSON-LD, with a visible-HTML listing fallback; `src/records.js` normalizes records and summaries; `src/crawler.js` performs bounded listing/detail collection; and `src/main.js` is only the Actor lifecycle entrypoint.

### Example input

```json
{
  "startUrls": [{ "url": "https://krakow.nieruchomosci-online.pl/mieszkania,sprzedaz/" }],
  "maxItems": 20,
  "authorizationConfirmed": false,
  "extractDetails": true,
  "maxPages": 2,
  "maxConcurrency": 2
}
```

If `startUrls` is omitted, the Actor builds a city/property path from `searchType`, `propertyType`, and `location`. Records include verified listing identity and only optional values present in the source. The Actor omits unknown currencies and area units, requires explicit square-metre evidence for area and per-square-metre values, and never copies search filters into a listing's property or offer type. Direct execution is sequential; `maxConcurrency` and `maxRequestsPerMinute` are retained for input compatibility and are not enforced. The Actor uses direct public HTTP only and never logs in, guesses private endpoints, solves CAPTCHA, or bypasses access controls. The authorization flag is an operator assertion, not a verification of permission.

`OUTPUT_SUMMARY` reports canonical `status` and `runStatus` values: a clean bounded or empty run is `SUCCEEDED` / `COMPLETED`; a failure before any listing is saved is `FAILED` / `FAILED` and exits nonzero; a failure after one or more verified listings are saved is `SUCCEEDED` / `PARTIAL` and exits successfully; and the default authorization gate is `SUCCEEDED` / `SKIPPED_POLICY`. Failure details and request diagnostics are kept in this aggregate summary.

#### Dependency security

The locked dependency graph overrides basic-ftp with the patched 6.2.1 release. The SDK’s unpatched HTTP cache policy is replaced with the readable local vendor/noncaching-http-policy adapter, which refuses cache reads and writes and forces fresh network responses. This is an explicit removal of caching, not a claimed upstream security patch. Source transports, permission gates and request limits are unchanged. npm run test:dependencies checks cross-user cache isolation, imported stale policy rejection, FTP integration methods and adversarial listing parsing. Cloud builds run npm audit --omit=dev --audit-level=low against the installed production graph.

# Actor input Schema

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

Public search/category or individual property URLs. When supplied, search filters are ignored.

## `searchType` (type: `string`):

Public offer mode: sale or rent.

## `propertyType` (type: `string`):

Property category used in the public search path.

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

Polish city or locality used to build the public host/path, for example Kraków or Warszawa.

## `priceMin` (type: `integer`):

Optional minimum listing price in PLN.

## `priceMax` (type: `integer`):

Optional maximum listing price in PLN.

## `areaMin` (type: `integer`):

Optional minimum floor area in square metres.

## `areaMax` (type: `integer`):

Optional maximum floor area in square metres.

## `roomsMin` (type: `integer`):

Optional minimum number of rooms.

## `roomsMax` (type: `integer`):

Optional maximum number of rooms.

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

Maximum non-empty property records. Use 0 for the bounded default.

## `maxPages` (type: `integer`):

Maximum listing or search pages to visit across the supplied start URLs.

## `extractDetails` (type: `boolean`):

Fetch each public detail page to enrich listing records.

## `maxConcurrency` (type: `integer`):

Retained for Store compatibility; local execution is sequential.

## `maxRequestRetries` (type: `integer`):

Retries for transient public HTTP failures.

## `maxRequestsPerMinute` (type: `integer`):

Retained for input compatibility; direct sequential execution does not currently enforce a requests-per-minute limit.

## `requestTimeoutSecs` (type: `integer`):

Maximum time allowed for each public request.

## `authorizationConfirmed` (type: `boolean`):

Set true only when you hold written authorization covering automated collection and reuse of Nieruchomosci-online.pl listing data. Defaults to false; no source request is made otherwise.

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

Retained for Store compatibility; local verification uses direct public HTTP only.

## Actor input object example

```json
{
  "searchType": "sprzedaz",
  "propertyType": "mieszkanie",
  "location": "Kraków",
  "maxItems": 50,
  "maxPages": 5,
  "extractDetails": true,
  "maxConcurrency": 4,
  "maxRequestRetries": 1,
  "maxRequestsPerMinute": 120,
  "requestTimeoutSecs": 30,
  "authorizationConfirmed": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("realestateapi/nieruchomosci-online-properties-and-details-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("realestateapi/nieruchomosci-online-properties-and-details-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 '{}' |
apify call realestateapi/nieruchomosci-online-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/nieruchomosci-online-properties-and-details-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/LZkgP8JHapjjaIOdX/builds/XFNLYxRLdOrEjJ32a/openapi.json
