{
  "openapi": "3.0.1",
  "info": {
    "title": "MHVillage Manufactured & Mobile Home Scraper",
    "description": "Scrape MHVillage.com - the largest US manufactured/mobile home marketplace. Search homes for sale or rent by state, city, or ZIP+radius, browse a specific community's inventory, or pull a dealer's lot. Get price, beds/baths, sqft, community details, photos, and listing URLs.",
    "version": "1.0",
    "x-build-id": "7YEd7tTNj0NQiiQEL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~mhvillage-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-mhvillage-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/crawlerbros~mhvillage-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-mhvillage-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/crawlerbros~mhvillage-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-mhvillage-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",
        "required": [
          "mode",
          "listingType",
          "proxyConfiguration"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCommunity",
              "byDealer"
            ],
            "type": "string",
            "description": "How to locate listings.",
            "default": "search"
          },
          "state": {
            "title": "State (mode=search)",
            "enum": [
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY"
            ],
            "type": "string",
            "description": "2-letter US state code, e.g. `FL`, `TX`, `AZ`. Required for mode=search unless a ZIP code is provided instead.",
            "default": "FL"
          },
          "city": {
            "title": "City (mode=search, optional)",
            "type": "string",
            "description": "City name to narrow the search, e.g. `Orlando`. Leave empty to search the whole state."
          },
          "zipCode": {
            "title": "ZIP code (mode=search, optional)",
            "type": "string",
            "description": "5-digit US ZIP code. When set, this overrides state/city and searches within `radiusMiles` of the ZIP."
          },
          "radiusMiles": {
            "title": "Search radius in miles (used with ZIP code)",
            "enum": [
              "5",
              "10",
              "20",
              "30",
              "40",
              "50",
              "60",
              "70",
              "80",
              "90",
              "100"
            ],
            "type": "string",
            "description": "How far from the ZIP code to search. Only applies when `zipCode` is set.",
            "default": "20"
          },
          "communityKey": {
            "title": "Community (park) ID (mode=byCommunity)",
            "type": "string",
            "description": "Numeric MHVillage community/park ID, found in the community's MHVillage URL. Required for mode=byCommunity."
          },
          "dealerKey": {
            "title": "Dealer (sales center) ID (mode=byDealer)",
            "type": "string",
            "description": "Numeric MHVillage dealer/sales-center ID, found in the dealer's MHVillage URL. Required for mode=byDealer."
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "sale",
              "rent",
              "rent-to-own",
              "seasonal-rental"
            ],
            "type": "string",
            "description": "Type of listing to search for. `sale` and `rent` are applied server-side; `rent-to-own`/`seasonal-rental` are matched against the listing's own flags within the default result set.",
            "default": "sale"
          },
          "priceMin": {
            "title": "Min price ($)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced below this amount."
          },
          "priceMax": {
            "title": "Max price ($)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced above this amount."
          },
          "bedroomsMin": {
            "title": "Min bedrooms",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Drop listings with fewer bedrooms than this.",
            "default": "0"
          },
          "bathroomsMin": {
            "title": "Min bathrooms",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Drop listings with fewer bathrooms than this.",
            "default": "0"
          },
          "sqftMin": {
            "title": "Min square footage",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Drop listings with fewer square feet than this."
          },
          "sqftMax": {
            "title": "Max square footage",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Drop listings with more square feet than this."
          },
          "yearBuiltMin": {
            "title": "Min year built",
            "minimum": 1900,
            "maximum": 2027,
            "type": "integer",
            "description": "Drop homes built before this year."
          },
          "yearBuiltMax": {
            "title": "Max year built",
            "minimum": 1900,
            "maximum": 2027,
            "type": "integer",
            "description": "Drop homes built after this year."
          },
          "hasPhotosOnly": {
            "title": "Only listings with photos",
            "type": "boolean",
            "description": "Only include listings that have at least one photo.",
            "default": false
          },
          "hasVirtualTourOnly": {
            "title": "Only listings with a virtual tour",
            "type": "boolean",
            "description": "Only include listings that have a virtual tour.",
            "default": false
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "best-match",
              "price-asc",
              "price-desc",
              "year-asc",
              "year-desc",
              "bedrooms-asc",
              "bedrooms-desc",
              "bathrooms-asc",
              "bathrooms-desc",
              "recently-listed",
              "recently-updated",
              "distance"
            ],
            "type": "string",
            "description": "How to order results. `Distance` only has an effect when a ZIP code is set. Any sort other than `Best match` is applied via MHVillage's own JSON search API (used automatically even for state/city searches).",
            "default": "best-match"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "MHVillage.com blocks requests from outside the United States with a geo-block page. A US-pinned Apify proxy (free AUTO/datacenter group) is required.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}