{
  "openapi": "3.0.1",
  "info": {
    "title": "4zida.rs Scraper - Serbia Property Listings",
    "description": "Scrape 4zida.rs, Serbia's #1 property portal: sale and rental listings with price, EUR per m², area, rooms, floor, heating, registration, seller type and agency. Optional full adverts add description, coordinates, year built, photos and phones.",
    "version": "1.0",
    "x-build-id": "a2ubojc6oFyDasd6L"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bovi~4zida-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bovi-4zida-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/bovi~4zida-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bovi-4zida-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/bovi~4zida-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bovi-4zida-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": {
          "operation": {
            "title": "What to scrape",
            "enum": [
              "search",
              "detail"
            ],
            "type": "string",
            "description": "Search walks 4zida.rs listing results for the places and filters below (20 listings per page). Detail takes 4zida advert URLs from 'Listing URLs' and returns each full advert.",
            "default": "search"
          },
          "locations": {
            "title": "Places in Serbia",
            "type": "array",
            "description": "One place per line: a city, town or neighbourhood in Serbian Latin (Beograd, Novi Sad, Niš, Kragujevac) or its 4zida URL slug (beograd, novi-beograd-beograd). Each place is resolved through 4zida's own place index. Leave empty to search all of Serbia.",
            "items": {
              "type": "string"
            }
          },
          "dealType": {
            "title": "Sale or rental",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "For-sale listings (prodaja) or rentals (izdavanje). Rental prices are monthly rent in EUR, as published.",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Which property types to search. Empty means apartments. Each place is searched once per selected type.",
            "items": {
              "type": "string",
              "enum": [
                "apartments",
                "houses",
                "offices",
                "lots",
                "vehicle-spots"
              ],
              "enumTitles": [
                "Apartments (stanovi)",
                "Houses (kuće)",
                "Commercial premises (poslovni prostori)",
                "Lots and land (placevi)",
                "Garages and parking (garaže i parking)"
              ]
            },
            "default": [
              "apartments"
            ]
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "agency",
              "owner",
              "company",
              "investor"
            ],
            "type": "string",
            "description": "Keep only listings from one kind of advertiser, using 4zida's own seller filter. Empty means all sellers.",
            "default": ""
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "",
              "createdAtDesc",
              "priceAsc",
              "priceDesc",
              "m2Asc",
              "m2Desc"
            ],
            "type": "string",
            "description": "Result order. Empty keeps 4zida's default order (promoted listings first).",
            "default": ""
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound in EUR (monthly rent for rentals). 0 means no bound. Sent to 4zida's own price filter.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound in EUR. 0 means no bound.",
            "default": 0
          },
          "minArea": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum area in square metres. 0 means no bound. For lots it is converted to ares, the unit 4zida filters lots by.",
            "default": 0
          },
          "maxArea": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum area in square metres. 0 means no bound.",
            "default": 0
          },
          "searchUrls": {
            "title": "4zida search URLs",
            "type": "array",
            "description": "Optional: paste 4zida.rs search addresses instead of (or as well as) the form, e.g. https://www.4zida.rs/izdavanje-stanova/beograd/vlasnik?jeftinije_od=600eur. Deal, property type, place, seller type, room structure and price/area bounds are read from the URL.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Full advert details",
            "type": "boolean",
            "description": "Also open each listing's advert and add the seller's description, coordinates, year built, all photos, amenities, the agency name, e-mail and phone numbers. One extra request per listing.",
            "default": false
          },
          "listingUrls": {
            "title": "Listing URLs (Detail mode)",
            "type": "array",
            "description": "4zida advert URLs for the Detail operation, e.g. https://www.4zida.rs/prodaja-stanova/.../6a2a4140c07ac1073907fede.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total across all places and property types.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. 4zida.rs answers without one; turn on Apify Proxy if you run very large jobs.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}