{
  "openapi": "3.0.1",
  "info": {
    "title": "Poland Land Plot Prices – ceny działek (RCN)",
    "description": "Real land plot prices in Poland from notarial deeds (ceny działek z aktów notarialnych): price per m² and per hectare for building, agricultural and forest plots in any commune, with plot valuation. Official RCN register, no scraping.",
    "version": "1.0",
    "x-build-id": "YsT99PsXWxv4JyvuP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kris_fili~poland-land-plot-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kris_fili-poland-land-plot-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-land-plot-prices/runs": {
      "post": {
        "operationId": "runs-sync-kris_fili-poland-land-plot-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-land-plot-prices/run-sync": {
      "post": {
        "operationId": "run-sync-kris_fili-poland-land-plot-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', 'gmina Michałowice', 'powiat wielicki', 'Kłodzko'. You can also paste coordinates: '50.0614, 19.9372'. / Gmina, miejscowość albo adres."
          },
          "plotType": {
            "title": "Plot type / rodzaj działki",
            "enum": [
              "building",
              "agricultural",
              "forest",
              "recreational",
              "commercial",
              "any"
            ],
            "type": "string",
            "description": "Prices differ by a factor of 10–50 between plot types, so statistics are always for one type. The report also shows a short summary of all other types. Building = zoned for housing in the local plan (MPZP) or a WZ decision, or urban land in the land register.",
            "default": "building"
          },
          "searchArea": {
            "title": "Search area",
            "enum": [
              "commune",
              "county",
              "radius"
            ],
            "type": "string",
            "description": "Whole commune (gmina) is recommended: in the official files only part of the land deeds have map coordinates, but almost all have the commune. Cities with county rights (e.g. Kraków, Wrocław) 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
          },
          "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). Rural communes may need 36–60 months for enough sales.",
            "default": 24
          },
          "plotAreaM2": {
            "title": "Value my plot – area in m² (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Enter the plot area to get an estimated value based on sales of plots of the same type and similar size. / Podaj powierzchnię działki, aby dostać szacunkową wartość."
          },
          "minAreaM2": {
            "title": "Min. plot area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only plots of at least this area (optional)."
          },
          "maxAreaM2": {
            "title": "Max. plot area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only plots of at most this area (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 (statistics and valuation).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}