{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Search Scraper",
    "description": "Search Redfin real estate listings by zip code or URL. Extract property prices, addresses, beds, baths, sqft, MLS data, agent info & listing descriptions for US & Canada. Supports for sale, sold, rent & coming soon. 20+ filters, auto-pagination, up to 350 results/page.",
    "version": "1.0",
    "x-build-id": "jbOMh7nZmfzHVtPck"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/burbn~redfin-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-burbn-redfin-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/burbn~redfin-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-burbn-redfin-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/burbn~redfin-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-burbn-redfin-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": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "Enter a 5-digit US zip code (e.g., 90210), Canadian postal-code area, or a Redfin URL to search properties.",
            "default": "90012"
          },
          "status": {
            "title": "🏷️ Listing Status",
            "enum": [
              "for_sale",
              "sold",
              "for_rent",
              "coming_soon"
            ],
            "type": "string",
            "description": "Select the listing status to search for.",
            "default": "for_sale"
          },
          "property_types": {
            "title": "🏗️ Property Types",
            "type": "string",
            "description": "Comma-separated list of property types to filter (leave empty for all). E.g., HOUSE,CONDO",
            "default": ""
          },
          "sort": {
            "title": "📊 Sort Order",
            "enum": [
              "redfin_recommended",
              "newest",
              "oldest",
              "price_low_high",
              "price_high_low",
              "beds",
              "baths",
              "sqft",
              "lot_size"
            ],
            "type": "string",
            "description": "Sort results by the selected criteria.",
            "default": "redfin_recommended"
          },
          "country_code": {
            "title": "🌍 Country",
            "enum": [
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Select the country to search properties in.",
            "default": "US"
          },
          "num_homes": {
            "title": "📦 Results Per Page",
            "minimum": 1,
            "maximum": 350,
            "type": "integer",
            "description": "Number of listings per API page (max 350). Higher values = fewer API calls.",
            "default": 40
          },
          "maxPages": {
            "title": "📄 Max Pages to Scrape",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of pages to scrape (0 = all available pages up to 100). Use to limit API calls.",
            "default": 1
          },
          "min_price": {
            "title": "💰 Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter (0 = no minimum).",
            "default": 0
          },
          "max_price": {
            "title": "💰 Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter (0 = no maximum).",
            "default": 0
          },
          "min_beds": {
            "title": "🛏️ Min Beds",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms (0 = no minimum).",
            "default": 0
          },
          "max_beds": {
            "title": "🛏️ Max Beds",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of bedrooms (0 = no maximum).",
            "default": 0
          },
          "min_baths": {
            "title": "🚿 Min Baths",
            "minimum": 0,
            "type": "number",
            "description": "Minimum number of bathrooms. Supports half-baths (e.g., 2.5). 0 = no minimum.",
            "default": 0
          },
          "min_sqft": {
            "title": "📐 Min Sqft",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum square footage (0 = no minimum).",
            "default": 0
          },
          "max_sqft": {
            "title": "📐 Max Sqft",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum square footage (0 = no maximum).",
            "default": 0
          },
          "min_lot_size": {
            "title": "🌳 Min Lot Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum lot size in square feet (0 = no minimum).",
            "default": 0
          },
          "max_lot_size": {
            "title": "🌳 Max Lot Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum lot size in square feet (0 = no maximum).",
            "default": 0
          },
          "min_year_built": {
            "title": "📅 Min Year Built",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum year built (0 = no minimum).",
            "default": 0
          },
          "max_year_built": {
            "title": "📅 Max Year Built",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum year built (0 = no maximum).",
            "default": 0
          },
          "max_hoa": {
            "title": "🏢 Max HOA ($/month)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum monthly HOA dues (0 = no maximum).",
            "default": 0
          },
          "has_pool": {
            "title": "🏊 Has Pool",
            "type": "boolean",
            "description": "Only show properties with a pool.",
            "default": false
          },
          "has_garage": {
            "title": "🅿️ Has Garage",
            "type": "boolean",
            "description": "Only show properties with a garage.",
            "default": false
          },
          "is_waterfront": {
            "title": "🌊 Waterfront",
            "type": "boolean",
            "description": "Only show waterfront properties.",
            "default": false
          },
          "time_on_market_days": {
            "title": "📅 Time on Market (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter by listings added in the last N days (0 = any time).",
            "default": 0
          },
          "sold_within_days": {
            "title": "📅 Sold Within (days)",
            "minimum": 0,
            "maximum": 1095,
            "type": "integer",
            "description": "For sold listings: only show properties sold within last N days (1-1095, 0 = no filter).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}