{
  "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": "tap0dKqH8iIMtf1Ct"
  },
  "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",
              "torget",
              "car",
              "mc",
              "boat",
              "caravan",
              "job",
              "nybrukt"
            ],
            "type": "string",
            "description": "FINN vertical: realestate (sale/rent/projects/leisure/leisure_plots/plot/commercial/abroad/planned/office) + torget/car/mc/boat/caravan/job/nybrukt.",
            "default": "sale"
          },
          "q": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text search query (q) for torget/mobility/job SERP API."
          },
          "feed": {
            "title": "Feed enumeration",
            "type": "boolean",
            "description": "Pull atom feed (torget/job): rolling window of newest entries instead of SERP.",
            "default": false
          },
          "revealPhones": {
            "title": "Reveal phone numbers",
            "type": "boolean",
            "description": "Call the anonymous mobility phone API using the per-ad integrityToken embedded in detail pages.",
            "default": false
          },
          "appsgwService": {
            "title": "Appsgw signed service (advanced)",
            "type": "string",
            "description": "Call the HMAC-signed appsgw.finn.no service layer directly. Anonymous services include: company_autocomplete, location_autocomplete, job_title_autocomplete, company_profile, geospatial_polygon, messaging_ad_store, nabolagsprofil, mobility_frontpage, finance_links, finn_external_letting_profile, effect_blink, frontpage_layout, floorplan, pelias_autocomplete, meglerprofil, new_construction_ad, rc_search_campaigns, job_insights_styrk08_occupations, job_insights_salary_by_occupation, job_insights_occupations_by_title, job_insights_job_title_status, job_insights_salary_stats_metadata, job_insights_salary_history, job_profile_education_levels, job_profile_profile_statuses."
          },
          "appsgwTerm": {
            "title": "Appsgw term",
            "type": "string",
            "description": "Term/text for autocomplete services (company_autocomplete, location_autocomplete, job_title_autocomplete, pelias_autocomplete) or job_title for JOB-INSIGHTS queries."
          },
          "appsgwId": {
            "title": "Appsgw id",
            "type": "string",
            "description": "finnkode / adId / orgId / postal areaCode / styrk08Code / megler_id depending on the service."
          },
          "appsgwIds": {
            "title": "Appsgw ids (batch)",
            "type": "array",
            "description": "Batch id list for messaging_ad_store.",
            "items": {
              "type": "string"
            }
          },
          "appsgwLimit": {
            "title": "Appsgw limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Limit for autocomplete rows (default service-side)."
          },
          "nybruktCategory": {
            "title": "Nybrukt category",
            "type": "string",
            "description": "Nybrukt (official refurbished electronics) category: mobil / nettbrett / smartklokke / lyd / laptop."
          },
          "nybruktProduct": {
            "title": "Nybrukt product slug",
            "type": "string",
            "description": "Specific product slug e.g. 'apple,iphone-14'. Returns one row per reseller/SKU."
          },
          "nybruktExpandVariants": {
            "title": "Nybrukt expand variants",
            "type": "boolean",
            "description": "On channel=nybrukt without nybruktProduct: fetch each promoted product detail page and emit one row per reseller variant.",
            "default": false
          },
          "mapBbox": {
            "title": "Map bbox (min_lon,min_lat,max_lon,max_lat)",
            "type": "string",
            "description": "kart.finn.no protobuf MVT tile enumeration. Default bbox covers south Norway."
          },
          "mapZoom": {
            "title": "Map zoom",
            "minimum": 3,
            "maximum": 16,
            "type": "integer",
            "description": "Tile zoom level 3-16 (default 10).",
            "default": 10
          },
          "mapLayers": {
            "title": "Map layers",
            "type": "array",
            "description": "SEARCH_ID_* list. Empty = all anonymous-searchable layers.",
            "items": {
              "type": "string"
            }
          },
          "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 per location, URL, or ID",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most Dataset rows for each location search, detail URL, or Appsgw ID. Default 70; larger numbers are collected in parts of 70. All row types count together for that input. The run stops at your maximum total charge. Free Apify plan: 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}