{
  "openapi": "3.0.1",
  "info": {
    "title": "Bolha Scraper - Slovenia Real Estate Listings",
    "description": "Scrape bolha.com real estate: apartments, houses, land, commercial space, garages and rooms for sale or rent in Slovenia and Croatia, with prices, location, photos, agency profiles and market statistics. No login.",
    "version": "0.1",
    "x-build-id": "7MurMX9jYv00iquCe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~bolha-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-bolha-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~bolha-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-bolha-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~bolha-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-bolha-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": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "search",
              "urls",
              "agencies",
              "market"
            ],
            "type": "string",
            "description": "search = real estate ads for the chosen deal type, property types and places. urls = the bolha.com ad, store or category addresses and ad numbers you list below. agencies = real estate stores (agencies) with logo, profile data and live ad counts. market = ad counts and price statistics per region.",
            "default": "search"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows (all record types together). Free plans are limited to 10 items per run.",
            "default": 50
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Which real estate categories to read (search and market modes). Rooms and holiday rentals exist for rent only; new builds, holiday homes and land sales exist for sale. Luxury covers the luxury apartment and house categories.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "land",
                "commercial",
                "garage",
                "room",
                "holiday-home",
                "holiday-rental",
                "new-build",
                "luxury"
              ],
              "enumTitles": [
                "Apartments",
                "Houses",
                "Land and plots",
                "Commercial space",
                "Garages and parking",
                "Rooms (rent only)",
                "Holiday homes (sale only)",
                "Holiday rentals (rent only)",
                "New builds (sale only)",
                "Luxury apartments and houses"
              ]
            },
            "default": [
              "apartment"
            ]
          },
          "operation": {
            "title": "Deal type",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Sale, rent or both. Types that do not exist for the chosen deal type are skipped with a warning.",
            "default": "sale"
          },
          "country": {
            "title": "Country of the ads",
            "enum": [
              "SI",
              "HR",
              "all"
            ],
            "type": "string",
            "description": "bolha.com lists Slovenian ads and many Croatian ads (about 9 in 10 apartments for sale are Croatian). SI reads the 12 Slovenian regions, HR reads the Croatian bucket, all reads the national list. Ignored when you name places below.",
            "default": "SI"
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Optional. Place names as they appear in bolha.com addresses, for example osrednjeslovenska, maribor, ljubljana-center, obalno-kraska, istrska-zupanija or zagreb-mesto. A pasted category address works too. Empty means the whole country chosen above.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount in euro. Leave empty for no limit."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount in euro. Leave empty for no limit."
          },
          "minAreaM2": {
            "title": "Minimum area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads with at least this living, usable or plot area in square metres (the site uses the main area of each category). Leave empty for no limit."
          },
          "maxAreaM2": {
            "title": "Maximum area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads with at most this area in square metres. Leave empty for no limit."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Apartments only: at least this many rooms (1 to 7, counting bedrooms and living room). Other property types ignore it with a warning."
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Apartments only: at most this many rooms. Other property types ignore it with a warning."
          },
          "withImagesOnly": {
            "title": "Only ads with photos",
            "type": "boolean",
            "description": "Keep only ads that have at least one photo.",
            "default": false
          },
          "skipPlaceholderPrices": {
            "title": "Skip placeholder prices",
            "type": "boolean",
            "description": "Sale ads priced at 100 EUR or less are placeholders (1 EUR, 10 EUR, 'call me'). Turn this on to drop them, which matters when sorting by lowest price.",
            "default": false
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "agencies",
              "private"
            ],
            "type": "string",
            "description": "Keep ads from agencies (stores), from private sellers, or both. Private sellers are never named and their phone numbers are never output.",
            "default": "all"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "new",
              "old",
              "cheap",
              "expensive"
            ],
            "type": "string",
            "description": "Order of the ads inside each place: newest first, oldest first, lowest price first or highest price first.",
            "default": "new"
          },
          "maxSearchPages": {
            "title": "Maximum list pages per place",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Each list page holds 25 ads. Raise it to read very large categories, lower it to stay shallow.",
            "default": 100
          },
          "startUrls": {
            "title": "Addresses",
            "type": "array",
            "description": "urls mode: bolha.com ad addresses (ending in -oglas-1234567), store addresses (bolha.com/trgovina/name) or real estate category addresses (for example https://www.bolha.com/prodaja-hise/maribor).",
            "items": {
              "type": "string"
            }
          },
          "listingIds": {
            "title": "Ad numbers",
            "type": "array",
            "description": "urls mode: bolha.com ad numbers (5 to 10 digits, the number at the end of an ad address).",
            "items": {
              "type": "string"
            }
          },
          "agencyQuery": {
            "title": "Agency name filter",
            "type": "string",
            "description": "agencies mode: only stores whose name contains this text (for example remax or nepremicnine). Empty reads every store that advertises real estate.",
            "default": ""
          },
          "onlyRealEstate": {
            "title": "Only stores with real estate ads",
            "type": "boolean",
            "description": "agencies mode: skip stores that have no real estate ads at the moment.",
            "default": true
          },
          "scrapeDetails": {
            "title": "Open every ad",
            "type": "boolean",
            "description": "On: open each ad page for the full description, all photos, coordinates, floor, year, energy data and the seller store (listing-detail-record). Off: card data only from the list page, much faster (listing-record).",
            "default": true
          },
          "includeContactDetails": {
            "title": "Include agency contact details",
            "type": "boolean",
            "description": "Adds the business website, e-mail and address of the selling store. Phone numbers and private persons are never output.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw site data",
            "type": "boolean",
            "description": "Adds the untouched site data of each ad in a raw field. Larger rows, mostly for debugging.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new ads (monitor)",
            "type": "boolean",
            "description": "Skips every ad seen in an earlier run with the same monitor name, so scheduled runs return only what is new.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Report price changes",
            "type": "boolean",
            "description": "Needs Only new ads. An ad seen before with a different price comes back as changed-listing-record with the previous price and the change in percent.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the memory used by Only new ads. Use one name per saved search. Empty derives a name from your filters.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget seen ads",
            "type": "boolean",
            "description": "Clears the memory of the monitor name before this run.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many ad pages are fetched at the same time (1 to 8). The site is open, 4 is polite and fast.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Empty means direct requests, which work. Add a proxy only if your own network needs one."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}