{
  "openapi": "3.0.1",
  "info": {
    "title": "Funda.nl Property Listings Scraper",
    "description": "Scrape Funda.nl homes for sale, for rent and sold in the Netherlands: price, price per m², address, area, rooms, build year, energy label, photos, coordinates and makelaar name and phone.",
    "version": "0.1",
    "x-build-id": "ffaS18OAeLggo10vA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~funda-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-funda-listings-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/automation-lab~funda-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-funda-listings-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/automation-lab~funda-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-funda-listings-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": "Funda URLs",
            "type": "array",
            "description": "Funda search pages (https://www.funda.nl/zoeken/koop?... or /zoeken/huur?...) or single listing pages (https://www.funda.nl/detail/koop/...). Set your filters on funda.nl and paste the address bar URL. When any URL is given, the location and filter fields below are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, municipalities, provinces or neighbourhoods as Funda names them, for example \"amsterdam\", \"utrecht\", \"provincie-noord-holland\" or \"amsterdam/de-pijp\". Several places are searched together. Used only when no Funda URL is given.",
            "items": {
              "type": "string"
            }
          },
          "offeringType": {
            "title": "Buy or rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Homes for sale (koop) or for rent (huur). Used only with Locations.",
            "default": "buy"
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "available",
              "sold",
              "all"
            ],
            "type": "string",
            "description": "Available includes homes under offer. Sold returns sold (or, for rent, rented) homes from Funda's archive with their last asking price. All returns both. Used only with Locations.",
            "default": "available"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Limit to houses, apartments or both. Empty means houses and apartments. Used only with Locations.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "apartment"
              ],
              "enumTitles": [
                "House (woonhuis)",
                "Apartment (appartement)"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price in euros. For rent this is the monthly rent."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in euros. For rent this is the monthly rent."
          },
          "minLivingArea": {
            "title": "Minimum living area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest living area (woonoppervlakte) in square metres."
          },
          "maxLivingArea": {
            "title": "Maximum living area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest living area in square metres."
          },
          "minPlotArea": {
            "title": "Minimum plot area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest plot (perceel) in square metres. Apartments usually have no plot, so this mostly returns houses."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Smallest total number of rooms."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 1,
            "type": "integer",
            "description": "Smallest number of bedrooms."
          },
          "energyLabels": {
            "title": "Energy labels",
            "type": "array",
            "description": "Keep only these energy labels. Empty means any label.",
            "items": {
              "type": "string",
              "enum": [
                "A+++++",
                "A++++",
                "A+++",
                "A++",
                "A+",
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G"
              ]
            }
          },
          "publishedWithinDays": {
            "title": "Listed within",
            "enum": [
              "any",
              "1",
              "3",
              "5",
              "10",
              "30"
            ],
            "type": "string",
            "description": "Only homes first published on Funda within this period. Good for daily monitoring of new listings.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "date_down",
              "date_up",
              "price_up",
              "price_down",
              "floor_area_down",
              "plot_area_down",
              "city_up",
              "postal_code_up"
            ],
            "type": "string",
            "description": "Order of the search results, which also decides which listings fit within Maximum listings.",
            "default": "date_down"
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most listings saved in this run, across all URLs and searches together. The run stops earlier when Funda has no more results.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Loads each listing's detail page: description, price per m², build year, all characteristics, every photo, coordinates and listing dates. Off returns only search-card fields (address, price, area, rooms, energy label, agent name) and is faster. Listing URLs always load details.",
            "default": true
          },
          "includeAgentContact": {
            "title": "Include makelaar phone number",
            "type": "boolean",
            "description": "Adds the estate agent's (makelaar) phone number and contact person. Needs full listing details.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for Funda search pages. Funda blocks datacenter IPs on search, so Dutch residential proxy is the default; keep it unless you know you need another.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "NL"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}