{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Scraper - $0.50 / 1000 Listings",
    "description": "Scrape idealista listings in Spain, Italy and Portugal by search URL or location with filters: price, price drop, area, rooms, floor, lift, parking, description, photos, agency. Sale and rent; homes, offices, premises, garages, land, rooms. Up to 1800 per search. $0.50 per 1000 listings.",
    "version": "0.1",
    "x-build-id": "U8gTkkf219I3o05cG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeunblocker~idealista-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeunblocker-idealista-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/scrapeunblocker~idealista-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapeunblocker-idealista-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/scrapeunblocker~idealista-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeunblocker-idealista-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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "idealista search pages with their filters, copied from the browser: https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/con-precio-hasta_2000,de-dos-dormitorios/, https://www.idealista.it/affitto-case/milano-milano/, https://www.idealista.pt/comprar-casas/lisboa/. The filters below do not apply to these. Empty runs use the example only when Locations is empty too.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Or search by location, written as in idealista URLs: a municipality (madrid-madrid, barcelona-barcelona, milano-milano, lisboa), a district (madrid/centro, lisboa/arroios) or a province (malaga-provincia). Uses the country and filters below.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "it",
              "pt"
            ],
            "type": "string",
            "description": "Which idealista site the locations are on.",
            "default": "es"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Sale or rent.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "homes",
              "new_homes",
              "offices",
              "premises",
              "garages",
              "lands",
              "storage",
              "buildings",
              "rooms"
            ],
            "type": "string",
            "description": "What kind of property to list.",
            "default": "homes"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Monthly rent when Operation is rent."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Monthly rent when Operation is rent."
          },
          "minSize": {
            "title": "Min area (m2)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional."
          },
          "maxSize": {
            "title": "Max area (m2)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional."
          },
          "rooms": {
            "title": "Rooms",
            "type": "array",
            "description": "Optional. Bedrooms in Spain and Portugal (0 = studio / T0, 4 = four or more); total rooms in Italy (1 to 5, 5 = five or more).",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "0 - studio / T0 (Spain, Portugal)",
                "1",
                "2",
                "3",
                "4 (4+ in Spain and Portugal)",
                "5+ (Italy only)"
              ]
            }
          },
          "bathrooms": {
            "title": "Bathrooms",
            "type": "array",
            "description": "Optional.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "1",
                "2",
                "3 or more"
              ]
            }
          },
          "features": {
            "title": "Features",
            "type": "array",
            "description": "Optional. Listings must have all of these.",
            "items": {
              "type": "string",
              "enum": [
                "lift",
                "terrace",
                "balcony",
                "garage",
                "pool",
                "garden",
                "air_conditioning",
                "storage_room",
                "fitted_wardrobes",
                "accessible",
                "luxury",
                "new_construction",
                "good_condition",
                "to_renovate"
              ],
              "enumTitles": [
                "Lift",
                "Terrace",
                "Balcony",
                "Parking / garage",
                "Swimming pool",
                "Garden",
                "Air conditioning",
                "Storage room",
                "Fitted wardrobes",
                "Accessible",
                "Luxury",
                "New construction",
                "Good condition",
                "To renovate"
              ]
            }
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "newest",
              "oldest",
              "size_asc",
              "size_desc",
              "price_per_m2_asc",
              "price_per_m2_desc",
              "biggest_drop"
            ],
            "type": "string",
            "description": "Result order for location searches.",
            "default": "relevance"
          },
          "maxResultsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 1800,
            "type": "integer",
            "description": "How many listings to collect for each search URL or location (1-1800). idealista shows 30 listings per page and at most 60 pages per search.",
            "default": 30
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Optional exit-IP country (ISO-2). Leave empty: the exit is chosen for idealista automatically, which is the most reliable."
          },
          "concurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many searches to read at the same time (1-3).",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}