{
  "openapi": "3.0.1",
  "info": {
    "title": "Serbia Real Estate Scraper — 4zida & Halooglasi",
    "description": "Scrape Serbian property listings from 4zida.rs and Halooglasi with cross-portal duplicates collapsed into one row per unique flat.",
    "version": "0.1",
    "x-build-id": "VUNLA1Hh81fbNBhdV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smolevich90~serbia-real-estate-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smolevich90-serbia-real-estate-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/smolevich90~serbia-real-estate-scraper/runs": {
      "post": {
        "operationId": "runs-sync-smolevich90-serbia-real-estate-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/smolevich90~serbia-real-estate-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-smolevich90-serbia-real-estate-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": {
          "location": {
            "title": "City or municipality",
            "type": "string",
            "description": "Where to search: a city (Beograd, Novi Sad, Niš, Kragujevac, Subotica…) or a Belgrade municipality (Vračar, Savski Venac, Novi Beograd, Zemun…). Spelling with or without Serbian diacritics both work.",
            "default": "Beograd"
          },
          "portals": {
            "title": "Portals",
            "uniqueItems": true,
            "type": "array",
            "description": "Which portals to scrape. Keeping both is the point — that is where cross-portal duplicates come from.",
            "items": {
              "type": "string",
              "enum": [
                "4zida",
                "halooglasi"
              ],
              "enumTitles": [
                "4zida.rs",
                "Halooglasi.com"
              ]
            },
            "default": [
              "4zida",
              "halooglasi"
            ]
          },
          "dealType": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings offered for sale or for rent.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartment",
              "house",
              "garage",
              "commercial"
            ],
            "type": "string",
            "description": "Apartments (stan), houses (kuća), garages and parking (garaža) or commercial space (poslovni prostor).",
            "default": "apartment"
          },
          "maxItems": {
            "title": "Max unique listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many unique objects to output. Each portal is scraped up to this many raw listings before duplicates are collapsed, so the dataset can come back shorter than the limit — that is the deduplication doing its job.",
            "default": 100
          },
          "minPrice": {
            "title": "Min price, EUR",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no lower bound. Both portals price in EUR."
          },
          "maxPrice": {
            "title": "Max price, EUR",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no upper bound."
          },
          "minArea": {
            "title": "Min area, m²",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no lower bound."
          },
          "maxArea": {
            "title": "Max area, m²",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for no upper bound."
          },
          "includeDuplicates": {
            "title": "Also output the collapsed duplicates",
            "type": "boolean",
            "description": "Off: one row per unique object, with every duplicate listed in its `duplicates` array. On: the duplicate listings get their own rows too, flagged with `is_duplicate` and `duplicate_of`. The price is the same either way — you are charged per object, not per row.",
            "default": false
          },
          "maxPhotos": {
            "title": "Photo URLs per listing",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "How many photo URLs to keep in each row. Photos are linked from the portal's own CDN, never rehosted.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy for Halooglasi",
            "type": "object",
            "description": "Halooglasi sits behind Cloudflare, which blocks Apify's datacenter IPs — so Halooglasi is fetched through this proxy, and only Halooglasi (4zida and photos go direct, to keep proxy traffic minimal). Residential is the default because datacenter proxies get the same block; it costs $8/GB of Halooglasi HTML, which the Actor developer pays. Turn Apify Proxy off here to skip Halooglasi's anti-bot entirely and run on 4zida alone — cross-portal deduplication then has nothing to cross to.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}