{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Scraper 💰 $1/1K – For Sale, Sold Comps & Rentals",
    "description": "Scrape Redfin homes for sale, recently sold comps and rentals in any US city, ZIP or county. A whole metro in one request, with price, beds, baths, sqft, price per sqft, lot size, photos, MLS# and sold date. Monitoring mode returns only new listings. No login.",
    "version": "0.0",
    "x-build-id": "sW6NiiKFBoaLTsGgz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lukass~redfin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lukass-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/lukass~redfin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lukass-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/lukass~redfin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lukass-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": {
          "startUrls": {
            "title": "Redfin search URLs",
            "type": "array",
            "description": "Redfin search URLs, e.g. https://www.redfin.com/city/16163/WA/Seattle. Filters in the URL (price, beds, baths, size, property type, year built, lot size, HOA, sort, sold window) are applied too, so you can paste a filtered search straight from your browser. City and county URLs need no browser, which makes them the fastest and cheapest option.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "location": {
            "title": "Or search by location",
            "type": "string",
            "description": "A city, ZIP code, neighborhood or address to search for, e.g. \"Philadelphia\". Only used when no start URLs are given. Slower and more expensive than a start URL, because Redfin's location lookup may require a browser."
          },
          "category": {
            "title": "Category",
            "enum": [
              "forSale",
              "sold",
              "forRent"
            ],
            "type": "string",
            "description": "For sale, recently sold homes (sold comps, with sold price and date) or rentals. A pasted Redfin URL that is itself a rentals or sold search (/apartments-for-rent, include=sold-3mo) keeps its own category.",
            "default": "forSale"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Limit how many listings to scrape. Set to 0 for every listing in the search. Lower values also make the run cheaper — the scraper only downloads what it needs.",
            "default": 0
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new listings)",
            "type": "boolean",
            "description": "Return only listings that earlier runs of this same search have not returned, so a scheduled run pays only for new listings. For-sale searches are sorted newest first and stop at the first listing seen before. Changing the URLs, location, category or filters starts a fresh list.",
            "default": false
          },
          "includeDetails": {
            "title": "Include property details (extra charge)",
            "type": "boolean",
            "description": "One extra request per home for its Redfin Estimate and the comparable sales behind it, Walk/Transit/Bike Score, and parcel number (APN) with county FIPS code. Billed as a separate event per home. Not available for rentals.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only return these property types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "condo",
                "townhouse",
                "multiFamily",
                "land",
                "other",
                "coop"
              ],
              "enumTitles": [
                "House",
                "Condo",
                "Townhouse",
                "Multi-family",
                "Land",
                "Other",
                "Co-op"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest listing price to include."
          },
          "maxPrice": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest listing price to include."
          },
          "minBeds": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Fewest bedrooms to include."
          },
          "maxBeds": {
            "title": "Max bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Most bedrooms to include."
          },
          "minBaths": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Fewest bathrooms to include."
          },
          "minSqFt": {
            "title": "Min square feet",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest interior size to include."
          },
          "maxSqFt": {
            "title": "Max square feet",
            "minimum": 0,
            "type": "integer",
            "description": "Largest interior size to include."
          },
          "minYearBuilt": {
            "title": "Min year built",
            "type": "integer",
            "description": "Oldest construction year to include."
          },
          "maxYearBuilt": {
            "title": "Max year built",
            "type": "integer",
            "description": "Newest construction year to include."
          },
          "minLotSize": {
            "title": "Min lot size (sq ft)",
            "type": "integer",
            "description": "Smallest lot to include, in square feet (1 acre = 43,560 sq ft)."
          },
          "maxLotSize": {
            "title": "Max lot size (sq ft)",
            "type": "integer",
            "description": "Largest lot to include, in square feet."
          },
          "maxHoa": {
            "title": "Max HOA dues ($/month)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest monthly HOA dues to include. 0 returns only homes without HOA dues."
          },
          "soldWithinDays": {
            "title": "Sold within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "With 'Recently sold': how far back to go, e.g. 30, 90 (default), 365, 1825. With 'For sale': also mixes in a few recently sold homes."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "oldest",
              "priceAsc",
              "priceDesc",
              "sqftDesc",
              "pricePerSqftAsc"
            ],
            "type": "string",
            "description": "Order Redfin returns listings in. Matters when combined with a maximum result count.",
            "default": "relevance"
          },
          "proxyConfig": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Redfin blocks datacenter IPs on its pages — use the RESIDENTIAL group if searching by location.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}