{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Scraper",
    "description": "Unlimited Idealista.com scraper. Extract rentals & sales from Spain, Portugal, Italy. 70+ fields: prices, agents, GPS, photos, price history. The richest output for real estate market research & lead generation. Built for agencies & investors who need predictable pricing at scale.",
    "version": "1.0",
    "x-build-id": "DDjoRQmjiLijzYrgs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~idealista-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-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/silentflow~idealista-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-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/silentflow~idealista-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-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": {
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "properties",
              "agencies"
            ],
            "type": "string",
            "description": "Choose what to extract: property listings or real estate agency profiles with contact details.",
            "default": "properties"
          },
          "searchUrl": {
            "title": "Search URL",
            "type": "string",
            "description": "Paste the full URL from your Idealista search. Go to idealista.com, apply your filters (location, price, rooms, rent/sale, etc.), then copy the URL from your browser. This is the easiest and most flexible option."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Enter city or region name (e.g., madrid, barcelona, valencia, lisboa, roma). Only used if Search URL is empty."
          },
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "pt",
              "it"
            ],
            "type": "string",
            "description": "Select the Idealista marketplace. Spain (idealista.com), Portugal (idealista.pt), or Italy (idealista.it).",
            "default": "es"
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "viviendas",
              "pisos",
              "casas",
              "aticos",
              "chalets",
              "habitacion",
              "oficinas",
              "locales",
              "garajes",
              "terrenos",
              "trasteros"
            ],
            "type": "string",
            "description": "Filter by property type. Leave as 'All Homes' to include all types.",
            "default": "viviendas"
          },
          "priceMin": {
            "title": "Minimum Price (EUR)",
            "type": "integer",
            "description": "Filter properties priced above this amount. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum Price (EUR)",
            "type": "integer",
            "description": "Filter properties priced below this amount. Leave empty for no maximum."
          },
          "sizeMin": {
            "title": "Minimum Size (m²)",
            "type": "integer",
            "description": "Filter properties larger than this size. Leave empty for no minimum."
          },
          "sizeMax": {
            "title": "Maximum Size (m²)",
            "type": "integer",
            "description": "Filter properties smaller than this size. Leave empty for no maximum."
          },
          "rooms": {
            "title": "Minimum Rooms",
            "type": "integer",
            "description": "Filter properties with at least this many rooms."
          },
          "bathrooms": {
            "title": "Minimum Bathrooms",
            "type": "integer",
            "description": "Filter properties with at least this many bathrooms."
          },
          "pages": {
            "title": "Pages to Scrape",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of search result pages to scrape. Each page contains ~30 properties. Set to 1 for a quick test.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum Properties",
            "minimum": 0,
            "type": "integer",
            "description": "Limit the total number of properties to extract. Set to 0 for no limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "",
              "precio-asc",
              "precio-desc",
              "metros-cuadrados-asc",
              "metros-cuadrados-desc",
              "fecha-publicacion-desc"
            ],
            "type": "string",
            "description": "Order of results. 'Relevance' uses Idealista's default sorting.",
            "default": ""
          },
          "proxyType": {
            "title": "Proxy Type",
            "enum": [
              "residential",
              "datacenter",
              "auto"
            ],
            "type": "string",
            "description": "Type of Apify proxy. Residential proxies are recommended for best success rate.",
            "default": "residential"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}