{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Search Listings Price & Feature Scraper",
    "description": "Pull real estate search-result listings from Idealista for Spain, Italy, and Portugal: price, size, rooms, address, thumbnail, feature flags, and agency name for homes, offices, land, and more.",
    "version": "1.0",
    "x-build-id": "NmaO0OGZLbpxwqbDg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~idealista-search-listings-price-and-feature/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-idealista-search-listings-price-and-feature",
        "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/vexaloom-labs~idealista-search-listings-price-and-feature/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-idealista-search-listings-price-and-feature",
        "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/vexaloom-labs~idealista-search-listings-price-and-feature/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-idealista-search-listings-price-and-feature",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "startUrls",
              "propertyUrls"
            ],
            "type": "string",
            "description": "What to scrape: a location search, your own search URLs, or individual property URLs/IDs. Inferred from the supplied URLs when omitted."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City or area slug from an Idealista URL (e.g. madrid-madrid, barcelona-barcelona, lisboa, roma-roma). You can also paste a full Idealista search URL. Used in Search by location mode.",
            "default": "madrid-madrid"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Properties for sale or for rent.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "homes",
              "newDevelopments",
              "offices",
              "premises",
              "garages",
              "lands",
              "storageRooms",
              "buildings",
              "bedrooms"
            ],
            "type": "string",
            "description": "Type of property to search for.",
            "default": "homes"
          },
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "pt",
              "it"
            ],
            "type": "string",
            "description": "Idealista market: Spain, Portugal, or Italy. Auto-detected when you use URLs.",
            "default": "es"
          },
          "startUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Idealista search-result URLs to scrape (filters and map-area URLs are kept as-is). Used in Search URLs mode.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyUrls": {
            "title": "Property URLs or IDs",
            "type": "array",
            "description": "Individual Idealista property URLs or numeric property IDs. Used in Property URLs / IDs mode.",
            "items": {
              "type": "string"
            }
          },
          "propertySubtype": {
            "title": "Property Subtype",
            "enum": [
              "any",
              "flat",
              "penthouse",
              "duplex",
              "studio",
              "loft",
              "chalet",
              "independentHouse",
              "semiDetached",
              "terraced",
              "villa",
              "countryHouse",
              "office",
              "premises",
              "garage",
              "land",
              "storageRoom",
              "building",
              "room"
            ],
            "type": "string",
            "description": "Narrow homes to a subtype (flat, penthouse, duplex, villa, etc.).",
            "default": "any"
          },
          "priceMin": {
            "title": "Minimum Price (EUR)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings cheaper than this price. Rounded to Idealista's nearest price bucket."
          },
          "priceMax": {
            "title": "Maximum Price (EUR)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings more expensive than this price. Rounded to Idealista's nearest price bucket."
          },
          "sizeMin": {
            "title": "Minimum Size (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings smaller than this size. Rounded to Idealista's nearest size bucket."
          },
          "sizeMax": {
            "title": "Maximum Size (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings larger than this size. Rounded to Idealista's nearest size bucket."
          },
          "rooms": {
            "title": "Rooms",
            "enum": [
              "any",
              "1",
              "2",
              "3",
              "4",
              "5+"
            ],
            "type": "string",
            "description": "Number of rooms.",
            "default": "any"
          },
          "bathrooms": {
            "title": "Bathrooms",
            "enum": [
              "any",
              "1",
              "2",
              "3+"
            ],
            "type": "string",
            "description": "Number of bathrooms.",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "good",
              "toRenovate"
            ],
            "type": "string",
            "description": "Property condition.",
            "default": "any"
          },
          "hasLift": {
            "title": "Has Lift",
            "type": "boolean",
            "description": "Only listings with a lift.",
            "default": false
          },
          "hasTerrace": {
            "title": "Has Terrace",
            "type": "boolean",
            "description": "Only listings with a terrace.",
            "default": false
          },
          "hasPool": {
            "title": "Has Pool",
            "type": "boolean",
            "description": "Only listings with a swimming pool.",
            "default": false
          },
          "hasGarden": {
            "title": "Has Garden",
            "type": "boolean",
            "description": "Only listings with a garden.",
            "default": false
          },
          "hasGarage": {
            "title": "Has Garage",
            "type": "boolean",
            "description": "Only listings with a garage or parking space.",
            "default": false
          },
          "hasStorageRoom": {
            "title": "Has Storage Room",
            "type": "boolean",
            "description": "Only listings with a storage room.",
            "default": false
          },
          "hasAirConditioning": {
            "title": "Has Air Conditioning",
            "type": "boolean",
            "description": "Only listings with air conditioning.",
            "default": false
          },
          "hasBalcony": {
            "title": "Has Balcony",
            "type": "boolean",
            "description": "Only listings with a balcony.",
            "default": false
          },
          "isNewDevelopment": {
            "title": "New Development",
            "type": "boolean",
            "description": "Only new-development listings.",
            "default": false
          },
          "isBankOwned": {
            "title": "Bank-Owned",
            "type": "boolean",
            "description": "Only bank-owned listings where the source marks them.",
            "default": false
          },
          "isAuction": {
            "title": "Auction",
            "type": "boolean",
            "description": "Only auction listings where the source marks them.",
            "default": false
          },
          "isLuxury": {
            "title": "Luxury",
            "type": "boolean",
            "description": "Only luxury listings.",
            "default": false
          },
          "hasSeaViews": {
            "title": "Sea Views",
            "type": "boolean",
            "description": "Only listings advertised with sea views.",
            "default": false
          },
          "isAccessible": {
            "title": "Accessible",
            "type": "boolean",
            "description": "Only accessible homes.",
            "default": false
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "areaAsc",
              "areaDesc",
              "pricePerSqmAsc",
              "pricePerSqmDesc"
            ],
            "type": "string",
            "description": "Result order.",
            "default": "relevance"
          },
          "onlyPriceDrops": {
            "title": "Only Price Drops",
            "type": "boolean",
            "description": "Keep only listings whose price was reduced.",
            "default": false
          },
          "minPriceDropPercent": {
            "title": "Minimum Price Drop (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only listings reduced by at least this percentage. Implies price-drop filtering."
          },
          "onlyPrivateOwners": {
            "title": "Only Private Owners",
            "type": "boolean",
            "description": "Keep only private-seller listings.",
            "default": false
          },
          "fetchDetails": {
            "title": "Fetch Details",
            "type": "boolean",
            "description": "Visit each listing's page to add bathrooms, energy rating, year built, condition, full description, gallery and agency phone. Slower and uses more requests.",
            "default": false
          },
          "maxDetails": {
            "title": "Maximum Detail Pages",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listing pages to enrich when Fetch Details is on.",
            "default": 100
          },
          "maxItems": {
            "title": "Maximum Listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to save.",
            "default": 100
          },
          "partitionLargeSearches": {
            "title": "Partition Large Searches",
            "type": "boolean",
            "description": "When a search has more than 1,800 results and you ask for more, split it by price buckets so the 1,800-per-search cap is bypassed.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}