{
  "openapi": "3.0.1",
  "info": {
    "title": "Spotahome Scraper - Monthly Rentals in Europe, Rooms & Flats",
    "description": "Spotahome scraper for furnished mid-term rentals in 230+ European cities (Madrid, Barcelona, London, Paris, Rome, Milan, Lisbon, Dublin...): flats, rooms, studios, residences. One row per listing: monthly rent, bills, move-in date, address, GPS; optional deposit, stay rules. $0.40 per 1,000.",
    "version": "1.0",
    "x-build-id": "dYfPfLFERe4RA3mgY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~spotahome-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-spotahome-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/rel8ble~spotahome-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-spotahome-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/rel8ble~spotahome-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-spotahome-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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Spotahome cities (slugs or names): \"madrid\", \"barcelona\", \"valencia\", \"london\", \"paris\", \"rome\", \"milan\", \"lisbon\", \"porto\", \"dublin\", \"brussels\", \"berlin\", \"vienna\", \"prague\", \"athens\" and 230+ more. Local names such as \"Lisboa\", \"Roma\", \"Milano\", \"München\", \"Wien\" work too. One search per city x property type. Default [\"madrid\", \"barcelona\"].",
            "default": [
              "madrid",
              "barcelona"
            ],
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "all (default), apartments, rooms, studios, residences (student residences / coliving). One search per type.",
            "default": [
              "all"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Spotahome URLs",
            "type": "array",
            "description": "Optional. City search pages (https://www.spotahome.com/s/madrid, https://www.spotahome.com/s/london/for-rent:studios) or listing pages (https://www.spotahome.com/madrid/for-rent:rooms/81053). Listing pages always get full details. Budget, move-in date and POI parameters are barred by the site's robots.txt and are dropped: use the filters below instead.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Rows per city x type (or URL). Default 40; 0 = all (48 per page). You pay per row.",
            "default": 40
          },
          "maxResults": {
            "title": "Max listings in total",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap for the whole run. 0 = no cap.",
            "default": 0
          },
          "includeDetails": {
            "title": "Add stay rules, deposit, landlord and all photos",
            "type": "boolean",
            "description": "Opens each listing page (one request per row, slower): minimum / maximum stay, contract type, cancellation policy, deposit in months and amount, admin fee, bills included list, floor, pets / smoking / couples rules, age limits, required documents, amenities, move-in windows, landlord type, company name, listings, response time and rate, views, favourites, Spotahome notes, transport, floor plans, all photos and the other rooms in the flat. Default false.",
            "default": false
          },
          "minPrice": {
            "title": "Min monthly rent",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, in the listing currency. 0 = none.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max monthly rent",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, in the listing currency. 0 = none.",
            "default": 0
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Bedrooms in the property. 0 = none.",
            "default": 0
          },
          "availableBefore": {
            "title": "Available by",
            "type": "string",
            "description": "Optional. Keep listings you can move into on or before this date, e.g. \"2027-02-01\"."
          },
          "billsIncludedOnly": {
            "title": "All bills included only",
            "type": "boolean",
            "description": "Keep listings with every bill included in the rent.",
            "default": false
          },
          "verifiedOnly": {
            "title": "Verified only",
            "type": "boolean",
            "description": "Keep listings checked by Spotahome.",
            "default": false
          },
          "instantBookingOnly": {
            "title": "Instant booking only",
            "type": "boolean",
            "description": "Keep listings that can be booked without landlord approval.",
            "default": false
          },
          "noDepositOnly": {
            "title": "No deposit only",
            "type": "boolean",
            "description": "Keep listings without a security deposit.",
            "default": false
          },
          "keywords": {
            "title": "Text contains",
            "type": "array",
            "description": "Optional. Keep listings whose title, description or street (and amenities with details on) contain one of these words, e.g. \"balcony\", \"terrace\", \"Malasaña\". Accents are optional.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Advanced. Parallel requests 1-6 (paced at about 170 pages / minute). Default 3.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Advanced. 0-15. Default 5.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Advanced. Default Apify Proxy (datacenter).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}