{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Real Estate Scraper: MLS Listings, Sold Homes & Rentals",
    "description": "Search Redfin MLS homes for sale, recently sold comps, and rentals by city, ZIP, or URL. Extract prices, Redfin estimates, beds/baths, square footage, HOA fees, and listing agent contacts.",
    "version": "1.0",
    "x-build-id": "E7ta82lYFcAYXooMw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wyle~redfin-real-estate-mls-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wyle-redfin-real-estate-mls-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/wyle~redfin-real-estate-mls-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wyle-redfin-real-estate-mls-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/wyle~redfin-real-estate-mls-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wyle-redfin-real-estate-mls-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",
        "required": [
          "locations"
        ],
        "properties": {
          "locations": {
            "title": "Locations, ZIP Codes, or Redfin URLs",
            "type": "array",
            "description": "Enter US/Canadian Cities (e.g., 'Austin, TX', 'Miami, FL', 'Los Angeles, CA'), 5-digit ZIP codes (e.g., '90210', '78701'), or direct Redfin Search/Property URLs (e.g., 'https://www.redfin.com/city/30818/TX/Austin').",
            "default": [
              "Austin, TX",
              "Miami, FL"
            ],
            "items": {
              "type": "string"
            }
          },
          "listingMode": {
            "title": "Listing Mode (For Sale, Sold Comps, or For Rent)",
            "enum": [
              "for_sale",
              "sold",
              "for_rent"
            ],
            "type": "string",
            "description": "Choose whether to scrape active/pending homes For Sale ('for_sale'), Recently Sold homes/comps ('sold'), or Apartments/Homes For Rent ('for_rent').",
            "default": "for_sale"
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Filter by property type. Leave empty to include all property types (Single Family House, Condo, Townhouse, Multi-Family, Land, Manufactured, Co-op).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum listing/sold/rent price in USD (e.g., 250000). Set 0 for no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum listing/sold/rent price in USD (e.g., 1500000). Set 0 for no maximum.",
            "default": 0
          },
          "minBeds": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Optional minimum number of bedrooms (0 = any).",
            "default": 0
          },
          "minBaths": {
            "title": "Minimum Bathrooms",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum number of bathrooms (0 = any, e.g., 1.5, 2, 3).",
            "default": 0
          },
          "minSqft": {
            "title": "Minimum Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum interior living area in square feet (0 = any).",
            "default": 0
          },
          "maxSqft": {
            "title": "Maximum Square Feet",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum interior living area in square feet (0 = any).",
            "default": 0
          },
          "includePending": {
            "title": "Include Pending / Under Contract Homes (For Sale mode)",
            "type": "boolean",
            "description": "When enabled in 'for_sale' mode, includes both Active and Pending/Under Contract MLS listings.",
            "default": true
          },
          "soldWithinDays": {
            "title": "Sold Within Days (Sold Mode Only)",
            "enum": [
              "30",
              "90",
              "180",
              "365",
              "730",
              "1095"
            ],
            "type": "string",
            "description": "When 'listingMode' is set to 'sold', filter homes sold within the last N days.",
            "default": "90"
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "redfin-recommended-asc",
              "days-on-redfin-asc",
              "price-asc",
              "price-desc",
              "sqft-desc",
              "price-per-sqft-asc"
            ],
            "type": "string",
            "description": "Sort order for listings returned by Redfin.",
            "default": "redfin-recommended-asc"
          },
          "maxItems": {
            "title": "Max Items Per Location",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of property listings to extract per location query. When set above 350, the Actor automatically subdivides the search area into a multi-quadrant grid to collect more listings.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration. Direct connections work out of the box, with Apify Proxy used automatically as a fallback if rate-limited.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}