{
  "openapi": "3.0.1",
  "info": {
    "title": "Recent Home Sales Scraper: Flips, Resales & Investor Buyers",
    "description": "Recent home sales from recorded deeds in Illinois, New York City and Norfolk, VA: price, address, dates, company buyers named, and each home's previous sale, months held and gain, or only flips resold within months. Free investor lists and zip code stats. New sales only.",
    "version": "0.1",
    "x-build-id": "bJBcRlJCOZaWlxdpq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~new-homeowners/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-new-homeowners",
        "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/pikoulas~new-homeowners/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-new-homeowners",
        "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/pikoulas~new-homeowners/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-new-homeowners",
        "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": {
          "areas": {
            "title": "Areas",
            "type": "array",
            "description": "Where to take sales from: all of Illinois (every county, from the state's transfer declarations), New York City's five boroughs (ACRIS) and Norfolk, Virginia.",
            "items": {
              "type": "string",
              "enum": [
                "illinois",
                "nyc",
                "norfolk"
              ],
              "enumTitles": [
                "Illinois (statewide)",
                "New York City",
                "Norfolk, VA"
              ]
            },
            "default": [
              "illinois",
              "nyc",
              "norfolk"
            ]
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "The last days of deeds each area has published. Each publishes on its own delay (Illinois and Norfolk a few days, New York City about a month), so 30 is each area's latest month. Ignored when a start date is set.",
            "default": 30
          },
          "startDate": {
            "title": "Recorded from",
            "type": "string",
            "description": "The first recording date to take, YYYY-MM-DD, the same for every area."
          },
          "endDate": {
            "title": "Recorded to",
            "type": "string",
            "description": "The last recording date to take, YYYY-MM-DD."
          },
          "counties": {
            "title": "Counties or boroughs",
            "type": "array",
            "description": "Only these, one a line: Illinois counties (Cook, DuPage), New York City boroughs (Brooklyn, Queens) or Norfolk. Empty for all.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Only these cities or towns, one a line (Naperville, Chicago, Brooklyn). Empty for all.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "Zip codes",
            "type": "array",
            "description": "Only these zip codes, one a line; a shorter prefix takes in all that start with it (606 for Chicago's). Empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "The lowest sale price to take."
          },
          "maxPrice": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "The highest sale price to take."
          },
          "buyerTypes": {
            "title": "Buyers",
            "type": "array",
            "description": "People and trusts (the new homeowners and their family trusts, names withheld) and companies (investors, builders, banks), named.",
            "items": {
              "type": "string",
              "enum": [
                "person",
                "trust",
                "company"
              ],
              "enumTitles": [
                "People",
                "Trusts",
                "Companies"
              ]
            },
            "default": [
              "person",
              "trust",
              "company"
            ]
          },
          "homesOnly": {
            "title": "Homes only",
            "type": "boolean",
            "description": "Houses, condos, co-ops and 2 to 4 family homes; off to take land, apartment buildings and commercial property too.",
            "default": true
          },
          "marketSalesOnly": {
            "title": "Sales only",
            "type": "boolean",
            "description": "Leave out transfers that aren't a sale: those under $1,000 (gifts, moves into a trust), and in Illinois sales between relatives, court-ordered ones, deeds in lieu of foreclosure, trades and quitclaims.",
            "default": true
          },
          "ownerOccupiedOnly": {
            "title": "Owner-occupied only (Illinois)",
            "type": "boolean",
            "description": "Only buyers who declared the home will be their main residence. Only Illinois asks, so the other areas are left out when this is on.",
            "default": false
          },
          "previousSale": {
            "title": "Previous sale",
            "type": "boolean",
            "description": "Each sale with its home's sale before it, from the same records: date, price, months held and the price change. Free. Not in Norfolk County, whose roll keeps only the last sale.",
            "default": true
          },
          "resoldWithinMonths": {
            "title": "Resold within months",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Only resales: homes sold again within this many months of their previous sale, such as 12 for flips. Every sale in the window is looked up, and only these are given and charged. Norfolk County is left out."
          },
          "includeInvestorSummary": {
            "title": "Company buyer list",
            "type": "boolean",
            "description": "A free row per company that bought among the sales given: how many homes, the median and total spent, its counties, cities and zip codes, the property types, its mailing address (New York City) and the homes it bought, the most purchases first. People and trusts are never listed.",
            "default": false
          },
          "minPurchases": {
            "title": "Least purchases for the list",
            "minimum": 1,
            "type": "integer",
            "description": "Only companies that bought at least this many of the sales given: 2 for repeat buyers.",
            "default": 1
          },
          "includeMarketSummary": {
            "title": "Zip code stats",
            "type": "boolean",
            "description": "A free row per zip code among the sales given: how many, the median, lowest, highest and total price, the share bought by companies and by trusts, the share owner-occupied (Illinois) and the property types.",
            "default": false
          },
          "onlyNew": {
            "title": "New sales only",
            "type": "boolean",
            "description": "Give, and charge for, only the sales no earlier run with the same memory gave, so a weekly schedule over the last two weeks gets each deed once, late-recorded ones included.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "One per schedule, so two don't share a memory. Kept in your account's key-value store new-homeowners-memory; a deed is forgotten 120 days after it was given.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many sales.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the open data portals answer without one. Datacenter IPs cost nothing extra; residential ones are charged per 100 KB fetched.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}