{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista [Only $0.45💰]  Scraper | Spain Italy Portugal",
    "description": "Idealista scraper for price monitoring and real estate market research across Spain, Italy and Portugal. Extract price, price/m², GPS coordinates, energy rating, price history, photos and agency contact leads as JSON, CSV or Excel without an official API key.",
    "version": "2.0",
    "x-build-id": "LDDaytDcR0ct4I3HK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~idealista-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-idealista-property-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/ahmed_jasarevic~idealista-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-idealista-property-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/ahmed_jasarevic~idealista-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-idealista-property-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": {
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "it",
              "pt",
              "spain",
              "italy",
              "portugal"
            ],
            "type": "string",
            "description": "Idealista market to scrape (es/spain, it/italy, pt/portugal).",
            "default": "es"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Sale or rent listings.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "homes",
              "offices",
              "premises",
              "garages",
              "bedrooms",
              "newDevelopments",
              "lands",
              "storageRooms",
              "buildings",
              "apartments",
              "houses",
              "land"
            ],
            "type": "string",
            "description": "Category of property to scrape.",
            "default": "homes"
          },
          "location": {
            "title": "Location (name or locationId)",
            "type": "string",
            "description": "City, district or neighborhood name to auto-resolve (e.g. 'Madrid', 'Barcelona', 'Chamberí'), OR a direct Idealista locationId (e.g. '0-EU-ES-28-07-001-079'). Leave empty to search the whole country via sub-location splitting.",
            "default": "Madrid"
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = no limit). The mobile API caps each single query at 1500 results; larger searches are auto-split by location/price to capture the full set.",
            "default": 50
          },
          "centers": {
            "title": "Map / GPS radius search",
            "type": "array",
            "description": "Optional list of center points (lat,lng) to search around, e.g. [{\"lat\": 40.4168, \"lng\": -3.7038, \"distance\": 5000}]. Overrides 'location'.",
            "items": {
              "type": "object",
              "properties": {
                "lat": {
                  "type": "number",
                  "title": "Latitude",
                  "description": "Latitude",
                  "editor": "number"
                },
                "lng": {
                  "type": "number",
                  "title": "Longitude",
                  "description": "Longitude",
                  "editor": "number"
                },
                "distance": {
                  "type": "integer",
                  "title": "Radius (meters)",
                  "description": "Radius (meters)",
                  "editor": "number"
                }
              },
              "required": [
                "lat",
                "lng",
                "distance"
              ]
            }
          },
          "minPrice": {
            "title": "Min price",
            "type": "number",
            "description": "Minimum price in euros."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "number",
            "description": "Maximum price in euros."
          },
          "minSize": {
            "title": "Min size (m²)",
            "type": "number",
            "description": "Minimum size in m²."
          },
          "maxSize": {
            "title": "Max size (m²)",
            "type": "number",
            "description": "Maximum size in m²."
          },
          "minRooms": {
            "title": "Min rooms",
            "type": "integer",
            "description": "Minimum number of rooms."
          },
          "maxRooms": {
            "title": "Max rooms",
            "type": "integer",
            "description": "Maximum number of rooms."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "type": "integer",
            "description": "Minimum number of bathrooms."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Results ordering.",
            "default": "asc"
          },
          "fetchDetails": {
            "title": "Fetch full detail pages",
            "type": "boolean",
            "description": "When ON, fetches each listing's full detail (full description, all photos, energy rating, year built, full address) - roughly 1 extra request per listing. When OFF, returns the rich search-level data only (much faster and cheaper).",
            "default": false
          },
          "debug": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Save raw API JSON responses to the Key-Value store for troubleshooting.",
            "default": false
          },
          "startUrls": {
            "title": "Property URLs (detail API)",
            "type": "array",
            "description": "Direct Idealista property URLs (/inmueble/, /immobile/, /imovel/). Fetched via the detail API; overrides location/centers.",
            "items": {
              "type": "string"
            }
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional. Route traffic through Apify Proxy (e.g. residential) if direct requests from datacenters get blocked. Leave OFF by default - the mobile API normally needs no proxy.",
            "default": {
              "useApifyProxy": false
            }
          },
          "debugProbe": {
            "title": "Debug connectivity probe",
            "type": "boolean",
            "description": "When ON, only probes API reachability (homepage + token endpoint) and logs edge headers. No dataset output.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}