# RynekPierwotny Properties and Details Scraper (`realestateapi/rynekpierwotny-properties-and-details-scraper`) Actor

RynekPierwotny Properties and Details Scraper — policy-gated scaffold that emits a written-permission diagnostic and makes no source requests because the publisher's Regulation prohibits scraping and bots without prior written consent.

- **URL**: https://apify.com/realestateapi/rynekpierwotny-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

## RynekPierwotny Properties and Details Scraper

### Current status

This Actor is a no-request policy scaffold. RynekPierwotny's [Regulation](https://rynekpierwotny.pl/regulamin/) §12.3 prohibits scraping and bots used to retrieve, copy, or analyze site content. Section §12.4 says exceptions, including API integrations, require the publisher's prior written consent. No such consent is recorded for this Actor.

The Actor therefore makes **zero source requests** and stores one `source-diagnostic` detail with code `WRITTEN_PERMISSION_REQUIRED` inside the `OUTPUT_SUMMARY` key-value record. The default Dataset stays empty; `recordsPushed` and `diagnosticsPushed` are both zero, while `diagnosticCount` is one and `diagnosticsDestination` is `key-value-store`. The run summary uses `SKIPPED_POLICY`; no property records are emitted. No input setting enables collection.

### Intended output shape

If a separately documented permission and implementation review ever permit collection, the existing schema describes development and property-unit records, including developer, location, rooms, area, PLN prices, completion, listing URLs, images, and floor plans. The current policy-only Actor does not produce these records. No listing detail was copied during the browser review because of the Regulation.

### Local verification

```bash
npm ci
npm test
npm run check
apify validate-schema .actor/input_schema.json
npm run validate
```

These checks are offline. Do not use `apify run --purge`; it can erase Actor storage. Parser tests use synthetic HTML fixtures and do not establish source permission or live extraction.

See [`BROWSER_REVIEW.md`](./BROWSER_REVIEW.md) for the current Terms evidence and [`AGENTS.md`](./AGENTS.md) for continuation constraints.

### Dependency security — October 3, 2026

Compatible dependency updates and the patched `basic-ftp` 6.2.1 are locked in `package-lock.json`. Offline regression checks exercise the API used by `get-uri` and bound adversarial listing parsing in a subprocess. The Docker build uses Node 24 and `npm ci --omit=dev --ignore-scripts`; it does not silently re-resolve dependency ranges.

`http-cache-semantics` currently has no published patched version for [GHSA-ch52-4w7c-c8xp](https://github.com/advisories/GHSA-ch52-4w7c-c8xp). It remains a transitive SDK dependency and an unresolved release-security prerequisite. Do not treat closed policy gates or an untested claim of unreachable code as a security fix. Applicable source permission/access and current-build extraction proof are also still required.

# Actor input Schema

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

Public RynekPierwotny listing URLs such as /s/nowe-mieszkania-i-domy/ or a city-specific /s/nowe-mieszkania-warszawa/ URL.

## `cities` (type: `array`):

Optional case-insensitive city terms matched against each development location. Leave empty to keep all locations from the listing URLs.

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

Optional client-side filter. Unknown or mixed cards are retained when the value cannot be inferred from public listing text.

## `minPrice` (type: `integer`):

Optional lower bound compared with the public development price range.

## `maxPrice` (type: `integer`):

Optional upper bound compared with the public development price range. Zero means no upper bound.

## `minArea` (type: `number`):

Optional lower bound compared with the public development area range.

## `maxArea` (type: `number`):

Optional upper bound compared with the public development area range. Zero means no upper bound.

## `minRooms` (type: `integer`):

Optional lower bound compared with the public room range.

## `maxRooms` (type: `integer`):

Optional upper bound compared with the public room range. Zero means no upper bound.

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

Hard cap on development cards processed across all listing pages.

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

Maximum numbered public listing pages fetched per start URL.

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

Fetch bounded public development pages to emit individual flats or houses and available floor-plan image URLs.

## `maxDetailItems` (type: `integer`):

Maximum development detail pages fetched in one run. Set to zero to skip detail requests even when includeDetails is enabled.

## `maxUnitsPerDevelopment` (type: `integer`):

Maximum individual flat or house records emitted from one public development detail page.

## `emitOnlyChanged` (type: `boolean`):

When enabled, compare each stable recordId and contentHash with knownRecordHashes and emit only records that are new or changed.

## `knownRecordHashes` (type: `object`):

Optional object mapping prior recordId values to contentHash values for incremental monitoring. Obtain these from an earlier dataset run.

## `requestDelayMs` (type: `integer`):

Minimum delay between public listing and detail requests.

## `timeoutMs` (type: `integer`):

Timeout for one public HTML request.

## `maxResponseBytes` (type: `integer`):

Safety cap for one public HTML response.

## Actor input object example

```json
{
  "startUrls": [
    "https://rynekpierwotny.pl/s/nowe-mieszkania-i-domy/"
  ],
  "cities": [],
  "propertyType": "both",
  "minPrice": 0,
  "maxPrice": 0,
  "minArea": 0,
  "maxArea": 0,
  "minRooms": 0,
  "maxRooms": 0,
  "maxItems": 25,
  "maxPages": 2,
  "includeDetails": true,
  "maxDetailItems": 5,
  "maxUnitsPerDevelopment": 20,
  "emitOnlyChanged": false,
  "knownRecordHashes": {},
  "requestDelayMs": 250,
  "timeoutMs": 30000,
  "maxResponseBytes": 10000000
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

## `sourceMetadata` (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/rynekpierwotny-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/rynekpierwotny-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/rynekpierwotny-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/rynekpierwotny-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/C9ySj5Upf3KlD6tjZ/builds/FqLvmVNrU5Z7nHUh8/openapi.json
