{
  "openapi": "3.0.1",
  "info": {
    "title": "SpotAHome Scraper | Fast & Reliable",
    "description": "Extract Spotahome rental listings at scale with rich property detail, availability data, landlord signals, media, booking context, and flexible market filters. Built for enterprise-grade rental intelligence, market monitoring, and automated analytics pipelines.",
    "version": "0.0",
    "x-build-id": "pUagL2oZiCoV6hG0Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fatihtahta~spotahome-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fatihtahta-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/fatihtahta~spotahome-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fatihtahta-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/fatihtahta~spotahome-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fatihtahta-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",
        "required": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Choose Search Location",
            "type": "string",
            "description": "Enter one search location, such as Barcelona, Madrid, Valencia, or a supported local market. The actor uses this location as the starting point for collection."
          },
          "min_price": {
            "title": "Set Minimum Monthly Price",
            "minimum": 0,
            "type": "integer",
            "description": "Only save listings with a monthly price at or above this amount."
          },
          "max_price": {
            "title": "Set Maximum Monthly Price",
            "minimum": 0,
            "type": "integer",
            "description": "Only save listings with a monthly price at or below this amount."
          },
          "property_type": {
            "title": "Choose Property Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Select one or more property types to include. Leave empty to keep all supported property types in scope.",
            "items": {
              "type": "string",
              "enum": [
                "apartments",
                "studios",
                "rooms_shared",
                "student_residences"
              ],
              "enumTitles": [
                "Apartments",
                "Studios",
                "Rooms in shared apartment",
                "Student residences"
              ]
            }
          },
          "bed_type": {
            "title": "Choose Bed Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only save listings that match one or more selected bed arrangements. Leave empty to keep all bed setups in scope.",
            "items": {
              "type": "string",
              "enum": [
                "single_bed",
                "double_bed",
                "twin_beds"
              ],
              "enumTitles": [
                "Single bed",
                "Double bed",
                "Twin beds"
              ]
            }
          },
          "private_bathroom": {
            "title": "Require Private Bathroom",
            "type": "boolean",
            "description": "Only save listings that indicate a private bathroom.",
            "default": false
          },
          "spotahome_checked": {
            "title": "Require Spotahome Checked Listings",
            "type": "boolean",
            "description": "Only save listings marked as checked by Spotahome.",
            "default": false
          },
          "no_deposit": {
            "title": "Require No Deposit",
            "type": "boolean",
            "description": "Only save listings that do not require a security deposit.",
            "default": false
          },
          "amenities": {
            "title": "Choose Amenities",
            "uniqueItems": true,
            "type": "array",
            "description": "Only save listings that include the selected amenities. Selecting more amenities makes the search more targeted.",
            "items": {
              "type": "string",
              "enum": [
                "air_conditioning",
                "heating",
                "washing_machine",
                "oven",
                "dishwasher",
                "with_desk",
                "balcony",
                "elevator"
              ],
              "enumTitles": [
                "Air conditioning",
                "Heating",
                "Washing machine",
                "Oven",
                "Dishwasher",
                "Desk",
                "Balcony",
                "Elevator"
              ]
            }
          },
          "included_bills": {
            "title": "Choose Included Bills",
            "uniqueItems": true,
            "type": "array",
            "description": "Only save listings where the selected bills are included. Leave empty to include listings regardless of bill coverage.",
            "items": {
              "type": "string",
              "enum": [
                "wifi",
                "electricity",
                "water",
                "gas"
              ],
              "enumTitles": [
                "Wi-Fi",
                "Electricity",
                "Water",
                "Gas"
              ]
            }
          },
          "suitability": {
            "title": "Choose Suitability Options",
            "uniqueItems": true,
            "type": "array",
            "description": "Only save listings that match the selected suitability signals. Leave empty if renter profile is not part of your criteria.",
            "items": {
              "type": "string",
              "enum": [
                "couples",
                "pets",
                "students",
                "professionals"
              ],
              "enumTitles": [
                "Couples | suitable for couples",
                "Pet-friendly | pets allowed",
                "Students | suitable for students",
                "Professionals | suitable for professionals"
              ]
            }
          },
          "checkin_date_day": {
            "title": "Set Check-In Date",
            "type": "string",
            "description": "Enter the desired move-in date. Accepted formats: YYYY-MM-DD or DD/MM/YYYY."
          },
          "checkout_date_day": {
            "title": "Set Check-Out Date",
            "type": "string",
            "description": "Enter the desired move-out date. This field only applies when a check-in date is also set."
          },
          "availability_variance": {
            "title": "Choose Date Flexibility",
            "enum": [
              "1_week",
              "2_week",
              "3_week"
            ],
            "type": "string",
            "description": "Optionally broaden the search around both dates. This setting is ignored unless both check-in and check-out dates are set."
          },
          "sort_by": {
            "title": "Choose Sort Order",
            "enum": [
              "best_match",
              "lowest_price",
              "newest"
            ],
            "type": "string",
            "description": "Order matching listings by best match, lowest price, or newest listed before records are saved.",
            "default": "best_match"
          },
          "limit": {
            "title": "Set Maximum Results",
            "minimum": 1,
            "type": "integer",
            "description": "Set the maximum number of listings to save for this run. Leave empty to collect as many matching listings as available within the run scope."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}