{
  "openapi": "3.0.1",
  "info": {
    "title": "Homegate Property Search Scraper",
    "description": "Extract comprehensive property data from Homegate.ch, Switzerland's largest real estate marketplace. Access detailed property listings, pricing, and location data from over 100,000 properties with automated scraping technology.",
    "version": "0.0",
    "x-build-id": "uVxsqFtLs7vp2pwFy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ecomscrape~homegate-property-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ecomscrape-homegate-property-search-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/ecomscrape~homegate-property-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ecomscrape-homegate-property-search-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/ecomscrape~homegate-property-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ecomscrape-homegate-property-search-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": {
          "urls": {
            "title": "URLs of the Property list page urls to scrape",
            "type": "array",
            "description": "Add the URLs of the Property list page urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
            "items": {
              "type": "string"
            }
          },
          "ignore_url_failures": {
            "title": "Ignore URL failures",
            "type": "boolean",
            "description": "If true, the scraper will continue running even if some URLs fail to be scraped after the maximum number of retries is reached."
          },
          "search_in": {
            "title": "Search Type",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Type of property search"
          },
          "category": {
            "title": "Property Category",
            "enum": [
              "apartment",
              "house",
              "real-estate",
              "plotmulti-family-house",
              "commercial-and-residential-building",
              "parking-place-garage",
              "commercial"
            ],
            "type": "string",
            "description": "Type of property to search for",
            "default": "apartment"
          },
          "country": {
            "title": "Country",
            "type": "array",
            "description": "Filter properties by country (e.g., india, saint-helena)",
            "items": {
              "type": "string"
            }
          },
          "zipcode": {
            "title": "Zip Code",
            "type": "array",
            "description": "Filter properties by zip code (e.g., 5000, 8001)",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "array",
            "description": "Filter properties by city name (e.g., englisberg, geneva, basel)",
            "items": {
              "type": "string"
            }
          },
          "search_range": {
            "title": "Search Range (Kilometers)",
            "enum": [
              "1000",
              "2000",
              "3000",
              "4000",
              "5000",
              "7000",
              "10000",
              "15000",
              "20000",
              "30000",
              "50000"
            ],
            "type": "string",
            "description": "Search radius in meters from specified location"
          },
          "page": {
            "title": "Page Start",
            "minimum": 1,
            "type": "integer",
            "description": "Specify the page number to start scraping from"
          },
          "sort_by": {
            "title": "Sort By",
            "enum": [
              "resultingSearchablePrice-asc",
              "resultingSearchablePrice-desc",
              "",
              "dateCreated-desc",
              "exclusive-desc"
            ],
            "type": "string",
            "description": "Sort results by specific criteria"
          },
          "price_from": {
            "title": "Price From",
            "enum": [
              "",
              "50000",
              "100000",
              "150000",
              "200000",
              "300000",
              "400000",
              "500000",
              "600000",
              "700000",
              "800000",
              "900000",
              "1000000",
              "1250000",
              "1500000",
              "2000000",
              "2500000",
              "3000000",
              "4000000",
              "5000000"
            ],
            "type": "string",
            "description": "Minimum price filter (in CHF)"
          },
          "price_to": {
            "title": "Price To",
            "enum": [
              "",
              "50000",
              "100000",
              "150000",
              "200000",
              "300000",
              "400000",
              "500000",
              "600000",
              "700000",
              "800000",
              "900000",
              "1000000",
              "1250000",
              "1500000",
              "2000000",
              "2500000",
              "3000000",
              "4000000",
              "5000000"
            ],
            "type": "string",
            "description": "Maximum price filter (in CHF)"
          },
          "room_from": {
            "title": "Rooms From",
            "enum": [
              "",
              "1",
              "1.5",
              "2",
              "2.5",
              "3",
              "3.5",
              "4",
              "4.5",
              "5",
              "5.5",
              "6",
              "6.5",
              "7",
              "7.5",
              "8"
            ],
            "type": "string",
            "description": "Minimum number of rooms"
          },
          "room_to": {
            "title": "Rooms To",
            "enum": [
              "",
              "1",
              "1.5",
              "2",
              "2.5",
              "3",
              "3.5",
              "4",
              "4.5",
              "5",
              "5.5",
              "6",
              "6.5",
              "7",
              "7.5",
              "8"
            ],
            "type": "string",
            "description": "Maximum number of rooms"
          },
          "living_space_from": {
            "title": "Living Space From (m²)",
            "enum": [
              "",
              "20",
              "40",
              "60",
              "80",
              "100",
              "120",
              "140",
              "160",
              "180",
              "200",
              "250",
              "300",
              "350",
              "400",
              "450",
              "500",
              "550"
            ],
            "type": "string",
            "description": "Minimum living space in square meters"
          },
          "living_space_to": {
            "title": "Living Space To (m²)",
            "enum": [
              "",
              "20",
              "40",
              "60",
              "80",
              "100",
              "120",
              "140",
              "160",
              "180",
              "200",
              "250",
              "300",
              "350",
              "400",
              "450",
              "500",
              "550"
            ],
            "type": "string",
            "description": "Maximum living space in square meters"
          },
          "max_items_per_url": {
            "title": "Limit the number of items per URL or search filters",
            "type": "integer",
            "description": "Limit the number of items per URL or search filters you want to scrape"
          },
          "max_retries_per_url": {
            "title": "Limit the number of retries",
            "type": "integer",
            "description": "Limit the number of retries for each URL or search filters if the scrape is detected as a bot or the page fails to load"
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your scraper."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}