{
  "openapi": "3.0.1",
  "info": {
    "title": "Futurehome.al Scraper: Albania Real Estate, Offices & Agents",
    "description": "Scrape Futurehome.al, the Future Home real estate network in Albania: sale and rent listings with price in EUR or Lek, area, bedrooms, floor, coordinates and photos, plus offices and agents. Export CSV, Excel, JSON, XML.",
    "version": "0.1",
    "x-build-id": "kli9qKLHa136D8wZF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~futurehome-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-futurehome-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/recordsdata~futurehome-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-futurehome-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/recordsdata~futurehome-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-futurehome-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": {
          "recordTypes": {
            "title": "What to collect",
            "type": "array",
            "description": "Listings = one row per ad (price in EUR or Lek, area, bedrooms, address, photos). Offices = one row per Future Home office. Agents = one row per licensed agent. Example: Listings only (default). Every row counts toward Max items.",
            "items": {
              "type": "string",
              "enum": [
                "listings",
                "offices",
                "agents"
              ],
              "enumTitles": [
                "Listings (ads)",
                "Offices",
                "Agents"
              ]
            },
            "default": [
              "listings"
            ]
          },
          "operation": {
            "title": "For sale or for rent?",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "For sale, for rent (monthly) or both. Each row says which one it is in the operation field. Example: For rent (monthly).",
            "default": "sale"
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "Only ads in these cities, one per line. Example: Tirana, Durres, Vlore. Accents and capitals do not matter. Leave empty for all of Albania.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "Only these property types, for example apartment or villa. Leave empty for all. Each type is scanned in turn, so a small Max items still mixes types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "duplex",
                "house",
                "villa",
                "studio",
                "penthouse",
                "bar-restaurant",
                "business-building",
                "commercial",
                "hotel",
                "warehouse",
                "shopping-mall",
                "office",
                "resort",
                "garage",
                "land"
              ],
              "enumTitles": [
                "Apartment",
                "Duplex",
                "House",
                "Villa",
                "Studio (garsoniere)",
                "Penthouse",
                "Bar / restaurant",
                "Business building",
                "Commercial space",
                "Hotel",
                "Warehouse / pavilion",
                "Shopping mall",
                "Office",
                "Resort",
                "Garage / parking",
                "Land"
              ]
            },
            "default": []
          },
          "zones": {
            "title": "Neighbourhoods (optional)",
            "type": "array",
            "description": "Only ads in these neighbourhoods, one per line. Example: Blloku, Komuna e Parisit. Accents and capitals do not matter; part of a name matches up to 12 neighbourhoods. Combine with Cities.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bedrooms": {
            "title": "Bedrooms (optional)",
            "type": "array",
            "description": "Exact number of bedrooms, from 1 to 5, one per line. Example: 2 and 3. The site counts the number before the plus in 2+1. Leave empty for any.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bathrooms": {
            "title": "Bathrooms (optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Exact number of bathrooms, from 1 to 5. Leave empty or 0 for any."
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in euros (monthly rent for rentals). Example: 50000. Leave empty or 0 for no minimum."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in euros (monthly rent for rentals). Example: 150000. Leave empty or 0 for no maximum."
          },
          "minArea": {
            "title": "Min area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest area in square meters. Example: 60. Leave empty or 0 for no minimum."
          },
          "maxArea": {
            "title": "Max area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest area in square meters. Example: 120. Leave empty or 0 for no maximum."
          },
          "keyword": {
            "title": "Keyword (optional)",
            "type": "string",
            "description": "Word the site searches in titles and descriptions. Example: pool, a street or a building name. Leave empty to skip.",
            "default": ""
          },
          "startUrls": {
            "title": "futurehome.al page URLs",
            "type": "array",
            "description": "Ad, office, agent, offices list, agents list or any search page. Example: https://futurehome.al/properties?business_type=sale&city=Durres. A search page brings its own filters, so the filters above are ignored for it.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Ad IDs or ad URLs",
            "type": "array",
            "description": "The number in the ad URL or the full URL, one per line. Example: 8081324. These ads are fetched directly with full detail and the filters are not applied. A removed ad returns one free error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "references": {
            "title": "Reference codes",
            "type": "array",
            "description": "Codes exactly as shown on the ads, sale or rent, one per line. Example: UNA17267. A code nobody uses returns one free error row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items (rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows to return. Free plan: 10 items (preview). Paid: up to 1,000,000. Example: 10 for a test, 500 for a full pull."
          },
          "fetchDetails": {
            "title": "Add full ad details (slower)",
            "type": "boolean",
            "description": "Opens every ad for the full description, street address, coordinates, all photos, floor, publication date and the agent and office. Adds one request per ad and is billed as the listing-detail event. Turn off for a cheaper, faster list-only pass.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Add business contact data",
            "type": "boolean",
            "description": "Adds the contacts agencies publish on their public pages: agent e-mail, phone and WhatsApp, office phone, and phones or e-mails written in ad descriptions. Off by default; without it those are removed.",
            "default": false
          },
          "maxRunSeconds": {
            "title": "Stop after (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stops collecting after this many seconds and returns what was gathered, so a wide search never runs unbounded. Example: 1800 (30 minutes).",
            "default": 1800
          },
          "onlyNew": {
            "title": "Only new rows (monitor mode)",
            "type": "boolean",
            "description": "Only new rows: skip every ad, office or agent this same search already returned in an earlier run, so a scheduled run returns just the new ones and you are not charged for skipped rows. Max Items then means N new rows. Off by default.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Name of this monitor, for example \"tirana-rent-weekly\". Leave empty to derive it from your filters. Use a name to run two monitors with the same filters.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget previously seen rows",
            "type": "boolean",
            "description": "Clears the saved list for this monitor before the run, so everything counts as new again. Use once, then turn it off.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: runs of up to 50 rows read futurehome.al directly at a polite pace of about one request every 2.4 seconds. The site slows each IP down, so for bigger scans the actor uses the Apify datacenter proxy by itself (about ten times faster) and falls back to it if a small run gets throttled. Switch the proxy on here to force it from the first request.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}