{
  "openapi": "3.0.1",
  "info": {
    "title": "Property Sales Records - US Home Sale Prices & Comps",
    "description": "Property sales records with recorded sale prices and comps from official public records: NYC (5 boroughs), Cook County IL, Maryland (24 counties), Connecticut (169 towns), Norfolk VA. Sale date, price, address, ZIP, parcel ID, sq ft, year built, arm's-length flag. $2.00 per 1,000 sales.",
    "version": "0.1",
    "x-build-id": "VqSgM5zA8gWn04S0i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/offgrid-labs~property-sales-records/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-offgrid-labs-property-sales-records",
        "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/offgrid-labs~property-sales-records/runs": {
      "post": {
        "operationId": "runs-sync-offgrid-labs-property-sales-records",
        "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/offgrid-labs~property-sales-records/run-sync": {
      "post": {
        "operationId": "run-sync-offgrid-labs-property-sales-records",
        "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": "Sources (counties / cities / states)",
            "type": "array",
            "description": "Which official open-data sources to query. Empty = all five: New York City, Cook County IL (Chicago), Maryland (statewide), Connecticut (statewide, published annually) and Norfolk VA. Example: [\"nyc\", \"maryland\"]",
            "items": {
              "type": "string",
              "enum": [
                "nyc",
                "cook-county",
                "maryland",
                "connecticut",
                "norfolk-va"
              ],
              "enumTitles": [
                "New York City (5 boroughs)",
                "Cook County, IL (Chicago)",
                "Maryland (all 24 counties)",
                "Connecticut (all 169 towns, annual)",
                "Norfolk, VA"
              ]
            },
            "default": []
          },
          "localities": {
            "title": "City / county / neighborhood contains",
            "type": "array",
            "description": "Keep sales whose city, county or neighborhood contains one of these words (case-insensitive). Examples: [\"Brooklyn\"], [\"Montgomery\", \"Baltimore City\"], [\"Greenwich\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Keep sales in these ZIP codes; prefixes work (\"112\" = all of 112xx). Sales without a ZIP are excluded when set. Connecticut publishes no ZIP. Example: [\"11211\", \"208\"]",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "soldWithinDays": {
            "title": "Sold within last N days",
            "minimum": 1,
            "maximum": 9000,
            "type": "integer",
            "description": "Sales recorded in the last N days (ignored when 'Sold on or after' is set). Sources publish with a lag: NYC monthly, Cook County weekly, Maryland monthly, Connecticut once a year. Default 90. Example: 30",
            "default": 90
          },
          "soldAfter": {
            "title": "Sold on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Fixed start date instead of 'last N days'. Example: 2026-01-01",
            "default": ""
          },
          "soldBefore": {
            "title": "Sold on or before (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end date. Example: 2026-06-30",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum sale price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop sales below this price. Default 1000 removes $0 / $10 deed transfers that are not real sales. 0 = keep everything. Example: 250000",
            "default": 1000
          },
          "maxPrice": {
            "title": "Maximum sale price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop sales above this price. 0 = no maximum. Example: 1500000",
            "default": 0
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Keep only these normalised property types. Empty = all. Example: [\"Residential\", \"Condo / co-op\"]",
            "items": {
              "type": "string",
              "enum": [
                "Residential",
                "Condo / co-op",
                "Multi-family",
                "Commercial / industrial",
                "Vacant land",
                "Exempt / institutional",
                "Other"
              ]
            },
            "default": []
          },
          "armsLengthOnly": {
            "title": "Arm's-length sales only",
            "type": "boolean",
            "description": "Drop sales the source flags as non-arm's-length (foreclosures, gifts, related-party, multi-sale or non-market deeds) - use for valuation comps. Sources without such a flag are kept.",
            "default": false
          },
          "maxItemsPerSource": {
            "title": "Max sales per source",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum sales saved per source, newest first; one sale = one dataset row = one charged result. 0 = no limit. Example: 1000",
            "default": 200
          },
          "includeRawRecord": {
            "title": "Include the original record",
            "type": "boolean",
            "description": "Adds a raw field with the source's original columns (buyer, seller, grantor, grantee and owner name columns are always removed). Default false.",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free app token from any Socrata portal (Developer Settings). Raises per-IP request limits for very large pulls. Not needed for normal use."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}