{
  "openapi": "3.0.1",
  "info": {
    "title": "US Property Records Scraper - Owner Leads",
    "description": "Scrape US property & parcel records with owner names, mailing addresses, absentee-owner flags, assessed/market values & characteristics from official open-data portals: NY statewide (23M parcels), NYC, Cook County/Chicago, Norfolk VA. Filters + monitoring, no browser.",
    "version": "0.1",
    "x-build-id": "TrOL979Jwf4MUazIW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-property-records-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-property-records-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/scrapesage~us-property-records-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-property-records-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/scrapesage~us-property-records-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-property-records-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": {
          "sources": {
            "title": "Property data sources",
            "type": "array",
            "description": "Which official open-data portals to query. <b>ny-state</b> = New York statewide assessment roll (23.5M parcels, owner + mailing address + market value, excludes NYC). <b>nyc</b> = New York City PLUTO (every NYC tax lot: owner, assessed value, building characteristics). <b>cook-il</b> = Cook County / Chicago (owner name + owner mailing address + property address). <b>norfolk-va</b> = Norfolk, VA (owner, values, year built, last sale). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "ny-state",
                "nyc",
                "cook-il",
                "norfolk-va"
              ],
              "enumTitles": [
                "New York State (statewide, excl. NYC)",
                "New York City (PLUTO)",
                "Cook County / Chicago, IL",
                "Norfolk, VA"
              ]
            },
            "default": [
              "ny-state",
              "nyc",
              "cook-il",
              "norfolk-va"
            ]
          },
          "counties": {
            "title": "Counties (New York State)",
            "type": "array",
            "description": "Filter by county — applies to the <b>ny-state</b> source, e.g. <code>Westchester</code>, <code>Erie</code>, <code>Nassau</code>, <code>Suffolk</code>, <code>Monroe</code>, <code>Albany</code>. Case-insensitive exact county name.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities / municipalities / boroughs",
            "type": "array",
            "description": "Filter by the property's city / town / municipality (case-insensitive exact match). NY State uses the municipality name (<code>Yonkers</code>, <code>Buffalo</code>). NYC accepts a borough name (<code>Manhattan</code>, <code>Brooklyn</code>, <code>Queens</code>, <code>Bronx</code>, <code>Staten Island</code>). Cook County / Norfolk use the city name (<code>Chicago</code>, <code>Evanston</code>, <code>Norfolk</code>).",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes (prefix)",
            "type": "array",
            "description": "Filter by property ZIP — full ZIP (<code>11201</code>) or a prefix (<code>112</code> matches all 112xx). Applies to NYC, Cook County and Norfolk (NY State has no parcel ZIP, so it matches the owner's mailing ZIP there).",
            "items": {
              "type": "string"
            }
          },
          "addressContains": {
            "title": "Property address contains",
            "type": "string",
            "description": "Only return properties whose street address contains this text (case-insensitive), e.g. <code>Broadway</code> or <code>Main St</code>."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Filter by normalized property type. Applies where the dataset publishes a property class (NY State, NYC, Norfolk); Cook County has no class field and is skipped when this is set.",
            "items": {
              "type": "string",
              "enum": [
                "residential",
                "commercial",
                "industrial",
                "vacant",
                "agricultural",
                "other"
              ],
              "enumTitles": [
                "Residential",
                "Commercial",
                "Industrial",
                "Vacant land",
                "Agricultural",
                "Other"
              ]
            }
          },
          "propertyClassCodes": {
            "title": "Raw property class codes (advanced)",
            "type": "array",
            "description": "Power-user passthrough of the source's own class codes. NY State = 3-digit property class (<code>210</code> one-family, <code>411</code> apartment). NYC = building class (<code>A1</code>, <code>D6</code>, <code>O4</code>). Matched exactly (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "ownerNameQuery": {
            "title": "Owner name contains",
            "type": "string",
            "description": "Only return properties whose owner name contains this text (case-insensitive), e.g. <code>LLC</code>, <code>Trust</code>, or a specific person/company name."
          },
          "absenteeOwnersOnly": {
            "title": "Absentee owners only",
            "type": "boolean",
            "description": "Only return properties where the owner's mailing address is in a different city/state than the property (out-of-area landlords & investors — the highest-converting direct-mail leads). Requires a mailing address, so it applies to NY State and Cook County; NYC and Norfolk are skipped when this is on.",
            "default": false
          },
          "businessOwnersOnly": {
            "title": "Business / entity owners only",
            "type": "boolean",
            "description": "Only return properties owned by a company, LLC, corporation, partnership or trust (filters out owner-occupant individuals). Ideal for portfolio-landlord and commercial prospecting.",
            "default": false
          },
          "excludeGovernmentOwners": {
            "title": "Exclude government owners",
            "type": "boolean",
            "description": "Drop properties owned by a government body (city, county, state, federal, authorities, school districts, transit). Recommended for lead lists.",
            "default": true
          },
          "minValue": {
            "title": "Minimum value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at or above this value. Uses market value (NY State, Norfolk) or assessed value (NYC). Cook County has no value field and is skipped when this is set."
          },
          "maxValue": {
            "title": "Maximum value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at or below this value."
          },
          "minYearBuilt": {
            "title": "Built on/after year",
            "minimum": 1700,
            "type": "integer",
            "description": "Only properties built in or after this year. Applies to NYC and Norfolk (which publish year built)."
          },
          "maxYearBuilt": {
            "title": "Built on/before year",
            "minimum": 1700,
            "type": "integer",
            "description": "Only properties built in or before this year. Applies to NYC and Norfolk."
          },
          "rollYear": {
            "title": "Assessment roll / data year (optional)",
            "minimum": 2000,
            "type": "integer",
            "description": "Pin NY State and Cook County to a specific year. Leave blank to use the latest available year automatically."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of property records to return in this run (across all selected sources).",
            "default": 1000
          },
          "maxResultsPerSource": {
            "title": "Max results per source (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many records are pulled from each source before the global limit and sorting are applied. Leave blank to use the same value as Max results."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "value",
              "newest",
              "leadScore",
              "none"
            ],
            "type": "string",
            "description": "Order of the returned records. <b>value</b> = highest value first (best for high-equity targets). <b>newest</b> = most recent sale first (Norfolk). <b>leadScore</b> = best leads first. <b>none</b> = natural order (fastest).",
            "default": "value"
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Skip duplicate property records within this run (recommended).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new records",
            "type": "boolean",
            "description": "Remember which properties were already returned (in a named key-value store) and emit ONLY records that are new since the last run — each tagged <code>monitorEvent: \"new\"</code>. A change of owner or a new sale also surfaces as new. Portals refresh on each assessment roll; run on a Schedule to capture new owners, sales and listings as fresh leads. Works alongside Apify Schedules (the schedule starts the run; monitoring decides what's new).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved watch (e.g. per area/source) so different monitors don't share state.",
            "default": "default"
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata app token for higher rate limits on very large runs. Not required — leave blank for normal use. Get one free at any of the open-data portals (e.g. data.ny.gov)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. Government open data is fetched directly and needs no proxy — leave this off for the fastest runs. Enable Apify Proxy only if your network requires it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}