{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Sold Homes & Comps - By Address, ZIP or Area",
    "description": "Sold comps from Redfin for any US address, ZIP, city or neighborhood. Every sale in the area, not only the 350 Redfin shows, plus off-market public-record sales: sold price and date, beds, baths, sqft, price per sqft, year built, type, distance from your address, comp-set medians. Filters.",
    "version": "0.1",
    "x-build-id": "UIHm9yqOoKl7RErSy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swerve~redfin-sold-comps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swerve-redfin-sold-comps",
        "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/swerve~redfin-sold-comps/runs": {
      "post": {
        "operationId": "runs-sync-swerve-redfin-sold-comps",
        "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/swerve~redfin-sold-comps/run-sync": {
      "post": {
        "operationId": "run-sync-swerve-redfin-sold-comps",
        "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": {
          "searchUrls": {
            "title": "Redfin search URLs",
            "type": "array",
            "description": "Paste Redfin area URLs (go to redfin.com, search your city or area, copy the URL), e.g. https://www.redfin.com/city/30818/TX/Austin. Cities, counties, neighborhoods and ZIP pages all work. The sold filter is applied automatically and every sold home of the area is returned: a whole city over a long window can be thousands of rows, so set Max results if you want a cap.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Or just enter 5-digit ZIP codes, no URL needed, e.g. 78704, 33139. The simplest way to pull every sold home of a specific area.",
            "items": {
              "type": "string"
            }
          },
          "addresses": {
            "title": "Street addresses (comps around a home)",
            "type": "array",
            "description": "The comps workflow: a full US street address with city and state, e.g. 1300 Pennsylvania Ave, Miami Beach, FL 33139. The actor locates the address and returns every sold home within the radius below, across ZIP borders, nearest first, with the distance on every row.",
            "items": {
              "type": "string"
            }
          },
          "radiusMiles": {
            "title": "Radius around each address (miles)",
            "minimum": 0.1,
            "type": "number",
            "description": "Only sales within this distance of the address are returned (comps are usually drawn from 0.5 to 2 miles). Default 1.",
            "default": 1
          },
          "soldWindow": {
            "title": "Sold within",
            "enum": [
              "sold-1wk",
              "sold-1mo",
              "sold-3mo",
              "sold-6mo",
              "sold-1yr",
              "sold-2yr",
              "sold-3yr",
              "sold-5yr"
            ],
            "type": "string",
            "description": "How far back to include sold homes.",
            "default": "sold-3mo"
          },
          "minBeds": {
            "title": "Min beds",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only homes with at least this many bedrooms."
          },
          "maxBeds": {
            "title": "Max beds",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only homes with at most this many bedrooms."
          },
          "minBaths": {
            "title": "Min baths",
            "minimum": 0.5,
            "type": "number",
            "description": "Keep only homes with at least this many bathrooms, e.g. 2 or 2.5."
          },
          "minSqft": {
            "title": "Min square feet",
            "minimum": 100,
            "type": "integer",
            "description": "e.g. 1500"
          },
          "maxSqft": {
            "title": "Max square feet",
            "minimum": 100,
            "type": "integer",
            "description": "e.g. 2500"
          },
          "minPrice": {
            "title": "Min sold price ($)",
            "minimum": 1000,
            "type": "integer",
            "description": "e.g. 300000"
          },
          "maxPrice": {
            "title": "Max sold price ($)",
            "minimum": 1000,
            "type": "integer",
            "description": "e.g. 600000"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "condo",
                "townhouse",
                "multifamily",
                "land",
                "manufactured",
                "other"
              ],
              "enumTitles": [
                "House",
                "Condo / Co-op",
                "Townhouse",
                "Multi-family",
                "Land",
                "Mobile / Manufactured",
                "Other"
              ]
            }
          },
          "minYearBuilt": {
            "title": "Built after (year)",
            "minimum": 1800,
            "type": "integer",
            "description": "e.g. 1990"
          },
          "maxYearBuilt": {
            "title": "Built before (year)",
            "minimum": 1800,
            "type": "integer",
            "description": "e.g. 2010"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the total number of sold homes, to limit cost. Leave blank to get every sold home of the area (Redfin shows 350 per page; the actor reads a larger area in pieces to get them all)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Redfin answers US IPs. Defaults to Apify Residential in the US.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountryCode": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}