{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Scraper - New Listings & Price Drop Monitor",
    "description": "For agents, investors and property alert bots: turn on monitor mode and schedule it to get only new Idealista listings (Spain, Italy, sale or rent) and price drops with the previous price. EUR price, area, rooms, district, photos, agency or private owner when shown. Export as JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "z2XIMyab7PGkKYt8g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~idealista-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-idealista-listings-monitor",
        "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/neverempty~idealista-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-idealista-listings-monitor",
        "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/neverempty~idealista-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-idealista-listings-monitor",
        "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": {
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "it"
            ],
            "type": "string",
            "description": "Choose Spain (idealista.com) or Italy (idealista.it). Portugal is not supported. Empty = Spain."
          },
          "businessType": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Homes for sale (pisos en venta, case in vendita) or for rent (pisos en alquiler, case in affitto). Empty = for sale."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "The city as written on Idealista, for example Madrid, Barcelona, Valencia, Sevilla, Malaga, Milano, Roma, Torino. Accents are optional. All search fields empty = Madrid, Spain, for sale."
          },
          "province": {
            "title": "Province",
            "type": "string",
            "description": "The province of the city, as in the Idealista address (madrid-madrid, malaga-malaga, sant-cugat-del-valles-barcelona). Empty = the same as the city, which is right for most big cities."
          },
          "districts": {
            "title": "Districts",
            "type": "array",
            "description": "Optional. Districts (distritos, quartieri) inside the city as in the Idealista address, for example chamberi, salamanca, centro, eixample, navigli. Each one is watched as its own search. Empty = the whole city.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Optional. Only these property types; each one is watched as its own search. Empty = all homes.",
            "items": {
              "type": "string",
              "enum": [
                "flat",
                "penthouse",
                "duplex",
                "house",
                "studio",
                "loft",
                "country-house"
              ],
              "enumTitles": [
                "Flat (piso / appartamento)",
                "Penthouse (ático / attico)",
                "Duplex (dúplex / su due livelli)",
                "House or villa (chalet / villa)",
                "Studio (estudio, Spain only)",
                "Loft (loft / open space)",
                "Country house (casa de pueblo / casale)"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in euros: the sale price for sale, the monthly rent for rent."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in euros: the sale price for sale, the monthly rent for rent."
          },
          "rooms": {
            "title": "Rooms",
            "type": "array",
            "description": "Optional. Spain counts bedrooms (dormitorios); Italy counts rooms (locali), the same as the Idealista filter. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "1 (Spain: bedroom / Italy: locale)",
                "2",
                "3",
                "4 or more"
              ]
            }
          },
          "searchUrls": {
            "title": "Idealista search URLs",
            "type": "array",
            "description": "Optional. Paste the address of any Idealista Spain or Italy search page with your filters set, for example https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/eixample/. Each one is watched as its own search.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 1800,
            "type": "integer",
            "description": "How many listings to read per search, in Idealista's own order (1 to 1800). Empty = 100. In monitor mode, set it to cover the whole search so price drops and removed listings are seen on every listing."
          },
          "monitorMode": {
            "title": "Monitor mode: only new listings and price changes",
            "type": "boolean",
            "description": "Turn this on and schedule it → get only new listings and price drops: listings added to the part of the search it reads, price changes with the previous price, and listings taken down from searches read to the end. The first run returns up to maxResultsPerSearch listings as the starting point."
          },
          "includeChanged": {
            "title": "Return price changes",
            "type": "boolean",
            "description": "In monitor mode, return listings you already received whose price went down or up, with the previous price. Empty = yes."
          },
          "includeRemoved": {
            "title": "Return removed listings",
            "type": "boolean",
            "description": "In monitor mode, return listings you already received that are missing from a fully read search two checks in a row (sold, rented or taken down). Empty = yes."
          },
          "includeUnchanged": {
            "title": "Also return unchanged listings",
            "type": "boolean",
            "description": "In monitor mode, also return listings already received that did not change (each one is charged). Empty = no."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each schedule its own name (letters, digits, dot, dash, underscore) so separate schedules keep separate memories. Empty = default."
          },
          "resetMonitoringState": {
            "title": "Start this watch again",
            "type": "boolean",
            "description": "Forget what this watch remembered, so this run is a first check again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}