{
  "openapi": "3.0.1",
  "info": {
    "title": "Recent Home Sales & New Homeowner Leads Scraper",
    "description": "Homes just sold in a city or town (CT, MA, NH, ME, RI, VT, VA) with the buyer's name and mailing address, seller, price, beds and baths. New homeowner leads, pay per sale.",
    "version": "0.0",
    "x-build-id": "PRmwzjSsUVH3DBS94"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~recent-home-sales-new-homeowner-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-recent-home-sales-new-homeowner-leads-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/scrapebench~recent-home-sales-new-homeowner-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-recent-home-sales-new-homeowner-leads-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/scrapebench~recent-home-sales-new-homeowner-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-recent-home-sales-new-homeowner-leads-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": {
          "state": {
            "title": "State",
            "enum": [
              "CT",
              "MA",
              "NH",
              "ME",
              "RI",
              "VT",
              "VA",
              "PA",
              "MN"
            ],
            "type": "string",
            "description": "The state to search. Covered: the cities, towns and counties whose assessor publishes its records on a Vision Government Solutions online database (274 in all).",
            "default": "CT"
          },
          "cities": {
            "title": "Cities or towns",
            "type": "array",
            "description": "City or town names, e.g. 'New Haven' or 'Canton'. In Virginia and Pennsylvania, a county or independent city, e.g. 'Gloucester County'. Leave empty to search every city and town in the state. A name that is not covered returns the free list of names that are.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City or town (single)",
            "type": "string",
            "description": "One city or town; kept for saved tasks and API callers that send one value. Combined with 'Cities or towns'."
          },
          "soldWithinDays": {
            "title": "Sold within the last (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Sales recorded in this many days up to today. Towns post sales on their own schedule: some within a week, most within a month or two, a few once a year.",
            "default": 30
          },
          "dateFrom": {
            "title": "Sold from (optional)",
            "type": "string",
            "description": "Start date, YYYY-MM-DD. Overrides 'Sold within the last'."
          },
          "dateTo": {
            "title": "Sold to (optional)",
            "type": "string",
            "description": "End date, YYYY-MM-DD. Defaults to today."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Which sales to return: single_family, condo, multi_family, vacant_land, commercial, other. Default: homes (single-family, condo, 2-4 family and larger).",
            "default": [
              "single_family",
              "condo",
              "multi_family"
            ],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum sale price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "The default of 1 leaves out $0 deeds (transfers between family members or into a trust), which are rarely new homeowners. Set 0 to include them.",
            "default": 1
          },
          "maxPrice": {
            "title": "Maximum sale price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper price limit."
          },
          "includeOwnerDetails": {
            "title": "Include owner details",
            "type": "boolean",
            "description": "Open each property's record for the buyer, the seller, the owner's mailing address, beds, baths, year built and assessed value. Off: only what the sales list carries (address, date, price, type, living area, land area), which is faster.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum sales (whole run)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Spend cap for the WHOLE run, across every city and town, not per city. The run stops once it has delivered this many sales. A statewide Connecticut month was about 630 home sales in October 2026.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default. Turn it on if a run reports that a database refused the search.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}