{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Scraper - Every Home for Sale, No 350 Cap",
    "description": "Every home for sale on Redfin in a ZIP, city, county or around an address: the whole area, not the 350 Redfin shows (Austin: 5,477 homes in 47 seconds). Price, beds, baths, sqft, type, days on market, open houses, FSBO, photo, description. Optional rent estimate and yield per home. No login.",
    "version": "0.1",
    "x-build-id": "ybMbq7fNhmJmPfgPW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swerve~redfin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swerve-redfin-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/swerve~redfin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-swerve-redfin-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/swerve~redfin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-swerve-redfin-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": {
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "The simplest way: enter 5-digit ZIP codes, e.g. 78704, 33139. You get every home for sale in each ZIP, not only the 350 Redfin shows on a page.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Redfin area URLs",
            "type": "array",
            "description": "Or paste Redfin pages: go to redfin.com, open a city, county, neighborhood or ZIP, set any filters you like, and copy the URL, e.g. https://www.redfin.com/city/30818/TX/Austin/filter/min-beds=3,max-price=600k. The filters in the URL are kept.",
            "items": {
              "type": "string"
            }
          },
          "addresses": {
            "title": "Street addresses (homes for sale around a point)",
            "type": "array",
            "description": "A full US street address with city and state, e.g. 1300 Pennsylvania Ave, Miami Beach, FL 33139. You get every home for sale 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,
            "maximum": 25,
            "type": "number",
            "description": "Only homes within this distance of the address are returned. Default 1, up to 25.",
            "default": 1
          },
          "minPrice": {
            "title": "Min price ($)",
            "minimum": 1,
            "type": "integer",
            "description": "e.g. 300000"
          },
          "maxPrice": {
            "title": "Max price ($)",
            "minimum": 1,
            "type": "integer",
            "description": "e.g. 600000"
          },
          "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": 1,
            "type": "integer",
            "description": "e.g. 1500"
          },
          "maxSqft": {
            "title": "Max square feet",
            "minimum": 1,
            "type": "integer",
            "description": "e.g. 2500"
          },
          "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 in or after",
            "minimum": 1700,
            "type": "integer",
            "description": "e.g. 1990"
          },
          "maxYearBuilt": {
            "title": "Built in or before",
            "minimum": 1700,
            "type": "integer",
            "description": "e.g. 2010"
          },
          "listedWithin": {
            "title": "Listed within",
            "enum": [
              "any",
              "1day",
              "3days",
              "1wk",
              "2wk",
              "1mo"
            ],
            "type": "string",
            "description": "Only new listings. Run it daily with 'Last day' to catch homes as they hit the market.",
            "default": "any"
          },
          "onMarketAtLeast": {
            "title": "On the market at least",
            "enum": [
              "any",
              "1wk",
              "2wk",
              "1mo",
              "2mo",
              "3mo",
              "6mo"
            ],
            "type": "string",
            "description": "Only listings that have been sitting: sellers who may take a lower offer.",
            "default": "any"
          },
          "fsboOnly": {
            "title": "For sale by owner only",
            "type": "boolean",
            "description": "Keep only homes listed by their owner, without an agent (FSBO). The whole area is read and the other homes are left out.",
            "default": false
          },
          "openHouseOnly": {
            "title": "Open houses only",
            "type": "boolean",
            "description": "Keep only homes with an open house scheduled; each row carries its start and end time.",
            "default": false
          },
          "includeRentEstimate": {
            "title": "Add a rent estimate to every home",
            "type": "boolean",
            "description": "Adds what each home would rent for, with a range and a confidence, plus gross yield and rent-to-price. It is worked out from the rentals listed around the home (tested against 1,362 real rentals: 13.3% median error). Slower: the rentals of the area are read too.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the total number of homes, to limit cost. Leave blank to get every home for sale in 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}