{
  "openapi": "3.0.1",
  "info": {
    "title": "Njuškalo Scraper - Croatia Property, Cars & Classifieds",
    "description": "Scrape Njuškalo.hr listings: apartments, houses, land, cars and marketplace ads with EUR prices, GPS, seller type and photos. No login, no API key.",
    "version": "1.0",
    "x-build-id": "GAWMRGyJIvuY45raw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~njuskalo-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-njuskalo-property-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/sian.agency~njuskalo-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-njuskalo-property-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/sian.agency~njuskalo-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-njuskalo-property-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 do you want to scrape?",
            "enum": [
              "search",
              "detail"
            ],
            "type": "string",
            "description": "🎯 **PICK ONE PER RUN.**\n\n🔍 **Listing Search** — every listing in a section that matches your filters. This is the one you want 95% of the time.\n\n📄 **Listing Detail** — you already have listing URLs and want the full description, the attribute table, GPS and every photo for each one.\n\n💡 Want all of that on a SEARCH run instead? Leave this on Listing Search and switch on **Fetch full listing pages** below.",
            "default": "search"
          },
          "category": {
            "title": "🗂️ Section",
            "enum": [
              "prodaja-stanova",
              "iznajmljivanje-stanova",
              "prodaja-kuca",
              "iznajmljivanje-kuca",
              "prodaja-zemljista",
              "prodaja-poslovnih-prostora",
              "iznajmljivanje-poslovnih-prostora",
              "vikendice",
              "novogradnja",
              "prodaja-garaza",
              "iznajmljivanje-soba",
              "turisticki-smjestaj",
              "auti",
              "novi-auti",
              "motori",
              "gospodarska-vozila",
              "nautika",
              "mobiteli",
              "informatika",
              "audio-video-foto",
              "sve-za-dom",
              "sportska-oprema",
              "strojevi-alati",
              "djecji-svijet",
              "posao",
              "usluge",
              "kucni-ljubimci"
            ],
            "type": "string",
            "description": "🗂️ **WHICH SECTION** of Njuškalo to walk.\n\n🏠 The twelve **property** sections come first — apartments and houses to buy or rent, land, commercial space, holiday homes, new builds.\n\n🚗 **Cars, boats and the marketplace** sections return the same row shape, so a used-car run needs no extra setup.\n\n🎯 Every section has its own attribute set — floor area on apartments, mileage on cars — in the **Attributes** column when full listing pages are on.\n\n💡 Ignored when you paste URLs or type a keyword.",
            "default": "prodaja-stanova"
          },
          "location": {
            "title": "📍 County or city",
            "type": "string",
            "description": "📍 **NARROW IT TO ONE PLACE.** Type a Croatian county or city: `zagreb`, `split`, `rijeka`, `osijek`, `istra`, `dubrovnik`.\n\n🌍 **Or leave it empty** to take the whole country.\n\n🔎 Matched against the county list Njuškalo publishes on the section page, so `Osječko-baranjska`, `osjecko-baranjska` or just the start of it all work.\n\n⚠️ No match STOPS the run and names the counties that section has — a typo can never bill you for the whole country.\n\n💡 Only property sections filter by county.",
            "default": ""
          },
          "keyword": {
            "title": "🔑 Search keyword",
            "type": "string",
            "description": "🔑 **SEARCH THE WHOLE SITE** for a word instead of walking one section: `penthouse`, `novogradnja`, `bmw serija 5`, `iphone 17`.\n\n🌐 Njuškalo's keyword search spans **every category at once**, so when this is filled the section and county above are ignored.\n\n💡 Leave it empty to browse a section instead — that is usually what you want for market data, because it returns everything rather than what matched a word.",
            "default": ""
          },
          "maxResults": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "🔢 **STOP AFTER THIS MANY LISTINGS.** Each page request returns 25, so the run stops at the first page that crosses your limit.\n\n📊 There is no ceiling on the source side — apartments for sale exposes all 2,094 pages of its 52,000+ listings — so this number is what controls both run length and your bill.\n\n🆓 Free Apify accounts are capped at 25 rows per run regardless of this setting.",
            "default": 100
          },
          "includeDetails": {
            "title": "📄 Fetch full listing pages",
            "type": "boolean",
            "description": "📄 **OPEN EVERY LISTING** to add what the results page does not carry: the full Croatian description, GPS coordinates, the seller's name and whether they are an **agency or a private owner**, the complete attribute table, view count and every photo.\n\n🎯 This is what turns a listing dump into a lead list — seller type is the field you filter on.\n\n💰 Costs one extra request per listing and bills the **Listing Detail** event on top of the search row. Leave it off and you pay for search rows only.",
            "default": false
          },
          "searchUrls": {
            "title": "🌐 Search URLs",
            "type": "array",
            "description": "🌐 **PASTE BROWSE OR SEARCH URLS** from njuskalo.hr instead of filling the fields above.\n\n🎚️ **Every filter already in the URL is kept** — price band, floor area, rooms, heating, year built, radius, sort order. This is how you reach filters this form does not carry.\n\n💡 Build the search on Njuškalo in your browser, then copy the address bar.\n\n📋 Bulk edit, .txt upload and + Add all work here.\n\n✅ Example: `https://www.njuskalo.hr/prodaja-stanova/zagreb?price[max]=200000`",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "🔗 Listing URLs",
            "type": "array",
            "description": "🔗 **USED BY THE LISTING DETAIL OPERATION.** Njuškalo listing addresses to expand, in the form you get from your browser's address bar — they end in `-oglas-<id>`.\n\n✅ Example: `https://www.njuskalo.hr/nekretnine/stan-zagreb-oglas-51235965`\n\n📋 Bulk edit, .txt upload and + Add all work here.\n\n⚠️ A listing that has been sold or withdrawn comes back as an error row and is **not charged**.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minPrice": {
            "title": "💵 Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "💵 **LOWEST PRICE TO INCLUDE**, in euros. `0` means no lower bound.\n\n🪙 Croatia has been on the euro since 2023 and Njuškalo re-denominated its whole back catalogue, so every price on the site — and every number here — is in euros.",
            "default": 0
          },
          "maxPrice": {
            "title": "💰 Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "💰 **HIGHEST PRICE TO INCLUDE**, in euros. `0` means no upper bound.\n\n🎯 Filtering here is cheaper than filtering afterwards: Njuškalo applies the band before the rows are returned, so you are never billed for listings outside it.",
            "default": 0
          },
          "onlyWithImages": {
            "title": "🖼️ Only listings with photos",
            "type": "boolean",
            "description": "🖼️ **SKIP LISTINGS WITH NO PHOTO.**\n\n🧹 Most useful on the marketplace sections, where placeholder and text-only ads are common. Property listings almost always have photos, so it changes little there.",
            "default": false
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "new",
              "old",
              "cheap",
              "expensive"
            ],
            "type": "string",
            "description": "↕️ **WHICH LISTINGS COME FIRST.**\n\n🕒 **Newest first** is what you want on a schedule — combine it with a row limit and each run pays for the listings added since the last one.\n\n⬆️⬇️ **Price order** is better for a one-off sweep of a band, because the run stops at your row limit from the end of the market you care about.",
            "default": "new"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}