{
  "openapi": "3.0.1",
  "info": {
    "title": "Idealista Property Scraper & Listing Monitor",
    "description": "Export public Idealista homes in Spain, Portugal, or Italy, request bounded details, or monitor complete comparable searches with safe removal semantics.",
    "version": "0.8",
    "x-build-id": "CncSNVmSxIXftxsDS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~idealista-property-scraper-listing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-idealista-property-scraper-listing-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/luminar~idealista-property-scraper-listing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-luminar-idealista-property-scraper-listing-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/luminar~idealista-property-scraper-listing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-idealista-property-scraper-listing-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": {
          "workflow": {
            "title": "What do you want to do?",
            "enum": [
              "search_listings",
              "track_listing_changes"
            ],
            "type": "string",
            "description": "Monitoring advances state only after trustworthy complete coverage. Capped, partial, filtered, blocked, failed, or malformed scans cannot confirm absence.",
            "default": "search_listings"
          },
          "country": {
            "title": "Country",
            "enum": [
              "ES",
              "PT",
              "IT"
            ],
            "type": "string",
            "description": "Selects the matching anonymous public Idealista site for Spain, Portugal, or Italy.",
            "default": "PT"
          },
          "location": {
            "title": "City or location",
            "maxLength": 120,
            "type": "string",
            "description": "Common city names are normalized into the selected country's public homes-search route. Use an exact public search URL for other areas or source-backed filters.",
            "default": "Lisboa"
          },
          "operation": {
            "title": "Listing operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Selects the country-specific public sale or rent route.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "type": "string",
            "description": "The canary-backed first release exports the public homes search only.",
            "default": "homes"
          },
          "detailLevel": {
            "title": "Data depth",
            "enum": [
              "cards",
              "full_public_details"
            ],
            "type": "string",
            "description": "Public details adds one bounded property-page request per returned listing and is limited to 12 rows. Detail fields remain nullable when the source does not publish them; monitoring is cards-only.",
            "default": "cards"
          },
          "maxProperties": {
            "title": "Maximum current rows",
            "minimum": 1,
            "maximum": 114,
            "type": "integer",
            "description": "Card mode supports up to 114 rows. Public-detail mode is runtime-limited to 12 rows. Reaching an unexhausted source scope produces CAPPED coverage and cannot confirm removal.",
            "default": 25
          },
          "searchUrls": {
            "title": "Exact Idealista search URLs",
            "maxItems": 2,
            "type": "array",
            "description": "Replaces the generated location target with one or two anonymous public search URLs from the selected country. The country host and sale/rent route must match the input.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "additionalProperties": false,
              "properties": {
                "url": {
                  "title": "Search URL",
                  "description": "A public search URL on the selected Idealista country site, including source-backed filters.",
                  "type": "string",
                  "pattern": "^https://(?:www\\.)?idealista\\.(?:com|pt|it)/(?:venta-viviendas|alquiler-viviendas|comprar-casas|arrendar-casas|vendita-case|affitto-case)/",
                  "maxLength": 1200
                }
              }
            }
          },
          "maxPagesPerTarget": {
            "title": "Maximum pages per location",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "A proven bounded ceiling. If the search still has another page, coverage is CAPPED and removal checks stay frozen.",
            "default": 6
          },
          "sort": {
            "title": "Result order",
            "type": "string",
            "description": "The canary-backed first release preserves Idealista source order.",
            "default": "source_order"
          },
          "stateNamespace": {
            "title": "Monitoring scope name",
            "pattern": "^[A-Za-z0-9._~-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Separates saved monitors. Keep targets, filters, limits, and sorting identical across runs.",
            "default": "default"
          },
          "maxBuyerChargeUsd": {
            "title": "Maximum projected Actor charge",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "Stops before source work if the maximum event vector would exceed this amount.",
            "default": 1
          },
          "maxRequests": {
            "title": "Request guard",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Internal ceiling for first-party source requests in one run.",
            "default": 20
          },
          "maxSourceBytes": {
            "title": "Transfer guard",
            "minimum": 10000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Internal ceiling for total source response bytes in one run.",
            "default": 15000000
          },
          "maxRuntimeSecs": {
            "title": "Runtime guard",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Internal source-work runtime ceiling.",
            "default": 300
          },
          "maxEstimatedPlatformUsd": {
            "title": "Platform-cost guard",
            "minimum": 0.01,
            "maximum": 0.2,
            "type": "number",
            "description": "Internal planning guard; settled Apify usage remains authoritative.",
            "default": 0.06
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}