{
  "openapi": "3.0.1",
  "info": {
    "title": "US Mobile Home & Manufactured Housing Park Leads Scraper",
    "description": "Scrape US mobile home parks & manufactured housing communities from official state registries: park name, address, owner & operator name + phone + mailing address (absentee-owner signal), lots, occupancy, amenities, inspections & lead score. Filter by state, size & owner. Monitoring mode.",
    "version": "0.1",
    "x-build-id": "tPgUa6uVIr2a9ZXob"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~mobile-home-park-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-mobile-home-park-leads",
        "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/scrapesage~mobile-home-park-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-mobile-home-park-leads",
        "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/scrapesage~mobile-home-park-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-mobile-home-park-leads",
        "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": {
          "outputType": {
            "title": "What to scrape",
            "enum": [
              "parks",
              "businesses",
              "all"
            ],
            "type": "string",
            "description": "parks = mobile home / manufactured housing communities (the lead). businesses = manufactured-housing dealers, retailers, installers & mechanics (NY certified entities). all = both in one dataset (filter on the recordType field).",
            "default": "parks"
          },
          "states": {
            "title": "States",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks/businesses in these US states (2-letter codes). Sources currently cover NY (statewide, richest — owner contacts), OR (statewide), TX (Austin), WA (Pierce County), LA (Baton Rouge). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks in these counties (case-insensitive, e.g. [\"Albany\",\"Suffolk\"]). Optional.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks in these cities (case-insensitive exact match). Optional.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks in these 5-digit ZIP codes. Optional.",
            "items": {
              "type": "string"
            }
          },
          "nameQuery": {
            "title": "Name contains",
            "type": "string",
            "description": "Keep only parks/businesses whose name contains this text (case-insensitive). Optional."
          },
          "minSiteCapacity": {
            "title": "Min site capacity (lots)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only parks with at least this many lots/sites — target larger acquisition deals."
          },
          "maxSiteCapacity": {
            "title": "Max site capacity (lots)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only parks with at most this many lots/sites."
          },
          "parkSizeCategory": {
            "title": "Park size category",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks of these sizes: small (<50 lots), medium (50-149), large (150+).",
            "items": {
              "type": "string"
            }
          },
          "minOccupancyRate": {
            "title": "Min occupancy rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only parks with at least this occupancy percentage (where capacity & occupancy are reported)."
          },
          "parkType": {
            "title": "Park type",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks of these types (e.g. [\"55+\"], [\"Family\"]). Reported by some states (Oregon). Optional.",
            "items": {
              "type": "string"
            }
          },
          "amenitiesInclude": {
            "title": "Required amenities",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks offering ALL of these amenities (e.g. [\"Pool\",\"Clubhouse\",\"Laundry\"]). Matches against the amenities list. Optional.",
            "items": {
              "type": "string"
            }
          },
          "utilitiesProvided": {
            "title": "Utilities provided",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only parks where the community provides ALL of these utilities (e.g. [\"Water\",\"Sewer\"]) — submetering / value-add signal. Optional.",
            "items": {
              "type": "string"
            }
          },
          "absenteeOwnerOnly": {
            "title": "Absentee owners only",
            "type": "boolean",
            "description": "Keep only parks whose owner mailing address is outside the park's city/state — the highest-converting acquisition targets.",
            "default": false
          },
          "entityOwnedOnly": {
            "title": "Entity-owned only",
            "type": "boolean",
            "description": "Keep only parks owned by a company / LLC / trust / fund (vs. an individual).",
            "default": false
          },
          "withOwnerNameOnly": {
            "title": "Has owner/operator name",
            "type": "boolean",
            "description": "Keep only parks with a named owner or operator.",
            "default": false
          },
          "withOwnerPhoneOnly": {
            "title": "Has owner phone",
            "type": "boolean",
            "description": "Keep only parks with an owner/operator phone number (NY).",
            "default": false
          },
          "withAnyPhoneOnly": {
            "title": "Has any phone",
            "type": "boolean",
            "description": "Keep only parks with an owner or park phone number.",
            "default": false
          },
          "withGeoOnly": {
            "title": "Has coordinates",
            "type": "boolean",
            "description": "Keep only parks with latitude/longitude.",
            "default": false
          },
          "activeOnly": {
            "title": "Active / currently registered only",
            "type": "boolean",
            "description": "Drop parks marked closed / not currently registered. On by default.",
            "default": true
          },
          "hasViolationsOnly": {
            "title": "Has inspection violations only",
            "type": "boolean",
            "description": "Keep only parks with one or more inspection violations on record (NY).",
            "default": false
          },
          "inspectedAfter": {
            "title": "Inspected after (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only parks last inspected on or after this date (NY)."
          },
          "registeredAfterYear": {
            "title": "Registered in or after year",
            "type": "integer",
            "description": "Keep only parks whose latest registration / license year is at or after this year — surface newly-registered parks."
          },
          "includeInspections": {
            "title": "Include NY inspection data",
            "type": "boolean",
            "description": "Fetch NY mobile home park inspections and merge operator, violations & coordinates into the park records.",
            "default": true
          },
          "includeOwnerEnrichment": {
            "title": "Include owner-contact enrichment",
            "type": "boolean",
            "description": "Fetch the NY historic registry to enrich parks with owner/operator phone and mailing address (absentee-owner detection). Adds one extra source fetch.",
            "default": true
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only records with a lead score at or above this value (0-100)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "sizeLargest",
              "occupancy",
              "newest",
              "name",
              "state",
              "source"
            ],
            "type": "string",
            "description": "Ordering of results before the result cap is applied.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to output."
          },
          "maxResultsPerState": {
            "title": "Max results per state",
            "minimum": 1,
            "type": "integer",
            "description": "Optional per-state output cap for a balanced multi-state list."
          },
          "monitorMode": {
            "title": "Monitor mode (only new/changed)",
            "type": "boolean",
            "description": "Remember records across runs in a key-value store and output only parks/businesses that are new or whose owner, capacity, status, registration year or inspection changed since the last run. Great on a schedule. Independent of Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name the monitor memory so different filter setups track separately (e.g. 'ny-large-parks'). Optional."
          },
          "deduplicateResults": {
            "title": "Deduplicate & merge",
            "type": "boolean",
            "description": "Merge records that describe the same park across sources (registry + historic + inspection). On by default.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the original source row(s) under sourceFields for full transparency.",
            "default": true
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata application token to raise rate limits. Not required — all sources work keyless."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Not required — the official open-data portals are reachable directly from Apify.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}