{
  "openapi": "3.0.1",
  "info": {
    "title": "Netherlands Rental Listings",
    "description": "Netherlands rental listings from Kamernet, HousingAnywhere, and 11 anti-squat agency sites in one deduplicated list, with municipal registration status, hide reasons with the matched sentence, and new since last run tracking.",
    "version": "0.1",
    "x-build-id": "bKoHXKV23Nb3pl69C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mambalabs~dutch-rental-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mambalabs-dutch-rental-listings",
        "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/mambalabs~dutch-rental-listings/runs": {
      "post": {
        "operationId": "runs-sync-mambalabs-dutch-rental-listings",
        "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/mambalabs~dutch-rental-listings/run-sync": {
      "post": {
        "operationId": "run-sync-mambalabs-dutch-rental-listings",
        "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",
            "type": "string",
            "description": "A Dutch city (Kamernet's 212 cities, such as Utrecht or Den Haag), a province as province:noord-holland, or netherlands for the whole country. A bare name that is both a city and a province (Utrecht, Groningen) is the city."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "type": "string",
            "description": "Kamernet only: also search this far around the city. 0, 1, 2, 5, 10 (default), or 20; other values round up. HousingAnywhere and the agencies search the city itself.",
            "default": "10"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "kamernet, housinganywhere, antisquat_agencies (11 Dutch anti-squat agency sites). Default: all three.",
            "default": [
              "kamernet",
              "housinganywhere",
              "antisquat_agencies"
            ],
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Keep only these: room, studio, apartment, house, anti-squat, student-residence, other. Empty keeps all.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum listings",
            "type": "string",
            "description": "Listings to return as charged rows. Default 50.",
            "default": "50"
          },
          "maxRent": {
            "title": "Maximum rent (EUR a month)",
            "type": "string",
            "description": "Drop listings above this rent. A listing with no rent stays."
          },
          "minSize": {
            "title": "Minimum size (m2)",
            "type": "string",
            "description": "Drop listings smaller than this. A listing with no size stays."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "type": "string",
            "description": "Drop listings with fewer rooms. Kamernet states rooms only on the detail page, so this works there with includeDetails on."
          },
          "furnished": {
            "title": "Furnished",
            "type": "array",
            "description": "Keep only these: furnished, unfurnished, uncarpeted. A listing that does not say stays.",
            "items": {
              "type": "string"
            }
          },
          "registrationOnly": {
            "title": "Registration possible only",
            "type": "string",
            "description": "true: keep only listings whose text or listed field says municipal registration is possible (registration_status yes, listed_yes, or flag). Text needs includeDetails on.",
            "default": "false"
          },
          "availableBy": {
            "title": "Available by",
            "type": "string",
            "description": "YYYY-MM-DD. Drop listings available only after this day. A listing with no date stays."
          },
          "hasInternet": {
            "title": "Kamernet: internet",
            "type": "string",
            "description": "Kamernet's own filter, sent with the search.",
            "default": "false"
          },
          "privateBathroom": {
            "title": "Kamernet: private bathroom",
            "type": "string",
            "description": "Kamernet's own filter.",
            "default": "false"
          },
          "privateKitchen": {
            "title": "Kamernet: private kitchen",
            "type": "string",
            "description": "Kamernet's own filter.",
            "default": "false"
          },
          "privateToilet": {
            "title": "Kamernet: private toilet",
            "type": "string",
            "description": "Kamernet's own filter.",
            "default": "false"
          },
          "petsAllowed": {
            "title": "Kamernet: pets allowed",
            "type": "string",
            "description": "Kamernet's own filter.",
            "default": "false"
          },
          "smokingAllowed": {
            "title": "Kamernet: smoking allowed",
            "type": "string",
            "description": "Kamernet's own filter.",
            "default": "false"
          },
          "numberOfPeople": {
            "title": "Kamernet: number of people",
            "type": "string",
            "description": "Kamernet's own filter: 1 to 5 tenants."
          },
          "tenantGender": {
            "title": "Kamernet: tenant gender",
            "type": "string",
            "description": "Kamernet's own filter: male or female."
          },
          "tenantAge": {
            "title": "Kamernet: tenant age",
            "type": "string",
            "description": "Kamernet's own filter: your age in years, 16 to 99."
          },
          "roommatesMax": {
            "title": "Kamernet: maximum roommates",
            "type": "string",
            "description": "Kamernet's own filter: none, up_to_4, or up_to_8."
          },
          "roommateGenders": {
            "title": "Kamernet: roommate genders",
            "type": "array",
            "description": "Kamernet's own filter: male, female, mixed.",
            "items": {
              "type": "string"
            }
          },
          "landlordTypes": {
            "title": "Kamernet: landlord types",
            "type": "array",
            "description": "Kamernet's own filter: private, agent.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Read detail pages",
            "type": "string",
            "description": "true: read each returned listing's detail page for the full text, house rules, landlord type, deposit, and the text based registration and hide rules. Charged per page read. Default false.",
            "default": "false"
          },
          "includeLandlordName": {
            "title": "Include landlord name",
            "type": "string",
            "description": "true: add the landlord's display name. Off by default, because on Kamernet most landlords are private people.",
            "default": "false"
          },
          "blockedLandlordIds": {
            "title": "Blocked landlord IDs",
            "type": "array",
            "description": "Landlord account IDs (landlord_id) whose listings are returned as free hidden_listing rows instead of charged rows.",
            "items": {
              "type": "string"
            }
          },
          "excludeGenderOnly": {
            "title": "Exclude gender only listings",
            "type": "string",
            "description": "true: a listing whose text limits it to one gender becomes a free hidden_listing row with the matched sentence. false: it is returned with the reason in hide_reasons.",
            "default": "false"
          },
          "excludeLanguageOnly": {
            "title": "Exclude language only listings",
            "type": "string",
            "description": "true: a listing whose text limits it to Dutch or Polish speakers becomes a free hidden_listing row.",
            "default": "false"
          },
          "excludeStudentOnly": {
            "title": "Exclude students only listings",
            "type": "string",
            "description": "true: a listing whose text limits it to students becomes a free hidden_listing row.",
            "default": "false"
          },
          "excludeShortStay": {
            "title": "Exclude short stays",
            "type": "string",
            "description": "true: a listing whose text or listed maximum stay is under 3 months becomes a free hidden_listing row.",
            "default": "false"
          },
          "trackChanges": {
            "title": "Track new listings",
            "type": "string",
            "description": "true (default): keep first seen and last seen for this search in a named key-value store in your own Apify account, so later runs mark new and stale listings.",
            "default": "true"
          },
          "draftMessages": {
            "title": "Draft landlord messages",
            "type": "string",
            "description": "true: write a first message to each landlord with your own model key and applicantProfile. Turns on includeDetails. Needs llmApiKey; without one the run fails with a plain error.",
            "default": "false"
          },
          "llmProvider": {
            "title": "Model provider",
            "type": "string",
            "description": "openai (default), anthropic, gemini, or groq. Used only with draftMessages.",
            "default": "openai"
          },
          "llmApiKey": {
            "title": "Your model API key",
            "type": "string",
            "description": "Your own key for the provider above. It goes only to that provider, is never stored or logged, and is never sent to the model."
          },
          "llmModel": {
            "title": "Model (optional)",
            "type": "string",
            "description": "A model name from your provider. Empty uses gpt-4o-mini, claude-haiku-4-5-20251001, gemini-2.5-flash, or llama-3.3-70b-versatile."
          },
          "applicantProfile": {
            "title": "Applicant profile",
            "type": "string",
            "description": "Facts about you for the drafts, as JSON such as {\"name\": \"Sam\", \"age\": 29, \"work\": \"software engineer\", \"move_in\": \"2026-12-01\", \"contact\": \"sam@example.com\"} or plain lines. The model restates only these facts."
          },
          "maxDrafts": {
            "title": "Maximum drafts",
            "type": "string",
            "description": "Most messages to draft in one run. Default 20.",
            "default": "20"
          },
          "max_charge_usd": {
            "title": "Maximum charge for this run (USD)",
            "type": "string",
            "description": "Optional. The run stops before a charge that would pass this amount. Free rows are always returned."
          },
          "source_tag": {
            "title": "Source tag",
            "type": "string",
            "description": "Internal attribution tag. Leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}