{
  "openapi": "3.0.1",
  "info": {
    "title": "Rieltor.ua Scraper: Ukraine Real Estate Listings & Agencies",
    "description": "Scrape Rieltor.ua, the Ukrainian property portal: sale and rent listings of apartments, houses, commercial space, land, rooms and parking with prices in UAH and USD, area, floor, coordinates and photos, plus the agency directory. Export CSV, Excel, JSON, XML.",
    "version": "0.1",
    "x-build-id": "R9rAzNwWBynEjnhxK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~rieltor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-rieltor-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/recordsdata~rieltor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-rieltor-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/recordsdata~rieltor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-rieltor-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": {
          "recordTypes": {
            "title": "What to collect",
            "type": "array",
            "description": "What to return. Listings: one row per property listing (price in its own currency and in hryvnia, area, rooms, floor, address, coordinates, photos, agency). Agencies: one row per real estate agency in the site directory (rank, phone, website, years on market, agents and listing counts). Every row counts toward Max Items.",
            "items": {
              "type": "string",
              "enum": [
                "listings",
                "agencies"
              ],
              "enumTitles": [
                "Listings",
                "Agencies"
              ]
            },
            "default": [
              "listings"
            ]
          },
          "maxItems": {
            "title": "Max items (free plan: 10)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "operation": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Sale, rent, or both. Every row says which one it is in the operation field.",
            "default": "sale"
          },
          "locations": {
            "title": "Cities (e.g. Kyiv, Lviv, Odesa)",
            "type": "array",
            "description": "Only listings in these cities. Write a city as Київ, Lviv, Odesa, Kharkiv, Dnipro, Zaporizhzhia, Vinnytsia... (Ukrainian, Russian or English), or the city part of any rieltor.ua address (rieltor.ua/kamenskoe/... means kamenskoe). Leave empty for Kyiv, the default city of the site.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these property types. Leave empty for all six. Each combination of place, operation and type is searched in turn.",
            "items": {
              "type": "string",
              "enum": [
                "flats",
                "houses",
                "commercials",
                "areas",
                "rooms",
                "parking"
              ],
              "enumTitles": [
                "Apartments",
                "Houses",
                "Commercial property",
                "Land plots",
                "Rooms",
                "Parking spaces"
              ]
            },
            "default": [
              "flats"
            ]
          },
          "rooms": {
            "title": "Rooms (apartments only)",
            "type": "array",
            "description": "Apartments only: keep these room counts. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 room",
                "2 rooms",
                "3 rooms",
                "4 rooms",
                "5 rooms"
              ]
            },
            "default": []
          },
          "startUrls": {
            "title": "rieltor.ua links (search, listing or agency pages)",
            "type": "array",
            "description": "Optional rieltor.ua pages to read: a listing (rieltor.ua/lvov/flats-rent/view/13149066/), any search page such as rieltor.ua/lvov/flats-rent/ or rieltor.ua/flats-sale/?rooms=2,3, or an agency list (rieltor.ua/firms/ or rieltor.ua/lvov/firms/). A search URL brings its own filters, so the filters below are ignored for it. Leave empty to search with the filters below.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minPrice": {
            "title": "Min price (in the currency below)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in the currency chosen below. 0 or empty means no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price (in the currency below)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the currency chosen below. 0 or empty means no maximum.",
            "default": 0
          },
          "priceCurrency": {
            "title": "Price currency (UAH or USD)",
            "enum": [
              "UAH",
              "USD"
            ],
            "type": "string",
            "description": "Currency of the minimum and maximum price: hryvnia or US dollars. Every row keeps the price in the currency the seller used and the hryvnia equivalent at the NBU rate.",
            "default": "UAH"
          },
          "onlyNewBuildings": {
            "title": "New-build apartments only",
            "type": "boolean",
            "description": "Only apartments for sale in new-build complexes (the site's new buildings section). Needs the operation sale or both and the apartments property type.",
            "default": false
          },
          "onlyOwners": {
            "title": "Owners only (no agencies)",
            "type": "boolean",
            "description": "Only listings the site marks as without intermediaries (posted by the owner). Private sellers' names and phone numbers are never output.",
            "default": false
          },
          "includeDetails": {
            "title": "Open every listing page (full details)",
            "type": "boolean",
            "description": "A search page shows each listing as a card (about the first 700 characters of the description, photos, price, area, floor, agent). Switch this on to open every listing page as well: full description, price history, cadastral number, utilities, infrastructure, views and publishing date. Each opened listing is a listing-detail-record instead of a listing-record, and the run takes one more request per listing. Listings given as Start URLs are always opened in full. Cost hint: adds one request per listing and bills as a listing-detail record.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Include realtor contact data (business contacts only)",
            "type": "boolean",
            "description": "Keep the public business contact of the realtor on a listing (name, phone, personal page and experience) and the top agents of an agency, and leave phone numbers written in descriptions untouched. Private sellers' names, phones and e-mails are always removed, whatever this says. Off by default.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new rows (for scheduled runs)",
            "type": "boolean",
            "description": "Only new rows: skip every listing and agency this same search already returned in an earlier run, so a scheduled run returns just the new ones and you are not charged for skipped rows. Max Items then means N new rows. Off by default.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Name of this monitor. Leave empty to derive it from your filters. Use a name to run two monitors with the same filters.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget previously seen rows",
            "type": "boolean",
            "description": "Clear the saved list for this monitor before the run, so everything counts as new again.",
            "default": false
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop collecting after this many seconds and return what was gathered, so a very wide search never runs unbounded. Rieltor.ua is read politely, about one page every two seconds.",
            "default": 3600
          },
          "proxyConfiguration": {
            "title": "Proxy (only if the site blocks you)",
            "type": "object",
            "description": "Not needed in normal runs: rieltor.ua is read directly from the Apify cloud. If the site shows its bot check, the actor switches to the Apify datacenter proxy by itself. Pick a proxy here only to force one from the first request.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}