# Njuskalo.hr Scraper (`crawlerbros/njuskalo-scraper`) Actor

Scrape classifieds listings from Njuskalo.hr across 12+ categories (cars, real estate, mobiles, jobs, electronics, etc.).

- **URL**: https://apify.com/crawlerbros/njuskalo-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Real estate, Developer tools
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 21 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Njuskalo.hr Scraper

Scrape classifieds listings from [Njuskalo.hr](https://www.njuskalo.hr) — Croatia's largest online marketplace. Supports 12+ popular categories: **cars, real estate, mobile phones, IT equipment, electronics, fashion, home goods, jobs, tourism, food, and more**.

### Important: Residential Proxy (Croatia) Required

**Njuskalo.hr geo-blocks non-Croatian IPs at the TCP level.** Requests from outside Croatia time out silently — not a visible 403 error. This actor requires Apify's Residential proxy with the country set to Croatia (`HR`).

The default proxy configuration is correct — just leave the `proxyConfiguration` input at its prefill. Without it, the run will never produce listings.

### What This Scraper Does

Fetches Njuskalo category, search, or detail URLs and extracts every listing's publicly visible data: title, price (EUR), location, posted date, thumbnail, badges (e.g. "Provjereno" / Verified, "Top"). With **Fetch Listing Details** enabled, it also retrieves full description, seller info, image gallery, and category-specific attributes (car km/year, apartment size, etc.).

### Supported Categories

| Code | Category | Njuskalo path |
|---|---|---|
| `auti` | Cars | `/auti` |
| `prodaja-stanova` | Apartments for sale | `/prodaja-stanova` |
| `iznajmljivanje-stanova` | Apartments for rent | `/iznajmljivanje-stanova` |
| `prodaja-kuca` | Houses for sale | `/prodaja-kuca` |
| `mobiteli` | Mobile phones | `/mobiteli` |
| `informatika` | IT / computers | `/informatika` |
| `audio-video-foto` | Audio / video / photo | `/audio-video-foto` |
| `od-glave-do-pete` | Fashion | `/od-glave-do-pete` |
| `sve-za-dom` | Home goods | `/sve-za-dom` |
| `posao` | Jobs | `/posao` |
| `turisticki-smjestaj` | Tourist accommodation | `/turisticki-smjestaj` |
| `hrana-pice` | Food & beverages | `/hrana-pice` |

### Input

Two modes — use either or both:

#### Mode 1: Category dropdown (simplest)

Pick a category; the scraper uses its default browse URL.

#### Mode 2: Paste Njuskalo URLs (Start URLs)

Apply filters on njuskalo.hr (region, sub-category, price range, etc.) and paste the resulting URL.

#### Input Fields

| Field | Type | Description |
|---|---|---|
| **Category** | Enum | 12 popular categories. Default: `auti`. |
| **Start URLs** | List of strings (optional) | Njuskalo category/search/listing URLs. Prefilled with cars browse URL. |
| **Keyword** | String (optional) | Free-text search. Appended as `?keywords=...` to the category URL. |
| **Fetch Listing Details** | Boolean | If true, fetches each listing's detail page for richer output. Doubles HTTP request count. Default: `false`. |
| **Max Items** | Integer | Maximum listings to return (1–10,000). Default: 50. |
| **Proxy Configuration** | Proxy (required) | **MUST** use Apify Residential + Croatia. Default prefill is correct. |

### Output

Each record represents one classifieds listing. Fields marked `?` appear only when Njuskalo publishes the data.

#### Core Fields (from search card)

| Field | Type | Description |
|---|---|---|
| `url` | string | Canonical detail URL |
| `listingId` | string | Njuskalo internal ID (from `-oglas-{id}`) |
| `category` | string | Category slug e.g. `auti`, `mobiteli` |
| `title` | string | Listing headline |
| `priceLabel` | string? | Price as displayed e.g. `"24.500 €"` or `"Na upit"` |
| `askingPrice` | integer? | Price in EUR (integer) — omitted when undisclosed |
| `currency` | string? | `EUR` (default since 2023) or `HRK` (legacy) |
| `location` | string? | Raw location e.g. `"Zagreb, Trešnjevka"` |
| `city` | string? | City |
| `region` | string? | Region |
| `postedDate` | string? | Posted date as shown |
| `shortDescription` | string? | Card teaser text |
| `badges` | string[]? | e.g. `["Provjereno", "Top"]` |
| `thumbnail` | string? | Primary image URL |
| `scrapedAt` | string | ISO 8601 UTC timestamp |

#### Additional Fields (when Fetch Listing Details is enabled)

| Field | Type | Description |
|---|---|---|
| `description` | string? | Full listing description |
| `dateCreated` | string? | Creation timestamp |
| `expiresAt` | string? | Expiration timestamp |
| `sellerName` | string? | |
| `sellerType` | string? | `private` / `dealer` / `company` |
| `sellerIsVerified` | boolean? | |
| `sellerPhone` | string? | Only when publicly visible |
| `sellerEmail` | string? | Only when publicly visible |
| `sellerLocation` | string? | |
| `images` | string[]? | Full gallery URLs |
| `coordinates` | object? | `{lat, lng}` when published |
| `views` | integer? | View count |
| `categoryAttrs` | object? | Category-specific key-value dict (see below) |

#### `categoryAttrs` Examples

- **Cars:** `{make, model, year, km, fuelType, transmission, bodyType, color, power}`
- **Apartments / houses:** `{size_m2, bedrooms, floor, furnished}`
- **Jobs:** `{contractType, experienceLevel, salary}`
- **Electronics / mobiles:** `{make, model, condition}`

Fields appear only when Njuskalo returns data — no nulls.

#### Error Records

| Field | Description |
|---|---|
| `inputUrl` | Attempted URL |
| `error` | Human-readable error |
| `scrapedAt` | Timestamp |

### Frequently Asked Questions

**Do I need a Njuskalo account?**
No. Only publicly visible listing data is scraped.

**Why is a Croatian proxy required?**
Njuskalo blocks non-HR IPs at the network level — connections time out silently. Apify Residential with `apifyProxyCountry: "HR"` is the only reliable config. The default prefill handles this; just leave it alone.

**Which currency are prices in?**
Croatia adopted the Euro on 1 January 2023. Most current listings show prices in EUR (`€`). Some legacy listings may still show HRK (`kn`); the scraper reports `currency` per record.

**How many listings are available per category?**
Varies by category and time of year. Popular categories (cars, apartments, mobiles) typically have tens of thousands. The scraper paginates until `maxItems` is reached or the category runs out.

**Can I filter by sub-category, region, or price?**
Yes — apply the filters on njuskalo.hr, copy the URL, paste it as a Start URL.

**What's the difference between the `Category` dropdown and Start URLs?**
Category uses the category's default browse URL. Start URLs support any Njuskalo filter combination. Both can be combined.

**What's the difference vs. the reference actor (memo23/njuskalo-scraper)?**
Our actor skips monitoring mode (dedupe downstream by `listingId`), uses `fetchDetails` as an opt-in toggle (default off for speed), and ships a category dropdown for friendlier UX. The reference is more feature-rich but fetches detail pages always and always has monitoring mode.

**Can I scrape a single listing by URL?**
Yes. Paste the listing's detail URL (e.g. `https://www.njuskalo.hr/mobiteli/iphone-15-oglas-45123456`) as a Start URL. Enable Fetch Listing Details for full data.

**Can I run this on a schedule?**
Yes. Set up an Apify Schedule and dedupe downstream by `listingId`.

**Why are some seller contact fields missing?**
Njuskalo often hides phone/email behind a login wall. The scraper only extracts what's publicly visible on the page.

# Actor input Schema

## `category` (type: `string`):

Njuskalo category to scrape. Used when Start URLs is empty.
## `startUrls` (type: `array`):

Njuskalo category/search/detail URLs. Apply filters on njuskalo.hr first, then paste the URL. If empty, the Category dropdown is used.
## `keyword` (type: `string`):

Optional free-text keyword. Appended to the category URL as ?keywords=...
## `fetchDetails` (type: `boolean`):

If enabled, fetches each listing's detail page for richer fields (full description, seller info, all images, coordinates, category-specific attributes). Doubles HTTP request count.
## `maxItems` (type: `integer`):

Maximum number of listings to return (1–10,000).
## `proxyConfiguration` (type: `object`):

REQUIRED: Njuskalo geo-blocks non-Croatian IPs at the TCP level. Use Apify Residential proxy with apifyProxyCountry='HR'. The default prefill is correct — do not change unless you know what you're doing.

## Actor input object example

```json
{
  "category": "auti",
  "startUrls": [
    "https://www.njuskalo.hr/auti"
  ],
  "fetchDetails": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "HR"
  }
}
````

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "category": "auti",
    "startUrls": [
        "https://www.njuskalo.hr/auti"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "HR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/njuskalo-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "category": "auti",
    "startUrls": ["https://www.njuskalo.hr/auti"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "HR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/njuskalo-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "category": "auti",
  "startUrls": [
    "https://www.njuskalo.hr/auti"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "HR"
  }
}' |
apify call crawlerbros/njuskalo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/njuskalo-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Njuskalo.hr Scraper",
        "description": "Scrape classifieds listings from Njuskalo.hr across 12+ categories (cars, real estate, mobiles, jobs, electronics, etc.).",
        "version": "0.0",
        "x-build-id": "6IyiKOaNyRLSi4ZvA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~njuskalo-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-njuskalo-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/crawlerbros~njuskalo-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-njuskalo-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/crawlerbros~njuskalo-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-njuskalo-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",
                "required": [
                    "category",
                    "proxyConfiguration"
                ],
                "properties": {
                    "category": {
                        "title": "Category",
                        "enum": [
                            "auti",
                            "prodaja-stanova",
                            "iznajmljivanje-stanova",
                            "prodaja-kuca",
                            "mobiteli",
                            "informatika",
                            "audio-video-foto",
                            "od-glave-do-pete",
                            "sve-za-dom",
                            "posao",
                            "turisticki-smjestaj",
                            "hrana-pice"
                        ],
                        "type": "string",
                        "description": "Njuskalo category to scrape. Used when Start URLs is empty.",
                        "default": "auti"
                    },
                    "startUrls": {
                        "title": "Start URLs (optional)",
                        "type": "array",
                        "description": "Njuskalo category/search/detail URLs. Apply filters on njuskalo.hr first, then paste the URL. If empty, the Category dropdown is used.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "keyword": {
                        "title": "Keyword (optional)",
                        "type": "string",
                        "description": "Optional free-text keyword. Appended to the category URL as ?keywords=..."
                    },
                    "fetchDetails": {
                        "title": "Fetch Listing Details",
                        "type": "boolean",
                        "description": "If enabled, fetches each listing's detail page for richer fields (full description, seller info, all images, coordinates, category-specific attributes). Doubles HTTP request count.",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of listings to return (1–10,000).",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration (required)",
                        "type": "object",
                        "description": "REQUIRED: Njuskalo geo-blocks non-Croatian IPs at the TCP level. Use Apify Residential proxy with apifyProxyCountry='HR'. The default prefill is correct — do not change unless you know what you're doing."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
