{
  "openapi": "3.0.1",
  "info": {
    "title": "Poland House Prices – ceny domów (RCN)",
    "description": "Real house prices in Poland from notarial deeds (ceny domów z aktów notarialnych): median price, price per m², plot size and trend for any commune, plus developers' asking prices for new houses and a house valuation. Official data, no scraping.",
    "version": "1.0",
    "x-build-id": "aH4uhzZAAMhzCi4Ce"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kris_fili~poland-house-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kris_fili-poland-house-prices",
        "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/kris_fili~poland-house-prices/runs": {
      "post": {
        "operationId": "runs-sync-kris_fili-poland-house-prices",
        "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/kris_fili~poland-house-prices/run-sync": {
      "post": {
        "operationId": "run-sync-kris_fili-poland-house-prices",
        "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",
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Location in Poland",
            "type": "string",
            "description": "Commune (gmina), town, village or address in Poland – use Polish characters, e.g. 'Wieliczka', 'Piaseczno', 'gmina Michałowice', 'powiat poznański'. You can also paste coordinates: '52.0846, 21.0244'. / Gmina, miejscowość albo adres."
          },
          "searchArea": {
            "title": "Search area",
            "enum": [
              "commune",
              "county",
              "radius"
            ],
            "type": "string",
            "description": "Whole commune (gmina) is recommended: in the official files only part of the house deeds have map coordinates, but almost all have the commune. Cities with county rights (e.g. Kraków, Poznań) are searched as a whole city.",
            "default": "commune"
          },
          "radiusMeters": {
            "title": "Radius (meters)",
            "minimum": 200,
            "maximum": 20000,
            "type": "integer",
            "description": "Used only when search area is a radius. 200–20 000 m.",
            "default": 3000
          },
          "market": {
            "title": "Market",
            "enum": [
              "any",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "Primary = bought from a developer, secondary = resale. 'Any' includes both (and deeds without this information).",
            "default": "any"
          },
          "monthsBack": {
            "title": "Period – months back",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "How many months of sales to analyse (ignored when 'Date from' is set). Small communes may need 36–60 months.",
            "default": 24
          },
          "houseAreaM2": {
            "title": "Value my house – usable area in m² (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Usable area of the house to value. Together with 'plot area' gives an estimate from similar sales. / Powierzchnia użytkowa domu do wyceny."
          },
          "plotAreaM2": {
            "title": "Value my house – plot area in m² (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Plot area of the house to value (optional). / Powierzchnia działki."
          },
          "includeNewBuildOffers": {
            "title": "Add developers' asking prices for new houses",
            "type": "boolean",
            "description": "Asking prices of new houses on offer nearby (developers' daily price lists, dane.gov.pl).",
            "default": true
          },
          "minPlotAreaM2": {
            "title": "Min. plot area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only houses on plots of at least this area (optional)."
          },
          "maxPlotAreaM2": {
            "title": "Max. plot area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Houses on bigger plots (usually farms) are left out. Default 20 000 m²; 0 = no limit.",
            "default": 20000
          },
          "minUsableAreaM2": {
            "title": "Min. usable area of the house (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only houses whose deed states a usable area of at least this many m² (optional)."
          },
          "maxUsableAreaM2": {
            "title": "Max. usable area of the house (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only houses whose deed states a usable area of at most this many m² (optional)."
          },
          "dateFrom": {
            "title": "Date from (optional)",
            "type": "string",
            "description": "YYYY-MM-DD (from 2014-01-01)"
          },
          "dateTo": {
            "title": "Date to (optional)",
            "type": "string",
            "description": "YYYY-MM-DD, default today"
          },
          "includeTransactions": {
            "title": "Include individual sales",
            "type": "boolean",
            "description": "If off, you get only the report.",
            "default": true
          },
          "maxTransactions": {
            "title": "Max. sales to output",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Newest first. Statistics always use all sales found.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}