{
  "openapi": "3.0.1",
  "info": {
    "title": "FINN.no Scraper | Norway Real Estate Sale Rent",
    "description": "Scrape FINN.no Eiendom homes for sale, rent, leisure, plots & projects. Extract NOK prices, bedrooms, size, addresses, agents & URLs — FINN API alternative.",
    "version": "0.1",
    "x-build-id": "XvyG0qyneoUdOs3i9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~finn-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-finn-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/lentic_clockss~finn-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-finn-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/lentic_clockss~finn-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-finn-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": {
          "location": {
            "title": "Location",
            "maxLength": 160,
            "type": "string",
            "description": "FINN location code (e.g. 0.20061) or seed city slug (oslo, bergen, …).",
            "default": "oslo"
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "sale",
              "rent",
              "projects",
              "leisure",
              "leisure_plots",
              "plot",
              "commercial",
              "abroad",
              "planned",
              "office"
            ],
            "type": "string",
            "description": "Eiendom vertical: sale/rent/projects/leisure/leisure_plots/plot/commercial/abroad/planned/office.",
            "default": "sale"
          },
          "priceFrom": {
            "title": "Price from (NOK)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum price filter (price_from)."
          },
          "priceTo": {
            "title": "Price to (NOK)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum price filter (price_to)."
          },
          "priceCollectiveFrom": {
            "title": "Collective price from",
            "minimum": 0,
            "type": "integer",
            "description": "Optional price_collective_from filter."
          },
          "priceCollectiveTo": {
            "title": "Collective price to",
            "minimum": 0,
            "type": "integer",
            "description": "Optional price_collective_to filter."
          },
          "areaFrom": {
            "title": "Area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum area filter (area_from)."
          },
          "areaTo": {
            "title": "Area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum area filter (area_to)."
          },
          "plotAreaFrom": {
            "title": "Plot area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional plot_area_from filter."
          },
          "plotAreaTo": {
            "title": "Plot area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional plot_area_to filter."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Optional minimum bedrooms filter (min_bedrooms)."
          },
          "propertyType": {
            "title": "Property type",
            "type": "string",
            "description": "FINN property_type id or slug (3/leilighet, 1/enebolig, 4/rekkehus, …)."
          },
          "ownershipType": {
            "title": "Ownership type",
            "type": "string",
            "description": "FINN ownership_type id or slug (3/selveier, 4/andel, 2/aksje)."
          },
          "constructionYearFrom": {
            "title": "Construction year from",
            "type": "integer",
            "description": "Optional construction_year_from."
          },
          "constructionYearTo": {
            "title": "Construction year to",
            "type": "integer",
            "description": "Optional construction_year_to."
          },
          "published": {
            "title": "Published filter",
            "type": "string",
            "description": "Optional FINN published filter value."
          },
          "videoType": {
            "title": "Video type",
            "type": "string",
            "description": "Optional FINN video_type filter."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "PUBLISHED_DESC",
              "PRICE_ASC",
              "PRICE_DESC",
              "PRICE_ASKING_ASC",
              "PRICE_ASKING_DESC",
              "PRICE_SQM_ASC",
              "PRICE_SQM_DESC",
              "AREA_PROM_ASC",
              "AREA_PROM_DESC"
            ],
            "type": "string",
            "description": "Optional FINN sort enum."
          },
          "maxResults": {
            "title": "Max results (max 2,000; free users capped at 1,000/run)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum listings to return in this run (1–2,000). Free Apify plan users are limited to 1,000 results per run and 10 total runs of this Actor — limits set by the Actor developer.",
            "default": 50
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum SERP pages (~50 listings/page), up to 100.",
            "default": 1
          },
          "fetchAllPages": {
            "title": "Fetch all pages",
            "type": "boolean",
            "description": "Expand pages from treff estimate, capped by maxResults.",
            "default": false
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Optional FINN ad.html URLs. When set, calls /v1/listings.",
            "items": {
              "type": "string"
            }
          },
          "officeUrl": {
            "title": "Office URL",
            "type": "string",
            "description": "Broker/company profile URL (required for channel=office if no detailUrls)."
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Fetch LDP testid + stream fields for each listing.",
            "default": true
          },
          "enrichOffice": {
            "title": "Enrich office",
            "type": "boolean",
            "description": "Extract broker/office fields from LDP and follow office URL when present.",
            "default": false
          },
          "enrichAreaProfile": {
            "title": "Enrich area profile",
            "type": "boolean",
            "description": "Fetch /areaprofile/{finnkode} summary into enrichment.areaProfile.",
            "default": false
          },
          "enrichOwnershipHistory": {
            "title": "Enrich ownership history",
            "type": "boolean",
            "description": "Fetch ownershiphistory.html rows into enrichment.ownershipHistory.",
            "default": false
          },
          "enrichNeighborhood": {
            "title": "Enrich neighborhood",
            "type": "boolean",
            "description": "Fetch neighborhood-api-alt.json into enrichment.neighborhood.",
            "default": false
          },
          "incremental": {
            "title": "Incremental dedupe",
            "type": "boolean",
            "description": "Skip listingIds already stored in named KV store finn-seen-finnkodes (SEEN_FINNKODES). Persists across runs; full skip still SUCCEEDED.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw",
            "type": "boolean",
            "description": "Include raw parse payload on each row when supported.",
            "default": false
          },
          "fields": {
            "title": "Fields projection",
            "type": "array",
            "description": "Optional worker response field projection (dataset still stores full rows).",
            "items": {
              "type": "string"
            }
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional webhook; failures become partial warnings, not hard fail."
          },
          "workerBaseUrl": {
            "title": "Worker base URL (optional)",
            "type": "string",
            "description": "Override the Cloud Run worker origin for this run. Defaults to Actor env WORKER_BASE_URL. Use when testing a staging worker; production migrations should update WORKER_BASE_URL in Actor settings (no code change)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}