{
  "openapi": "3.0.1",
  "info": {
    "title": "RynekPierwotny Properties and Details Scraper",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "FqLvmVNrU5Z7nHUh8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/realestateapi~rynekpierwotny-properties-and-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-realestateapi-rynekpierwotny-properties-and-details-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/realestateapi~rynekpierwotny-properties-and-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-realestateapi-rynekpierwotny-properties-and-details-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/realestateapi~rynekpierwotny-properties-and-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-realestateapi-rynekpierwotny-properties-and-details-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "Listing URLs",
            "maxItems": 5,
            "type": "array",
            "description": "Public RynekPierwotny listing URLs such as /s/nowe-mieszkania-i-domy/ or a city-specific /s/nowe-mieszkania-warszawa/ URL.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://rynekpierwotny.pl/s/nowe-mieszkania-i-domy/"
            ]
          },
          "cities": {
            "title": "Cities",
            "maxItems": 30,
            "type": "array",
            "description": "Optional case-insensitive city terms matched against each development location. Leave empty to keep all locations from the listing URLs.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "both",
              "apartment",
              "house"
            ],
            "type": "string",
            "description": "Optional client-side filter. Unknown or mixed cards are retained when the value cannot be inferred from public listing text.",
            "default": "both"
          },
          "minPrice": {
            "title": "Minimum price (PLN)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Optional lower bound compared with the public development price range.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (PLN)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Optional upper bound compared with the public development price range. Zero means no upper bound.",
            "default": 0
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Optional lower bound compared with the public development area range.",
            "default": 0
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Optional upper bound compared with the public development area range. Zero means no upper bound.",
            "default": 0
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Optional lower bound compared with the public room range.",
            "default": 0
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Optional upper bound compared with the public room range. Zero means no upper bound.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum developments per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on development cards processed across all listing pages.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum listing pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum numbered public listing pages fetched per start URL.",
            "default": 2
          },
          "includeDetails": {
            "title": "Fetch development details",
            "type": "boolean",
            "description": "Fetch bounded public development pages to emit individual flats or houses and available floor-plan image URLs.",
            "default": true
          },
          "maxDetailItems": {
            "title": "Maximum detail pages",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum development detail pages fetched in one run. Set to zero to skip detail requests even when includeDetails is enabled.",
            "default": 5
          },
          "maxUnitsPerDevelopment": {
            "title": "Maximum units per development",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum individual flat or house records emitted from one public development detail page.",
            "default": 20
          },
          "emitOnlyChanged": {
            "title": "Emit only new or changed records",
            "type": "boolean",
            "description": "When enabled, compare each stable recordId and contentHash with knownRecordHashes and emit only records that are new or changed.",
            "default": false
          },
          "knownRecordHashes": {
            "title": "Known record hashes",
            "type": "object",
            "description": "Optional object mapping prior recordId values to contentHash values for incremental monitoring. Obtain these from an earlier dataset run.",
            "default": {},
            "additionalProperties": true
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum delay between public listing and detail requests.",
            "default": 250
          },
          "timeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout for one public HTML request.",
            "default": 30000
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 100000,
            "maximum": 50000000,
            "type": "integer",
            "description": "Safety cap for one public HTML response.",
            "default": 10000000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}