{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Scraper - Homes, Prices, Sold Data & Rent",
    "description": "Scrape Redfin homes for sale, sold or for rent by city, ZIP, address or link. Get price, beds, baths, size, year built, status, agents and photos, plus optional Redfin Estimate, price cuts, tax history, schools and risk scores. Export to JSON, CSV or Excel.",
    "version": "1.1",
    "x-build-id": "vuTUc2Tfveb726JVR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawl_craft~redfin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawl_craft-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/crawl_craft~redfin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawl_craft-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/crawl_craft~redfin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawl_craft-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🏘️ Places and Redfin links",
            "minItems": 1,
            "type": "array",
            "description": "One per line: a city (Austin, TX), ZIP code, neighborhood, county, street address, a Redfin search or map link with its filters, or a single home link. Duplicates are removed. Add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "🏷️ Category",
            "enum": [
              "forSale",
              "sold",
              "forRent"
            ],
            "type": "string",
            "description": "For sale (active listings), recently sold, or for rent. A Redfin link that is already a sold or rental search keeps its own category.",
            "default": "forSale"
          },
          "soldWithin": {
            "title": "⏳ Sold within",
            "enum": [
              "1wk",
              "1mo",
              "3mo",
              "6mo",
              "1yr",
              "2yr",
              "3yr",
              "5yr"
            ],
            "type": "string",
            "description": "Only used when the category is recently sold: how far back to look.",
            "default": "1yr"
          },
          "maxItems": {
            "title": "📊 Max homes",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total homes to return for the whole run, across all places. Use 0 for everything Redfin has.",
            "default": 10
          },
          "sortBy": {
            "title": "↕️ Sort homes by",
            "enum": [
              "relevance",
              "newest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order of the homes. Relevance is Redfin's default order.",
            "default": "relevance"
          },
          "includeDetails": {
            "title": "🔬 Deep details per home",
            "type": "boolean",
            "description": "Adds Redfin Estimate, rent estimate and yield, price cuts, price and tax history, schools, Walk/Transit/Bike Score, flood/fire/heat risk, agent data and all photos. Slower, because each home needs more data.",
            "default": false
          },
          "propertyTypes": {
            "title": "🏠 Property types",
            "type": "array",
            "description": "Keep only 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": "💵 Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in US dollars (monthly rent for rentals)."
          },
          "maxPrice": {
            "title": "💰 Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in US dollars (monthly rent for rentals)."
          },
          "minBeds": {
            "title": "🛏️ Minimum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Fewest bedrooms."
          },
          "maxBeds": {
            "title": "🛌 Maximum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Most bedrooms."
          },
          "minBaths": {
            "title": "🛁 Minimum bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Fewest bathrooms."
          },
          "minSqft": {
            "title": "📐 Minimum size",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest interior size in square feet."
          },
          "maxSqft": {
            "title": "📏 Maximum size",
            "minimum": 0,
            "type": "integer",
            "description": "Largest interior size in square feet."
          },
          "minYearBuilt": {
            "title": "🏗️ Built after",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year built, for example 2000."
          },
          "maxYearBuilt": {
            "title": "🏛️ Built before",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year built, for example 2020."
          },
          "extraFilters": {
            "title": "🧩 More filters",
            "type": "array",
            "description": "Other Redfin filters, one per line, written like Redfin's own link filters, for example has-pool, min-lot-size=0.25-acre or max-days-on-market=30. Filters Redfin does not recognise are skipped with a note.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional connection settings. By default no proxy is used.",
            "default": {
              "useApifyProxy": false
            }
          },
          "autoProxyUpgrade": {
            "title": "🔼 Upgrade the connection if Redfin blocks us",
            "type": "boolean",
            "description": "By default the run starts without a proxy. If Redfin refuses the connection, it automatically switches to Apify datacenter proxy and then residential proxy, which uses your Apify proxy credit. Turn this off to use only the connection you chose above.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}