# Krogsveen Properties and Details Scraper (`realestateapi/krogsveen-properties-and-details-scraper`) Actor

Krogsveen Properties and Details Scraper — Extracts validated public Krogsveen.no property details and bounded active/upcoming listings. Failures stay in the run summary and are never written as dataset records.

- **URL**: https://apify.com/realestateapi/krogsveen-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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

## Krogsveen Properties and Details Scraper

This Actor extracts public property listing and detail data from [Krogsveen.no](https://www.krogsveen.no/). You can provide explicit property URLs or IDs, or request a bounded page of public sale or rental listings.

### Input

Direct-detail inputs accept `urls`, `listingUrls`, `startUrls`, or `listingIds`. For URL-based input, use an official Krogsveen property URL. When no direct URL or ID is supplied, `maxItems`, `startOffset`, and `listingType` control the bounded public listing search. Limits are 200 records per run, a start offset up to 5,000, and 200 direct-detail items. `timeoutSeconds`, `retries`, and `delayMs` tune bounded requests.

`compactOutput` (boolean, default `false`) is an opt-in output mode. Leave it `false` to keep the historical record shape. Set it to `true` to emit a canonical record that keeps all top-level fields but drops the redundant `publicDetails` wrapper (which duplicates most top-level data plus the raw image/text blobs); such records carry `compactOutput: true`. This is backward-compatible: enabling it never removes a canonical top-level field, and the default output is byte-for-byte unchanged in shape.

The Actor reads public listing data only. It does not log in, access saved searches or account data, submit forms, contact agents, download documents, or bypass access controls. If the source blocks a request, the Actor reports the failure and does not create a property row from it.

### Output

Each Dataset item is a validated public property listing or detail. Common fields include listing ID and canonical URL; address and municipality; price, currency, and Norwegian purchase-cost/debt breakdown; rent when present; property type and status; area measurements, rooms, bedrooms, bathrooms, and floor; construction year and energy label; images and facilities; and public listing descriptions. Fields absent from a source record are omitted. Sale `totalPrice` adds displayed asking price, purchase costs, and collective debt when available; `sourceTotalPrice` preserves the source value. The `areaBreakdown` object keeps the source's BRA, BRA-I, BRA-E, BTA, P-ROM, S-ROM, and TBA values distinct. The source stores the energy certificate grade as a numeric code (1–7); `energy.letter` decodes it to the displayed A–G letter and `energy.code` preserves the raw source value.

The following synthetic example shows the Dataset row shape. Its values are illustrative and are not a live listing or a copy of saved property data:

```json
{
  "recordType": "krogsveenPropertyDetail",
  "dataAvailable": true,
  "listingId": "00000000-0000-4000-8000-000000000000",
  "title": "Illustrative detached home",
  "canonicalUrl": "https://www.krogsveen.no/kjope/boliger-til-salgs/00000000-0000-4000-8000-000000000000",
  "sourceUrl": "https://u9ed36i9.api.sanity.io/v2021-03-25/data/query/production?query=%2A%5B_type%3D%3D%22estate%22%5D",
  "requestUrl": "https://u9ed36i9.api.sanity.io/v2021-03-25/data/query/production?query=%2A%5B_type%3D%3D%22estate%22%5D",
  "finalUrl": "https://u9ed36i9.api.sanity.io/v2021-03-25/data/query/production?query=%2A%5B_type%3D%3D%22estate%22%5D",
  "sourceDomain": "krogsveen.no",
  "httpStatus": 200,
  "listingType": "sale",
  "scrapeMode": "detail",
  "accessStatus": "AVAILABLE",
  "address": {
    "streetAddress": "1 Example Street",
    "postalCode": "0001",
    "city": "Exampleby"
  },
  "municipality": "Exampleby",
  "latitude": 60,
  "longitude": 10,
  "description": "Synthetic example description for a fictional property.",
  "price": 5000000,
  "totalPrice": 5125000,
  "sourceTotalPrice": 5100000,
  "totalPriceExclusiveCostsAndDebt": 5000000,
  "purchaseCosts": 125000,
  "collectiveDebt": 0,
  "collectiveAssets": 0,
  "currency": "NOK",
  "propertyType": "Detached house",
  "ownership": 0,
  "ownershipLabel": "Eiet",
  "status": 1,
  "upcoming": false,
  "area": {
    "bra": 120,
    "braI": 100
  },
  "areaBreakdown": {
    "bra": 120,
    "braI": 100,
    "tba": 12
  },
  "bedrooms": 3,
  "bathrooms": 2,
  "rooms": 4,
  "floor": 1,
  "constructionYear": 2020,
  "energy": {
    "letter": "B",
    "code": 2
  },
  "images": [],
  "buildings": [],
  "facilities": [],
  "estateFacilities": [],
  "links": [],
  "brokers": [],
  "publicDetails": {
    "estateType": "Detached house",
    "estatePrice": 5100000
  },
  "actorName": "Krogsveen Properties and Details Scraper",
  "actorSlug": "krogsveen-properties-and-details-scraper",
  "actorStoreSlug": "alexist/krogsveen-property-details-scraper",
  "actorStoreUrl": "https://apify.com/alexist/krogsveen-property-details-scraper",
  "inventoryRank": 4800,
  "publicOnly": true,
  "accessPolicy": "Public Krogsveen.no estate records from the read-only Sanity dataset only; no account, saved search, seller identity, login, private API, document download, proxy credential, or access-control bypass.",
  "scrapedAt": "2026-01-01T00:00:00.000Z"
}
```

With `compactOutput: true`, the `publicDetails` object is omitted from each item and a `compactOutput: true` marker is added; every other top-level field above is still emitted. The run summary (`OUTPUT` / `RUN_METADATA`) also records the `compactOutput` mode used.

Source failures and diagnostics are stored separately from the Dataset. A clean run, including a clean empty search, reports `SUCCEEDED / COMPLETED`; failures after saving a real property report `SUCCEEDED / PARTIAL`; failures with no real property rows report `FAILED / FAILED`.

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum number of estate records to return.

## `startOffset` (type: `integer`):

Zero-based offset in Krogsveen's public estate result set.

## `listingIds` (type: `array`):

Optional Krogsveen estate IDs to retrieve directly. Use listingUrls instead when you have public detail-page URLs.

## `listingUrls` (type: `array`):

Optional public Krogsveen property-detail URLs. The Actor resolves their estate IDs through Krogsveen's public dataset.

## `startUrls` (type: `array`):

Optional standard Apify URL input alias for public Krogsveen property-detail URLs.

## `listingType` (type: `string`):

Route used for canonical listing URLs; the public dataset query returns sold-or-upcoming estate records.

## `urls` (type: `array`):

String-array alias for public individual Krogsveen property-detail URLs.

## `max_items_per_url` (type: `integer`):

Published contract alias for the maximum number of public property details to return.

## `ignore_url_failures` (type: `boolean`):

Continue collecting other valid property details when one requested URL or estate ID is missing. Missing details are summarized in the key-value store, never written as dataset rows.

## `compactOutput` (type: `boolean`):

When enabled, each Dataset record keeps all canonical top-level fields but omits the redundant publicDetails wrapper (which duplicates most top-level data plus raw image/text blobs) and adds compactOutput: true. Defaults to false so the historical record shape is unchanged.

## `timeoutSeconds` (type: `integer`):

Maximum time allowed for a public Krogsveen Sanity request.

## `retries` (type: `integer`):

Bounded retries for transient public source errors.

## `delayMs` (type: `integer`):

Optional delay between records written from a public result page.

## Actor input object example

```json
{
  "maxItems": 10,
  "startOffset": 0,
  "listingType": "sale",
  "max_items_per_url": 200,
  "ignore_url_failures": true,
  "compactOutput": false,
  "timeoutSeconds": 30,
  "retries": 1,
  "delayMs": 0
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `metadata` (type: `string`):

No description

## `errors` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("realestateapi/krogsveen-properties-and-details-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("realestateapi/krogsveen-properties-and-details-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 '{}' |
apify call realestateapi/krogsveen-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/krogsveen-properties-and-details-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/V1HqI7qpdx8IaeKKA/builds/HhllcHjcMkFMpKgUj/openapi.json
