{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Scraper API - Properties & Agency Leads",
    "description": "Idealista properties across Spain, Italy and Portugal: published phones, full descriptions and language versions, photos, floor plans, energy data and verified public agency contacts. Four simple input fields.",
    "version": "0.1",
    "x-build-id": "LaPJrTbbJRFRBZHAG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~idealista-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-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/trakk~idealista-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trakk-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/trakk~idealista-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-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": {
          "workflow": {
            "title": "What do you want to collect?",
            "enum": [
              "FAST",
              "FULL_DETAILS",
              "LEADS"
            ],
            "type": "string",
            "description": "⚡ Fast is best for bulk market scans. Full details follows every search result to its property page. Agency leads also checks each unique professional advertiser for explicitly published public contacts, socials, and microsite profile data.",
            "default": "FAST"
          },
          "targets": {
            "title": "Locations, Idealista URLs, or listing IDs",
            "minItems": 0,
            "maxItems": 1000,
            "type": "array",
            "description": "One entry per line: city/neighborhood/postal code (e.g. Madrid, Barcelona, 28001, Milano, Lisboa), Idealista search URL, agency portfolio URL, property URL, or numeric listing ID. Spain, Italy, and Portugal are auto-detected from URLs. Direct property URLs use full-detail processing.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum properties for the whole run",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Global cap on successfully saved unique properties across all targets. 0 means no item cap.",
            "default": 100
          },
          "country": {
            "title": "Marketplace country",
            "enum": [
              "ES",
              "IT",
              "PT"
            ],
            "type": "string",
            "description": "Used for city/postal-code searches, coordinate searches, and numeric listing IDs. Pasted URLs automatically use their own marketplace.",
            "default": "ES"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "SALE",
              "RENT",
              "NEW_DEVELOPMENT"
            ],
            "type": "string",
            "description": "Deal type for location and coordinate searches.",
            "default": "SALE"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "HOMES",
              "NEW_DEVELOPMENTS",
              "ROOMS",
              "OFFICES",
              "PREMISES",
              "GARAGES",
              "STORAGES",
              "LANDS",
              "BUILDINGS",
              "TRANSFERS"
            ],
            "type": "string",
            "description": "Property category for location and coordinate searches.",
            "default": "HOMES"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "mostRecent",
              "lowestPrice",
              "highestPrice",
              "biggestPriceDrop",
              "largest",
              "smallest",
              "leastRecent"
            ],
            "type": "string",
            "description": "Order in which matching listings are returned.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum asking price in EUR."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum asking price in EUR."
          },
          "minSize": {
            "title": "Minimum size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum constructed area in square meters."
          },
          "maxSize": {
            "title": "Maximum size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum constructed area in square meters."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "array",
            "description": "Filter by one or more bedroom counts (location searches).",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "Studio (0)",
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms",
                "4+ bedrooms"
              ]
            }
          },
          "bathrooms": {
            "title": "Bathrooms",
            "type": "array",
            "description": "Filter by one or more bathroom counts (location searches).",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "1 bathroom",
                "2 bathrooms",
                "3+ bathrooms"
              ]
            }
          },
          "condition": {
            "title": "Property condition",
            "enum": [
              "",
              "GOOD",
              "RENEW",
              "NEW_DEVELOPMENT"
            ],
            "type": "string",
            "description": "Optional condition filter for location searches.",
            "default": ""
          },
          "publicationDate": {
            "title": "Published within",
            "enum": [
              "",
              "LAST_24H",
              "LAST_WEEK",
              "LAST_MONTH"
            ],
            "type": "string",
            "description": "Optional publication recency filter for location searches.",
            "default": ""
          },
          "features": {
            "title": "Amenities & property features",
            "type": "array",
            "description": "Optional amenities and subtype filters for location searches.",
            "items": {
              "type": "string",
              "enum": [
                "airConditioning",
                "elevator",
                "terrace",
                "balcony",
                "exterior",
                "garage",
                "garden",
                "swimmingPool",
                "storeRoom",
                "furnished",
                "petsAllowed",
                "accessible",
                "seaViews",
                "luxury",
                "bankOffer",
                "auction",
                "virtualTour",
                "plan",
                "penthouse",
                "duplex",
                "chalet",
                "studio"
              ],
              "enumTitles": [
                "Air conditioning",
                "Elevator / lift",
                "Terrace",
                "Balcony",
                "Exterior",
                "Garage / parking",
                "Garden",
                "Swimming pool",
                "Storage room",
                "Furnished",
                "Pets allowed",
                "Wheelchair accessible",
                "Sea views",
                "Luxury homes",
                "Bank-owned",
                "Auction",
                "Virtual tour",
                "Has floor plan",
                "Penthouse",
                "Duplex",
                "House / chalet",
                "Studio"
              ]
            }
          },
          "enablePriceSplitting": {
            "title": "Bypass 1,800-listing cap (auto price splitting)",
            "type": "boolean",
            "description": "Splits broad searches into price ranges automatically so runs can collect more than Idealista's 60-page (1,800-listing) per-search cap. Automatically enabled when maxItems > 1800.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}