{
  "openapi": "3.0.1",
  "info": {
    "title": "Supercasa Scraper — Portugal Homes for Sale and Rent",
    "description": "Collect SuperCasa listings for sale or rent across Portugal: asking price, size, bedrooms, bathrooms, neighborhood, photos, energy class and the agency. Filter by city, price, area and condition, sort the results, or paste a SuperCasa search link and export JSON or CSV.",
    "version": "0.0",
    "x-build-id": "gtWjb5fCzGvXZOC17"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~supercasa-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-supercasa-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/memo23~supercasa-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-supercasa-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/memo23~supercasa-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-supercasa-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": {
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City or area as SuperCasa writes it in the URL, for example lisboa, porto, cascais, or lisboa/benfica. Lisbon and Porto are accepted in English. Ignored when you paste Start URLs."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Optional extra places, one per line. Each place is searched with the same filters.",
            "items": {
              "type": "string"
            }
          },
          "operation": {
            "title": "Sale or rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Buy is homes for sale. Rent is homes to let.",
            "default": "buy"
          },
          "propertyTypes": {
            "title": "Property type",
            "type": "array",
            "description": "Leave empty for houses and flats. Each selected type is its own search.",
            "items": {
              "type": "string",
              "enum": [
                "homes",
                "rooms",
                "new-homes",
                "offices",
                "commercial",
                "garages",
                "land",
                "storage",
                "buildings"
              ],
              "enumTitles": [
                "Homes and flats",
                "Rooms",
                "New homes",
                "Offices",
                "Commercial and warehouses",
                "Garages",
                "Land",
                "Storage",
                "Buildings"
              ]
            }
          },
          "propertySubtypes": {
            "title": "Home subtype",
            "type": "array",
            "description": "Optional, for homes and flats: apartments, houses, country homes, duplex or penthouses.",
            "items": {
              "type": "string",
              "enum": [
                "apartamentos",
                "moradias",
                "casa-rusticas",
                "duplex",
                "penthouses"
              ],
              "enumTitles": [
                "Apartments",
                "Houses",
                "Country homes",
                "Duplex",
                "Penthouses"
              ]
            }
          },
          "startUrls": {
            "title": "SuperCasa links",
            "type": "array",
            "description": "Optional. Paste a SuperCasa search page or a single listing link. A search link keeps the filters already in it. When this is set, Location and the filters below are not used.",
            "items": {
              "type": "string"
            }
          },
          "bedrooms": {
            "title": "Bedrooms",
            "enum": [
              "",
              "studio",
              "1",
              "2",
              "3",
              "4+"
            ],
            "type": "string",
            "description": "Minimum bedroom count on the search. 4+ uses SuperCasa's T4 filter.",
            "default": ""
          },
          "priceMin": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave at 0 for no minimum."
          },
          "priceMax": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave at 0 for no maximum."
          },
          "areaMin": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave at 0 for no minimum."
          },
          "areaMax": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave at 0 for no maximum."
          },
          "status": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "used",
              "renovation",
              "construction"
            ],
            "type": "string",
            "description": "Property condition on the search.",
            "default": ""
          },
          "floorType": {
            "title": "Floor",
            "enum": [
              "",
              "lower",
              "middle",
              "upper"
            ],
            "type": "string",
            "description": "Floor band on the search.",
            "default": ""
          },
          "hasElevator": {
            "title": "Elevator",
            "type": "boolean",
            "description": "Only listings SuperCasa tags with an elevator.",
            "default": false
          },
          "hasVideo": {
            "title": "Video",
            "type": "boolean",
            "description": "Only listings with a video.",
            "default": false
          },
          "hasVirtualVisit": {
            "title": "Virtual visit",
            "type": "boolean",
            "description": "Only listings with a virtual visit.",
            "default": false
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "",
              "48h",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Limit the search to recently published listings.",
            "default": ""
          },
          "features": {
            "title": "Extra filters",
            "type": "array",
            "description": "Optional SuperCasa filter words, one per line, added to the search. Examples already covered above: elevador, video, visita-virtual.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "new",
              "older",
              "lowest-price",
              "highest-price",
              "price-reduction",
              "lowest-price-m2",
              "highest-price-m2",
              "biggest",
              "smallest",
              "upper-floors",
              "lower-floors"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings. Free plans are capped at 100.",
            "default": 100
          },
          "includeDetails": {
            "title": "Open each listing",
            "type": "boolean",
            "description": "On by default. Adds the description, all photos, map coordinates, energy class, feature lists and the agency. Turn off for a faster run with price, size and title only.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel listings",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many listing pages to open at once. Lower it if a run slows down.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}