# Njuskalo.hr Multi-Category Ad Scraper (`nimbryxo-studio/njuskalo-hr-multi-category-ad-scraper`) Actor

Scrape classifieds listings from Njuskalo.hr across 12 categories (cars, real estate, mobiles, jobs, electronics, etc.). Requires Apify Residential proxy with Croatia country routing (Njuskalo geo-blocks non-HR IPs).

- **URL**: https://apify.com/nimbryxo-studio/njuskalo-hr-multi-category-ad-scraper.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** E-commerce, Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Njuskalo.hr Multi-Category Ad Scraper

Scrape classifieds listings from [Njuskalo.hr](https://www.njuskalo.hr) — Croatia's largest online marketplace. Supports 12 categories: **cars, apartments for sale/rent, houses for sale, mobile phones, IT equipment, audio/video/photo, fashion, home goods, jobs, tourist accommodation, and food & beverages**.

### 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 | Default | Description |
|---|---|---|---|
| `category` | select | `auti` | One of 12 popular categories. Used when `startUrls` is empty |
| `startUrls` | array | – | Njuskalo category/search/listing URLs. Apply filters on njuskalo.hr first, then paste the URL |
| `keyword` | string | – | Free-text search. Appended as `?keywords=...` to the category URL |
| `fetchDetails` | boolean | `false` | If true, fetches each listing's detail page for richer output. Doubles HTTP request count |
| `maxItems` | integer | `50` | Maximum listings to return (1–10,000) |
| `proxyConfiguration` | object | Residential (HR) proxy | **Required.** Must stay on Apify Residential proxy with country Croatia (`HR`); the 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 |
| `sellerName` | string? | |
| `sellerType` | string? | Seller type label as shown on the page (e.g. `Privatni oglašivač` for a private seller) |
| `sellerIsVerified` | boolean? | `true` when Njuskalo shows the seller verified their phone number |
| `sellerPhone` | string? | Only when publicly visible |
| `sellerEmail` | string? | Only when publicly visible |
| `sellerLocation` | string? | |
| `images` | string\[]? | Full gallery URLs |
| `views` | integer? | View count |
| `categoryAttrs` | object? | Category-specific key-value dict (see below) |

#### `categoryAttrs` Examples

- **Cars:** `{make, model, year, km, fuelType, transmission, color, power}`
- **Apartments / houses:** `{size_m2, bedrooms, floor}`
- **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.

**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"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All records from the run, in the default dataset.

# 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("nimbryxo-studio/njuskalo-hr-multi-category-ad-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("nimbryxo-studio/njuskalo-hr-multi-category-ad-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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 nimbryxo-studio/njuskalo-hr-multi-category-ad-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/njuskalo-hr-multi-category-ad-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jMU7iutmNXOPJCFOw/builds/4zMQ5bIvhFXpAacRV/openapi.json
