{
  "openapi": "3.0.1",
  "info": {
    "title": "Real Estate Scraper - Listing Price, Beds, Area & Agent",
    "description": "Extract price, beds, area, address and agent from public real estate listing URLs or agency list pages. One row per property; one event per successful page.",
    "version": "0.1",
    "x-build-id": "mpqW6zVUJCMM3smmN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidytools~real-estate-listing-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidytools-real-estate-listing-extractor",
        "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/tidytools~real-estate-listing-extractor/runs": {
      "post": {
        "operationId": "runs-sync-tidytools-real-estate-listing-extractor",
        "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/tidytools~real-estate-listing-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-tidytools-real-estate-listing-extractor",
        "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": "Public property or agency listing URLs",
            "type": "array",
            "description": "Paste public property detail or agency listing pages, one per line. This sample independent agency list shows several properties. Large portals may block automation. You can also use startUrls or a datasetId.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Property URLs (request list, optional)",
            "type": "array",
            "description": "Apify request-list form of public property detail or estate agent list URLs. Each successfully extracted page creates one page-extracted event, regardless of number of property rows.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "preset": {
            "title": "Property fields",
            "enum": [
              "property",
              "hotel",
              "menu",
              "recipe",
              "lead_directory",
              "product_catalog",
              "job_detail",
              "invoice",
              "receipt",
              "bank_statement"
            ],
            "type": "string",
            "description": "Property is selected by default. Missing details are null; extra Fields can override or add columns.",
            "default": "property"
          },
          "fields": {
            "title": "Fields to extract",
            "type": "object",
            "description": "Leave empty for property fields: name, listingUrl, address, price, currency, bedrooms, bathrooms, area, areaUnit, area_sqm, status, agentName, agentPhone. Add typed fields if needed; JSON Schema overrides Fields."
          },
          "instructions": {
            "title": "Instructions (or just a prompt)",
            "type": "string",
            "description": "Or write one sentence, such as \"Get each product's name, price and rating\". Clear the sample Fields first if you want the AI to choose columns from this sentence. With no Fields or JSON Schema, it chooses once from the first page, reuses the columns for this run and saves them as SCHEMA. You can also use this for hints such as \"Prices in USD\"."
          },
          "prompt": {
            "title": "Prompt (same as Instructions)",
            "type": "string",
            "description": "Same as \"Instructions\"; used only when Instructions is empty. Lets you paste the input JSON of Apify's AI Web Scraper (`startUrls` + `prompt`) and run it unchanged. Its crawl options (extractionMode scout/agentic, maxPagesToVisit, maxCrawlDepth) are ignored: only the start URLs are read, or turn on \"Follow links to detail pages\"."
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "page",
              "items"
            ],
            "type": "string",
            "description": "One row per visible property on a list page, or one row for a property detail page. Each successful page incurs one page-extracted event. Switch to page mode for one record per page.",
            "default": "items"
          },
          "flatOutput": {
            "title": "Flat columns (for Google Sheets, n8n, CSV)",
            "type": "boolean",
            "description": "Put each extracted property field in its own Dataset column for CSV, Sheets and n8n. Same rows and page-extracted charges as nested data.",
            "default": false
          },
          "qualityReport": {
            "title": "Batch data quality report",
            "type": "boolean",
            "description": "Write DATA_QUALITY.json and DATA_QUALITY.csv with field missing counts, type error counts, review suggestions and completeness across saved data rows. Failed or free rows are counted separately. Quality hints are not human verification. No extra AI calls or page-extracted charges.",
            "default": false
          },
          "followLinks": {
            "title": "Follow links to detail pages",
            "type": "boolean",
            "description": "Off by default. When enabled, read detail links from a list page for free and extract the linked pages. Each successfully extracted detail page incurs one page-extracted event.",
            "default": false
          },
          "followPagination": {
            "title": "Follow list pages automatically",
            "type": "boolean",
            "description": "Off by default. When enabled, follow visible same-domain Next or numbered list links up to Max pages. Each successfully extracted list page incurs one page-extracted event, even if it yields many property rows.",
            "default": false
          },
          "maxPages": {
            "title": "Max pages per list",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages including the starting page per URL when pagination is enabled. Each successful page creates one page-extracted event.",
            "default": 2
          },
          "linkPattern": {
            "title": "Link pattern",
            "type": "string",
            "description": "Which links to follow. A glob such as https://books.toscrape.com/catalogue/*/index.html (* = any text within one path segment, ** = across segments), or plain text the link must contain, such as /product/. Separate several with commas. Empty = every link to the same site (menus included, so a pattern is recommended)."
          },
          "maxPagesPerStartUrl": {
            "title": "Max pages per start URL",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "At most this many linked pages are extracted from each start page (in page order). Caps the cost.",
            "default": 20
          },
          "jsonSchema": {
            "title": "JSON Schema (advanced)",
            "type": "object",
            "description": "Optional full JSON Schema (type: object) for nested output. When set, it replaces \"Fields\". In item mode it describes one item."
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "Read the URLs from another Actor run's dataset, e.g. a crawler or a search results scraper. Values that are not URLs are extracted from as text."
          },
          "datasetField": {
            "title": "Dataset field",
            "type": "string",
            "description": "Field with the URLs, e.g. \"url\" or \"website\" (dot paths such as \"company.url\" work). Empty = the first URL field found."
          },
          "mode": {
            "title": "Page fetching (HTTP or browser)",
            "enum": [
              "auto",
              "fast",
              "browser"
            ],
            "type": "string",
            "description": "\"Auto\" reads pages over plain HTTP and switches to a real browser when a site blocks it or needs JavaScript. Values: auto = Auto (recommended); fast = Fast (HTTP only); browser = Browser (JavaScript rendering).",
            "default": "auto"
          },
          "cssSelector": {
            "title": "Content selector (CSS)",
            "type": "string",
            "description": "Optional. Only read this part of each page, e.g. \"main\". Helps with very long pages."
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are processed at the same time.",
            "default": 5
          },
          "itemTimeoutSecs": {
            "title": "Time limit per page (seconds)",
            "minimum": 0,
            "maximum": 900,
            "type": "integer",
            "description": "A page that takes longer (reading + AI) is stopped and returned as a free error row with errorType \"timeout\". In list mode, the items from the parts that finished in time are kept. 0 = no limit.",
            "default": 180
          },
          "aiModel": {
            "title": "AI model",
            "enum": [
              "auto",
              "llama-3.3-70b",
              "qwen3-30b",
              "llama-4-scout"
            ],
            "type": "string",
            "description": "Same price for every model. Auto uses Llama 3.3 70B for one row per page and Qwen3 30B for list pages (one row per item), where it writes long lists about 3 times faster with the same accuracy in our tests.",
            "default": "auto"
          },
          "httpVia": {
            "title": "Plain HTTP requests from",
            "enum": [
              "auto",
              "backend",
              "direct",
              "vm"
            ],
            "type": "string",
            "description": "Some sites block requests from data centers. Auto retries from a second network before falling back to a real browser. If both are refused, Auto also tries our second server (Oracle, different IP) before a real browser.",
            "default": "auto"
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Only used for requests sent from Apify's network. Apify proxy usage is billed to your Apify account."
          },
          "maxPdfPages": {
            "title": "Maximum PDF pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Read up to this many pages per PDF. Only pages with text that are sent to extraction incur one page-extracted event each.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}