{
  "openapi": "3.0.1",
  "info": {
    "title": "RE/MAX Portugal Scraper",
    "description": "Extract property listings from RE/MAX Portugal (remax.pt) — homes and commercial real estate to buy or rent. 60+ fields per property: descriptions in 6 languages, all photos, GPS, energy ratings, price history, and agent contacts. Search by location with price, bedroom, area, and type filters.",
    "version": "1.0",
    "x-build-id": "Ic5cJw5f81PtVaR0G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~remax-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-remax-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/solidcode~remax-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-remax-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/solidcode~remax-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-remax-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": {
          "searchTerm": {
            "title": "Location",
            "type": "string",
            "description": "Location to search. Accepts Portuguese ('Lisboa', 'Porto') or English ('Lisbon', 'Algarve') — accents are optional. Ignored when Start URLs are provided below.",
            "default": "Lisboa"
          },
          "businessType": {
            "title": "Buy or Rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Search for properties to buy or to rent.",
            "default": "buy"
          },
          "listingClass": {
            "title": "Property Class",
            "enum": [
              "all",
              "residential",
              "commercial"
            ],
            "type": "string",
            "description": "Limit to residential homes, commercial real estate, or include all listings.",
            "default": "all"
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Filter by one or more property types. Leave empty to include every type.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "land",
                "store",
                "office",
                "warehouse",
                "building",
                "garage",
                "farm",
                "hotel",
                "other"
              ],
              "enumTitles": [
                "Apartment",
                "House / Villa",
                "Land / Plot",
                "Store / Retail Space",
                "Office",
                "Warehouse",
                "Building",
                "Garage / Parking",
                "Farm / Rural Estate",
                "Hotel / Hospitality",
                "Other"
              ]
            },
            "default": []
          },
          "priceMin": {
            "title": "Minimum Price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties at or above this price in euros. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum Price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties at or below this price in euros. Leave empty for no maximum."
          },
          "bedroomsMin": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Only include properties with at least this many bedrooms."
          },
          "bedroomsMax": {
            "title": "Maximum Bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Only include properties with at most this many bedrooms. Leave empty for no upper limit."
          },
          "bathroomsMin": {
            "title": "Minimum Bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Only include properties with at least this many bathrooms."
          },
          "areaMin": {
            "title": "Minimum Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties at or above this area in square metres. Leave empty for no minimum."
          },
          "areaMax": {
            "title": "Maximum Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties at or below this area in square metres. Leave empty for no maximum."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "newest",
              "price-asc",
              "price-desc",
              "area-desc",
              "price-reduction"
            ],
            "type": "string",
            "description": "How RE/MAX orders results before they are collected.",
            "default": "newest"
          },
          "descriptionLanguage": {
            "title": "Description Language",
            "enum": [
              "pt",
              "en",
              "fr",
              "de",
              "es",
              "it"
            ],
            "type": "string",
            "description": "Language used for the property descriptions in the output.",
            "default": "pt"
          },
          "includeDescriptions": {
            "title": "Include Full Descriptions",
            "type": "boolean",
            "description": "Include the full property description text in the output. Turn off for lighter, faster results.",
            "default": true
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Power-user input. Paste RE/MAX Portugal search-result URLs (e.g. https://www.remax.pt/comprar/...) or individual property URLs directly. When provided, these override the Location and Filters settings above.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of property listings to collect across all searches and URLs. Set to 0 for unlimited (up to a safety cap of 100,000 results per run). Results are collected in full pages, so the final page may overshoot this cap by a few records.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}