{
  "openapi": "3.0.1",
  "info": {
    "title": "Krogsveen.no Real Estate Scraper",
    "description": "Scrape Norwegian real-estate listings from Krogsveen.no with search URL or filter-based discovery, optional full details and broker contact info.",
    "version": "1.0",
    "x-build-id": "LXIEnptaKcrrxadE5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~krogsveen-no-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-krogsveen-no-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/rigelbytes~krogsveen-no-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-krogsveen-no-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/rigelbytes~krogsveen-no-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-krogsveen-no-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional. Krogsveen search pages (with filters in the query string) or individual listing URLs, e.g. https://www.krogsveen.no/kjope/boliger-til-salgs?minPrice=0&maxPrice=5000000&propertyTypes=leilighet or https://www.krogsveen.no/kjope/boliger-til-salgs/<estate-id>. Prefer searchQueries/filters for agents; URLs are optional for power users.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Default search mode when not encoded in startUrls: homes for sale or for rent.",
            "default": "sale"
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Free-text location or keyword phrases for Krogsveen search, e.g. \"Oslo\", \"Bergen\", \"Lillestrøm\". Passed to the site search API as phrases. Use instead of (or together with) startUrls.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price / rent in NOK (minPrice)."
          },
          "maxPrice": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price / rent in NOK (maxPrice)."
          },
          "minHabitableArea": {
            "title": "Min Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum habitable area in square meters (minHabitableArea)."
          },
          "maxHabitableArea": {
            "title": "Max Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum habitable area in square meters (maxHabitableArea)."
          },
          "bedrooms": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms (bedrooms)."
          },
          "propertyTypes": {
            "title": "Property Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Eiendomstype filter values used by Krogsveen search.",
            "items": {
              "type": "string",
              "enum": [
                "enebolig",
                "rekkehus",
                "tomannsbolig",
                "leilighet",
                "annet",
                "tomt",
                "hytter/fritid",
                "gårdsbruk/småbruk"
              ],
              "enumTitles": [
                "Enebolig",
                "Rekkehus",
                "Tomannsbolig",
                "Leilighet",
                "Annet",
                "Tomt",
                "Hytter/Fritid",
                "Gårdsbruk/Småbruk"
              ]
            }
          },
          "commissionStates": {
            "title": "Listing Status",
            "uniqueItems": true,
            "type": "array",
            "description": "Commission states: ACTIVE (on market) and/or UPCOMING (coming soon). Defaults depend on listing type.",
            "items": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "UPCOMING"
              ],
              "enumTitles": [
                "Active (Til salgs / til leie)",
                "Upcoming (Kommer for salg)"
              ]
            }
          },
          "commissionTypes": {
            "title": "Commission Types",
            "type": "array",
            "description": "Advanced. Override GraphQL commissionTypes (e.g. RESIDENTIAL_FOR_SALE, PROJECT_FOR_SALE, RESIDENTIAL_FOR_RENT).",
            "items": {
              "type": "string"
            }
          },
          "ownershipTypes": {
            "title": "Ownership Types",
            "type": "array",
            "description": "Optional ownership type codes passed to the search API (ownershipTypes).",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Fetch Full Listing Details",
            "type": "boolean",
            "description": "When enabled, fetches each listing’s full detail payload (description, all images, showings, documents, cadastre, department, etc.) and charges the detailed-listing event.",
            "default": false
          },
          "includeContactInfo": {
            "title": "Include Broker Contact",
            "type": "boolean",
            "description": "When enabled, extracts broker contact information (name, email, phone) from the listing detail and charges the broker-info event. Performs a detail fetch per listing.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings. Residential proxies are recommended.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}