{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Scraper: Property Listings PT, ES, IT, FR",
    "description": "Scrape Idealista property listings in Portugal, Spain, Italy and France. Search sale and rent listings, get full details, totals, map data, locations and agency info as clean JSON.",
    "version": "0.0",
    "x-build-id": "TSdU7vF6tvu0zdwDM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pintostudio~idealista/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pintostudio-idealista",
        "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/pintostudio~idealista/runs": {
      "post": {
        "operationId": "runs-sync-pintostudio-idealista",
        "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/pintostudio~idealista/run-sync": {
      "post": {
        "operationId": "run-sync-pintostudio-idealista",
        "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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "free-text",
              "zones-of-interest",
              "microsite-search",
              "listing-detail",
              "totals",
              "microsite-totals",
              "map",
              "map-grouped",
              "map-no-pins",
              "draw-map",
              "draw-map-no-pins",
              "live-map",
              "live-map-no-pins",
              "microsite-map",
              "map-item",
              "microsite-map-item",
              "breadcrumbs",
              "microsite-breadcrumbs",
              "free-text-url",
              "draw-search-url",
              "live-search-url",
              "draw-search-area",
              "locations",
              "zone-experts",
              "agency-branding",
              "microsite-configuration",
              "comment",
              "translation",
              "static-map",
              "signed-map",
              "slideshow"
            ],
            "type": "string",
            "description": "Which Idealista endpoint this run calls. \"search\" (the main use case) searches listings for sale/rent. \"listingDetail\" fetches one or more listings' full detail. Every other value is one of Idealista's own specialized endpoints (maps, location autocomplete, translations, microsites...) — see each field's description below for which operation(s) use it.",
            "default": "search"
          },
          "country": {
            "title": "Country",
            "enum": [
              "pt",
              "es",
              "it",
              "fr"
            ],
            "type": "string",
            "description": "Which Idealista site to use. Applies to every operation.",
            "default": "pt"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City/area name or Idealista location slug (e.g. \"braga\", \"lisboa/lisboa/sao-vicente\"). Used by \"search\", \"free-text\", \"zones-of-interest\", \"microsite-search\", the map operations, \"zone-experts\" and the breadcrumb/URL-retriever operations. Resolve the exact slug first with the \"locations\" operation if unsure. Leave empty for a nationwide (map-bounded) search."
          },
          "type": {
            "title": "Transaction type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Sale or rent. Used by every search-like operation, the map operations, \"locations\" and \"zone-experts\".",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "",
              "apartment",
              "house"
            ],
            "type": "string",
            "description": "Filter by apartment or house. Used by every search-like operation. Leave as \"Any\" for no filter.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter, in EUR. Used by every search-like operation."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter, in EUR. Used by every search-like operation."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Number of bedrooms. Used by every search-like operation except Italy/France (those count all rooms, not bedrooms specifically, so this filter is ignored there). 6 means \"6 or more\"."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "First page to fetch, starting at 1. Used by every search-like operation and the map operations.",
            "default": 1
          },
          "maxPagesToScrape": {
            "title": "Max pages to scrape",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "For search-like operations (\"search\", \"free-text\", \"zones-of-interest\", \"microsite-search\") only: how many consecutive pages, starting at \"Page\" above, to fetch and combine into one result. Stops early once Idealista's own last page is reached. Ignored by every other operation.",
            "default": 1
          },
          "freeText": {
            "title": "Free text",
            "type": "string",
            "description": "Free-text search string. Used by the \"free-text\" operation."
          },
          "zoneOfInterest": {
            "title": "Zone of interest",
            "type": "string",
            "description": "Idealista's own curated zone-of-interest id/slug. Used by the \"zones-of-interest\" operation."
          },
          "micrositeName": {
            "title": "Microsite name",
            "type": "string",
            "description": "An agency's branded Idealista microsite slug (the part of a microsite URL after the domain). Used by every \"microsite-*\" operation."
          },
          "northEast": {
            "title": "Map viewport: north-east",
            "type": "string",
            "description": "\"lat,lng\" of the map viewport's north-east corner, e.g. \"49,3\". Used by the map operations."
          },
          "southWest": {
            "title": "Map viewport: south-west",
            "type": "string",
            "description": "\"lat,lng\" of the map viewport's south-west corner, e.g. \"48,2\". Used by the map operations."
          },
          "zoom": {
            "title": "Map zoom level",
            "type": "integer",
            "description": "Map zoom level. Used by the map operations."
          },
          "adId": {
            "title": "Ad id",
            "type": "string",
            "description": "A listing's numeric ad id (the same number as in a listing URL / this Actor's own \"country:id\" listing id). Used by \"comment\", \"translation\", \"static-map\", \"signed-map\", \"slideshow\", \"agency-branding\" and \"map-item\" — for a couple of these Idealista's own parameter name may differ; if a run comes back empty, pass it via \"Extra params\" below instead under the exact name Idealista expects."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Target language code (e.g. \"en\"). Used by the \"translation\" operation."
          },
          "requestTranslation": {
            "title": "Request translation",
            "type": "boolean",
            "description": "Used by the \"translation\" operation.",
            "default": false
          },
          "searchField": {
            "title": "Search field",
            "type": "string",
            "description": "The text a user would be typing into Idealista's own location search box. Used by the \"locations\" operation."
          },
          "listingId": {
            "title": "Listing id",
            "type": "string",
            "description": "A single listing's numeric id. Used by \"listing-detail\" when \"Listing ids\" below is empty. Combined with \"Country\" above."
          },
          "listingIds": {
            "title": "Listing ids (batch)",
            "type": "array",
            "description": "Fetch several listings' detail in one run. Each entry is either \"country:id\" (e.g. \"pt:35410511\") or a bare numeric id, which then falls back to the \"Country\" field above. Used by \"listing-detail\"; takes priority over the single \"Listing id\" field. A listing that fails doesn't stop the run — it's recorded with its own error instead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "extraParams": {
            "title": "Extra params (JSON)",
            "type": "object",
            "description": "Advanced: extra upstream query parameters forwarded as-is to Idealista's endpoint, merged on top of (and able to override) every field above. Use this for the handful of niche endpoints whose own parameter names aren't individually modeled above (\"map-item\", \"microsite-map-item\", \"breadcrumbs\"/\"microsite-breadcrumbs\", \"free-text-url\", \"draw-search-url\", \"live-search-url\", \"draw-search-area\").",
            "default": {}
          },
          "baseProxyUrl": {
            "title": "Base proxy URL",
            "type": "string",
            "description": "A generic HTTP(S) proxy URL (e.g. http://user:pass@host:port) used as the primary outbound proxy. Idealista reliably blocks naive server-side fetches, so this (or the impit service below) is required for real results — not needed only when the actor's own BASE_PROXY/MY_PROXY_METHOD/RESIDENTIAL_PROXY environment variables are already set on this Actor."
          },
          "residentialProxyUrl": {
            "title": "Residential proxy URL",
            "type": "string",
            "description": "A residential rotating-exit proxy, retried once if the base proxy above gets blocked. Optional."
          },
          "impitProxyMethodUrl": {
            "title": "Impit proxy service URL",
            "type": "string",
            "description": "Base URL of a service that fetches a URL with a real browser TLS fingerprint (impit, Firefox impersonation) through the proxy above and returns { status_code, content, headers }. This is how every outbound request to Idealista is actually made — required for any real (non-test) run."
          },
          "requestUserAgent": {
            "title": "Request User-Agent override",
            "type": "string",
            "description": "Advanced: override the User-Agent header sent to Idealista. Leave blank to use the built-in default."
          },
          "requestTimeoutMs": {
            "title": "Request timeout override (ms)",
            "type": "integer",
            "description": "Advanced: override the outbound fetch deadline per request. Leave blank to use the built-in default (18000)."
          },
          "searchCacheTtlMs": {
            "title": "Search cache TTL override (ms)",
            "type": "integer",
            "description": "Advanced: how long a search-results page stays cached in memory during this run. Leave blank to use the built-in default (600000)."
          },
          "detailCacheTtlMs": {
            "title": "Detail cache TTL override (ms)",
            "type": "integer",
            "description": "Advanced: how long a listing-detail page stays cached in memory during this run. Leave blank to use the built-in default (1800000)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}