{
  "openapi": "3.0.1",
  "info": {
    "title": "Sreality.cz Listings Monitor - New Listings & Price Drops",
    "description": "For property investors, agents and flat hunters in Czechia: new Sreality.cz listings, price drops and removed listings, one row each with price in CZK, price per m², layout, GPS, photos and agency. Schedule it hourly or daily; monitoring returns only what changed. Export as JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "mX3tGmsXh63CIA9X6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~sreality-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-sreality-listings-monitor",
        "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/neverempty~sreality-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-sreality-listings-monitor",
        "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/neverempty~sreality-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-sreality-listings-monitor",
        "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": {
          "monitoringMode": {
            "title": "Monitoring mode: return only changes since the last run",
            "type": "boolean",
            "description": "Schedule it hourly or daily with this on and each run returns only new listings, price drops, price rises and removed listings since the last run with the same search. Every row says which in changeType and carries previousPrice. The first run returns up to maxItems listings and remembers the whole search as the starting point. A run with no change returns one free row and costs only the run start fee. Empty = off (every matching listing is returned)."
          },
          "offerType": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent",
              "auction"
            ],
            "type": "string",
            "description": "sale = prodej, rent = pronájem, auction = dražby. Empty = sale."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartments",
              "houses",
              "land",
              "commercial",
              "other"
            ],
            "type": "string",
            "description": "apartments = byty, houses = domy, land = pozemky, commercial = komerční, other = ostatní (garages, cottages' plots, wine cellars ...). Empty = apartments."
          },
          "locations": {
            "title": "Regions or districts (kraj / okres)",
            "type": "array",
            "description": "One or more Czech regions (kraj) or districts (okres), with or without diacritics: Praha, Praha 5, Brno (Brno-město), Brno-venkov, Jihomoravský kraj, Středočeský kraj, Praha-východ, Kolín, Ostrava, Plzeň ... Several are searched together. Empty = the whole Czech Republic.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Towns or city parts (optional)",
            "type": "array",
            "description": "Keep only listings in these towns or city parts, for example Říčany inside Praha-východ, or Smíchov inside Praha. Give the district or region it lies in under locations (or a search URL).",
            "items": {
              "type": "string"
            }
          },
          "layouts": {
            "title": "Layouts (apartments only)",
            "type": "array",
            "description": "Czech layout codes: 1+kk, 1+1, 2+kk, 2+1, 3+kk, 3+1, 4+kk, 4+1, 5+kk, 5+1, 6+, atypical, room. Empty = every layout.",
            "items": {
              "type": "string"
            }
          },
          "priceFrom": {
            "title": "Price from (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Czech crowns (CZK). For rentals this is the monthly rent."
          },
          "priceTo": {
            "title": "Price to (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Czech crowns (CZK). For rentals this is the monthly rent."
          },
          "areaFrom": {
            "title": "Usable area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest usable floor area in square metres."
          },
          "areaTo": {
            "title": "Usable area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest usable floor area in square metres."
          },
          "searchUrls": {
            "title": "Sreality.cz search URLs (optional)",
            "type": "array",
            "description": "Set the filters on Sreality.cz, then paste the address of the results page, e.g. https://www.sreality.cz/hledani/prodej/byty/praha?velikost=2%2Bkk&cena-do=8000000. Every filter of the page is used as it is (balcony, condition, ownership ...). When given, the filter fields above are not used, except cities, which still narrows the results. Up to 50 URLs; a listing found by two URLs is returned and charged once, also in monitoring mode.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum listings to return",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many rows one run returns in total, across all searches. You pay only for rows you receive. Up to 10000, the most Sreality.cz shows for one search. In monitoring mode this caps the changes returned per run. Empty = 100."
          },
          "includeDetails": {
            "title": "Add agency name, listing date and building details",
            "type": "boolean",
            "description": "Adds agencyName, listedDate, updatedDate, floor, building type, condition, ownership, energy rating, furnished, elevator, balcony, terrace, cellar and parking to each returned row. Turn it off for faster runs with the list fields only. Empty = on."
          },
          "includeUnchanged": {
            "title": "Monitoring: also return unchanged listings",
            "type": "boolean",
            "description": "With monitoring mode on, also return the listings that did not change (changeType unchanged). They are charged like any row. Empty = off."
          },
          "resetMonitoringState": {
            "title": "Monitoring: start over",
            "type": "boolean",
            "description": "Forget what earlier runs of this search have seen, so this run is a first run again and becomes the new starting point. Empty = off."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}