{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Property Search Scraper: Homes for Sale",
    "description": "Search Redfin homes for sale by city, ZIP code, map polygon, coordinates or Redfin page link. Each result has price, beds, baths, square feet, status, address and photo. Presets find new listings, price cuts, open houses and foreclosures, with more than 40 filters.",
    "version": "1.0",
    "x-build-id": "ZnHJiqXFfBOsvTVP5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~redfin-property-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-redfin-property-search-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/happyendpoint~redfin-property-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-redfin-property-search-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/happyendpoint~redfin-property-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-redfin-property-search-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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "autocomplete",
              "search",
              "searchByLocation",
              "searchByCoordinates",
              "searchByPolygon",
              "searchByUrlFlat",
              "searchByIds",
              "searchNewListings",
              "searchPriceReduced",
              "searchOpenHouses",
              "searchNewConstruction",
              "searchForeclosures",
              "searchFixerUppers",
              "searchWaterfront"
            ],
            "type": "string",
            "description": "Which data to fetch. Each option is one kind of request."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most results to return. The run stops once it has this many.",
            "default": 100
          },
          "location": {
            "title": "Location",
            "maxLength": 200,
            "type": "string",
            "description": "A place as plain text: a city followed by its state code, a ZIP code, a neighborhood or a county. For Autocomplete places, the start of a name is enough. Used by: Autocomplete places, Search by location."
          },
          "url": {
            "title": "Redfin search page link",
            "type": "string",
            "description": "The address of a Redfin page for one area (a city, county, neighborhood, ZIP code, school district or school zone), pasted from your browser. Used by: Search by Redfin page link."
          },
          "propertyIds": {
            "title": "Property IDs",
            "pattern": "^[0-9]{1,12}(,[0-9]{1,12}){0,49}$",
            "type": "string",
            "description": "Redfin property IDs, up to 50, with a comma between them. Homes by ID needs this list, Listing IDs or both. Every row carries its propertyId, and it is also the number at the end of a home page link. Used by: Homes by ID."
          },
          "listingIds": {
            "title": "Listing IDs",
            "pattern": "^[0-9]{1,12}(,[0-9]{1,12}){0,49}$",
            "type": "string",
            "description": "Redfin listing IDs, up to 50, with a comma between them, as rows return them in listingId. Homes by ID needs this list, Property IDs or both; with both, it returns every home that matches either list. Used by: Homes by ID."
          },
          "listingStatus": {
            "title": "Suggestions for",
            "enum": [
              "for-sale",
              "for-rent"
            ],
            "type": "string",
            "description": "Whether Autocomplete places suggests places to buy in or to rent in. Rentals add apartment buildings. Used by: Autocomplete places."
          },
          "regionId": {
            "title": "Region ID",
            "minimum": 1,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Redfin's number for a region, such as a city, county, neighborhood, ZIP code, school district or school zone, as Autocomplete places returns it in regionId. Send it with Region type, or send a Polygon instead. Used by: Search by region or polygon, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "regionType": {
            "title": "Region type",
            "enum": [
              "city",
              "neighborhood",
              "zip",
              "county",
              "school",
              "school-district"
            ],
            "type": "string",
            "description": "What kind of place the Region ID stands for. Set it whenever you set Region ID. Used by: Search by region or polygon, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "polygon": {
            "title": "Polygon",
            "pattern": "^-?[0-9]{1,3}(\\.[0-9]+)? -?[0-9]{1,3}(\\.[0-9]+)?(,-?[0-9]{1,3}(\\.[0-9]+)? -?[0-9]{1,3}(\\.[0-9]+)?){3,}$",
            "type": "string",
            "description": "The shape of the area to search, written as longitude and latitude pairs. Put a space inside each pair and a comma between pairs, use four points or more, and end on the starting point. Used by: Search by region or polygon, Search by polygon, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the middle of the search circle, as a decimal number. Used by: Search by coordinates."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the middle of the search circle, as a decimal number. Places in the United States have negative values. Used by: Search by coordinates."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 0.1,
            "maximum": 25,
            "type": "number",
            "description": "How far from the center point to look, in miles. Leave it empty for the standard radius. Used by: Search by coordinates."
          },
          "status": {
            "title": "Listing status",
            "enum": [
              "for-sale",
              "active",
              "coming-soon",
              "contingent",
              "pending",
              "under-contract"
            ],
            "type": "string",
            "description": "Which listings to include. Leave it empty for every home currently on the market. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "propertyTypes": {
            "title": "Home types",
            "pattern": "^(house|condo|townhouse|multi-family|land|other|mobile|co-op)(,(house|condo|townhouse|multi-family|land|other|mobile|co-op))*$",
            "type": "string",
            "description": "Home types separated by commas, any of which may match: house, condo, townhouse, multi-family, land, mobile, co-op or other. Leave it empty for all. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Lowest asking price. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Highest asking price. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "minBeds": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Fewest bedrooms a home may have. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "maxBeds": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Most bedrooms a home may have. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "minBaths": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Fewest bathrooms a home may have, such as 1.5 or 2. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "minSqft": {
            "title": "Minimum living area (sq ft)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Smallest living area, in square feet. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "maxSqft": {
            "title": "Maximum living area (sq ft)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Largest living area, in square feet. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "query": {
            "title": "Keywords",
            "maxLength": 200,
            "type": "string",
            "description": "Words to look for in the listing text. With several words, only homes whose text has every one of them are kept. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "priceReduced": {
            "title": "Price cut",
            "enum": [
              "within-1-day",
              "within-3-days",
              "within-7-days",
              "within-14-days",
              "within-30-days",
              "more-than-30-days",
              "more-than-60-days",
              "more-than-120-days"
            ],
            "type": "string",
            "description": "Only homes whose asking price was lowered, by how recently. For Price-reduced homes, it picks the time window. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "openHouse": {
            "title": "Open house",
            "enum": [
              "any",
              "this-weekend"
            ],
            "type": "string",
            "description": "Only homes with an open house coming up. For Homes with open houses, it picks the time window. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "listedWithinDays": {
            "title": "Listed within (days)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "For New listings: how many days back a listing may have come on the market. Used by: New listings."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "recommended",
              "newest",
              "oldest",
              "price-low",
              "price-high",
              "sqft",
              "lot-size",
              "price-per-sqft"
            ],
            "type": "string",
            "description": "How to order the homes. Leave it empty for the order Redfin recommends. Used by: Search by region or polygon, Search by location, Search by coordinates, Search by polygon, Search by Redfin page link, New listings, Price-reduced homes, Homes with open houses, New construction, Foreclosures, Fixer-uppers, Waterfront homes."
          },
          "advancedFilters": {
            "title": "Advanced filters",
            "type": "object",
            "description": "More filters as one JSON object. The README lists every accepted key; any other key is refused."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}