{
  "openapi": "3.0.1",
  "info": {
    "title": "Statewide Property Owners and Ownership Changes: NY CT MA WI NC",
    "description": "Owner rows from the statewide assessment rolls of New York, Connecticut, Massachusetts, Wisconsin and North Carolina, read from each state's own API: owner names, mailing and site address, values, class and last sale where published, plus an absentee flag. Ownership change events between runs.",
    "version": "0.3",
    "x-build-id": "icVID1crJ9Mn5Fj6t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overlookdata~statewide-property-owners/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overlookdata-statewide-property-owners",
        "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/overlookdata~statewide-property-owners/runs": {
      "post": {
        "operationId": "runs-sync-overlookdata-statewide-property-owners",
        "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/overlookdata~statewide-property-owners/run-sync": {
      "post": {
        "operationId": "run-sync-overlookdata-statewide-property-owners",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "parcels",
              "changes"
            ],
            "type": "string",
            "description": "parcels: one row per assessed parcel with its owner, mailing address, site address, values and class. changes: ownership-change events (owner, sale, mailing address, value and class changes, parcels added and removed) since the previous changes run in this account, one county or town at a time. The first changes run for a county or town stores a baseline and returns nothing for it; events start with the second.",
            "default": "parcels"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Which statewide rolls to read. Leave empty for all five. States run one after the other, each county or town in name order.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "CT",
                "MA",
                "WI",
                "NC"
              ],
              "enumTitles": [
                "New York (Office of Real Property Tax Services, assessment rolls outside New York City, by county)",
                "Connecticut (Office of Policy and Management, parcel and CAMA data, by town)",
                "Massachusetts (MassGIS Level 3 assessor table, by town)",
                "Wisconsin (Statewide Parcel Map, by county)",
                "North Carolina (NC OneMap parcels, by county)"
              ]
            },
            "default": [
              "NY",
              "CT",
              "MA",
              "WI",
              "NC"
            ]
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Read only these counties in New York, Wisconsin, North Carolina and Massachusetts (name, case does not matter; in Massachusetts the towns of these counties). Connecticut publishes no county: with counties set and no municipalities, Connecticut is skipped with a note.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "municipalities": {
            "title": "Cities and towns",
            "type": "array",
            "description": "Read only these towns in Connecticut and Massachusetts (name, case does not matter; in Massachusetts combined with counties when both are set). In New York, Wisconsin and North Carolina this keeps the rows of these municipalities inside the counties read.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ownerNameContains": {
            "title": "Owner name contains",
            "type": "string",
            "description": "Keep parcels where every word appears, case does not matter, in the first or second owner name."
          },
          "mailingStates": {
            "title": "Mailing states",
            "type": "array",
            "description": "Keep parcels whose owner mailing address is in these states (two-letter codes, for example FL or NY).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mailingZipPrefixes": {
            "title": "Mailing ZIP prefixes",
            "type": "array",
            "description": "Keep parcels whose owner mailing ZIP code starts with any of these, for example 060 or 33480.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "absenteeOnly": {
            "title": "Absentee owners only",
            "type": "boolean",
            "description": "Keep only parcels whose mailing address differs from the site address by the absentee rule (see the README). Applied after the rows are read, so combine it with a county or town.",
            "default": false
          },
          "propertyClassCodes": {
            "title": "Property class codes",
            "type": "array",
            "description": "Keep parcels with these property class codes, in the state's own code list (exact code, case does not matter).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minTotalValue": {
            "title": "Minimum total value",
            "type": "integer",
            "description": "Keep parcels whose total assessed value is at least this. A parcel with no value is left out."
          },
          "maxTotalValue": {
            "title": "Maximum total value",
            "type": "integer",
            "description": "Keep parcels whose total assessed value is at most this. A parcel with no value is left out."
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows in all, across states. Leave empty for every row. A limited county or town is not compared with the source's count. Not allowed in changes mode."
          },
          "takedownRecordKeys": {
            "title": "Takedown record keys",
            "type": "array",
            "description": "Record keys to leave out of every row, event and stored snapshot, in addition to the list shipped with the actor.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum time between two requests to one state's source.",
            "default": 100
          },
          "skipUnchanged": {
            "title": "Skip unchanged counties and towns",
            "type": "boolean",
            "description": "Changes mode only. Skip a county or town whose cheap unchanged signal (see the README) equals the stored one. Turn off to read every county or town regardless.",
            "default": true
          },
          "acceptUnits": {
            "title": "Accept a real drop or mass change (one run)",
            "type": "array",
            "description": "Changes mode only, as STATE:UNIT (for example NY:SUFFOLK or CT:New Haven). A county or town whose read holds fewer than 98 of every 100 parcels in its stored snapshot, or whose owner changes on more than 35 (mailing address: 50) of every 100 parcels present in both, fails, because a broken or reformatted source looks the same. If you have checked that the change is real, name it here for one run, then remove it.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Changes mode only. Output and charge only these event types; leave empty for all seven. The snapshot still advances, the guards still count every type, and related_event_types still names every type a parcel produced.",
            "items": {
              "type": "string",
              "enum": [
                "owner_changed",
                "sale_recorded",
                "mailing_address_changed",
                "value_changed",
                "property_class_changed",
                "parcel_added",
                "parcel_removed"
              ],
              "enumTitles": [
                "Owner name changed",
                "Sale recorded (CT, MA, NC)",
                "Mailing address changed",
                "Total value changed",
                "Property class changed",
                "Parcel added",
                "Parcel removed"
              ]
            },
            "default": []
          },
          "rebaselineUnits": {
            "title": "Store a new baseline (one run)",
            "type": "array",
            "description": "Changes mode only, as STATE:UNIT. These counties or towns store a new baseline and emit no events in this run, for example after the source renumbered their parcels.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sourceOverrides": {
            "title": "Source overrides",
            "type": "object",
            "description": "Point a yearly source at its new address before the actor's next release: {\"CT\": {\"dataset\": \"xxxx-xxxx\", \"year\": 2027}, \"WI\": {\"layerUrl\": \"https://services3.arcgis.com/n6uYoouQZW75n5WI/arcgis/rest/services/.../FeatureServer/0\"}}. Anything else is refused at start.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}