{
  "openapi": "3.0.1",
  "info": {
    "title": "New Homes Scraper: Lennar, KB Home, Toll Brothers & LGI",
    "description": "New-construction data straight from the builders' own sites: communities, quick move-in homes with address, lot, price and move-in date, mortgage-rate and promo offers, and a weekly changes feed (new homes, price cuts, sold or pulled homes) for Lennar, KB Home, Toll Brothers and LGI Homes.",
    "version": "0.1",
    "x-build-id": "0rIew24DlMZiPRQE4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~new-home-inventory-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-new-home-inventory-monitor",
        "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/yugenox~new-home-inventory-monitor/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-new-home-inventory-monitor",
        "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/yugenox~new-home-inventory-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-new-home-inventory-monitor",
        "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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Metros and/or states, e.g. \"Austin, TX\", \"Dallas\", \"Houston, TX\", \"Florida\", \"NC\". Each builder's matching market pages are read.",
            "default": [
              "Austin, TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "builders": {
            "title": "Builders",
            "type": "array",
            "description": "Which builders to read. Leave empty for all four.",
            "items": {
              "type": "string",
              "enum": [
                "lennar",
                "kb-home",
                "toll-brothers",
                "lgi-homes"
              ],
              "enumTitles": [
                "Lennar",
                "KB Home",
                "Toll Brothers",
                "LGI Homes"
              ]
            },
            "default": [
              "lennar",
              "kb-home",
              "toll-brothers",
              "lgi-homes"
            ]
          },
          "rowTypes": {
            "title": "What to collect",
            "type": "array",
            "description": "Communities (price range, status, plan and quick move-in counts, sales office contact), Homes (quick move-in / inventory homes with address, lot, plan, price, move-in date; LGI Homes = floor plans with price), Offers (builder promotions and mortgage-rate offers per market).",
            "items": {
              "type": "string",
              "enum": [
                "communities",
                "homes",
                "offers"
              ],
              "enumTitles": [
                "Communities",
                "Homes (quick move-in)",
                "Offers / incentives"
              ]
            },
            "default": [
              "communities",
              "homes",
              "offers"
            ]
          },
          "statuses": {
            "title": "Community status",
            "type": "array",
            "description": "Keep only communities with these statuses (and their homes). Pick only \"Coming soon\" for a new-community openings list. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "coming-soon",
                "now-selling",
                "closeout",
                "sold-out"
              ],
              "enumTitles": [
                "Coming soon",
                "Now selling (incl. grand openings)",
                "Closeout / final homes",
                "Sold out"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Homes priced at or above this; communities whose price range reaches it."
          },
          "maxPrice": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Homes priced at or below this; communities starting at or below it."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Most rows to save (communities + homes + offers, or changes). 0 = no limit.",
            "default": 200
          },
          "maxCommunitiesWithHomes": {
            "title": "Communities to read homes from",
            "minimum": 1,
            "type": "integer",
            "description": "Homes come from each community's own page (one page per community). This caps how many community pages are read per builder.",
            "default": 25
          },
          "onlyChanges": {
            "title": "Only changes since last run",
            "type": "boolean",
            "description": "Weekly monitor: save only what changed since the previous run with the same monitor name — new communities, status changes, new quick move-in homes, price cuts and increases, homes removed (sold or pulled), offers added / changed / ended. The first run saves everything as new.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate memories for different monitors (e.g. \"texas-weekly\"). Use the same name every run.",
            "default": "default"
          },
          "communitySummaries": {
            "title": "Community summaries (changes mode)",
            "type": "boolean",
            "description": "In changes mode, also save one summary row per community whose homes were read: current quick move-in count, price range and the number of each change.",
            "default": true
          },
          "emitRemoved": {
            "title": "Report removed homes and communities",
            "type": "boolean",
            "description": "In changes mode, report homes, communities and offers that disappeared since the last run (only for pages read completely this run).",
            "default": true
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore changes in",
            "type": "array",
            "description": "Changes to ignore in changes mode: price, status, offerText, offerTitle, offerEndDate.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is used by default and works for these sites.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}