{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Scraper — Listings, Properties & Agents",
    "description": "Scrape Redfin listings: search any location or map box with price, bed, bath, home-type, size, lot, year-built and days-on-market filters, plus full property detail and agent profiles.",
    "version": "1.0",
    "x-build-id": "6szNiJPN70f8MxiYM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrape.badger~redfin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrape.badger-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/scrape.badger~redfin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrape.badger-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/scrape.badger~redfin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrape.badger-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "Search",
              "Get Property",
              "Get Agent",
              "Autocomplete",
              "List Markets"
            ],
            "type": "string",
            "description": "Which Redfin call to run. Each mode uses a different subset of the fields below — the run tells you if a required one is missing.",
            "default": "Search"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City/state, ZIP, address or neighborhood (required). <b>Required for:</b> Search."
          },
          "page": {
            "title": "Page",
            "type": "integer",
            "description": "Page number (1-20). Defaults to 1. <b>Used by:</b> Search.",
            "default": 1
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "One of relevant, newest, price_low_to_high, price_high_to_low, square_feet, lot_size, price_per_sqft, beds, baths. <b>Used by:</b> Search."
          },
          "price_min": {
            "title": "Price min",
            "type": "integer",
            "description": "Minimum price filter. <b>Used by:</b> Search."
          },
          "price_max": {
            "title": "Price max",
            "type": "integer",
            "description": "Maximum price filter. <b>Used by:</b> Search."
          },
          "beds_min": {
            "title": "Beds min",
            "type": "integer",
            "description": "Minimum number of bedrooms. <b>Used by:</b> Search."
          },
          "baths_min": {
            "title": "Baths min",
            "type": "number",
            "description": "Minimum number of bathrooms. <b>Used by:</b> Search."
          },
          "home_type": {
            "title": "Home type",
            "type": "string",
            "description": "One of house, condo, townhouse, multi_family, land, other, mobile, coop. <b>Used by:</b> Search."
          },
          "sqft_min": {
            "title": "Sqft min",
            "type": "integer",
            "description": "Minimum living area (square feet). <b>Used by:</b> Search."
          },
          "sqft_max": {
            "title": "Sqft max",
            "type": "integer",
            "description": "Maximum living area (square feet). <b>Used by:</b> Search."
          },
          "lot_min": {
            "title": "Lot min",
            "type": "integer",
            "description": "Minimum lot size (square feet). <b>Used by:</b> Search."
          },
          "lot_max": {
            "title": "Lot max",
            "type": "integer",
            "description": "Maximum lot size (square feet). <b>Used by:</b> Search."
          },
          "year_built_min": {
            "title": "Year built min",
            "type": "integer",
            "description": "Minimum year built. <b>Used by:</b> Search."
          },
          "year_built_max": {
            "title": "Year built max",
            "type": "integer",
            "description": "Maximum year built. <b>Used by:</b> Search."
          },
          "max_days_on_market": {
            "title": "Max days on market",
            "type": "integer",
            "description": "Maximum days on market. <b>Used by:</b> Search."
          },
          "north": {
            "title": "North",
            "type": "number",
            "description": "North map bound. Optional bbox override. <b>Used by:</b> Search."
          },
          "south": {
            "title": "South",
            "type": "number",
            "description": "South map bound. <b>Used by:</b> Search."
          },
          "east": {
            "title": "East",
            "type": "number",
            "description": "East map bound. <b>Used by:</b> Search."
          },
          "west": {
            "title": "West",
            "type": "number",
            "description": "West map bound. <b>Used by:</b> Search."
          },
          "property_id": {
            "title": "Property id",
            "type": "string",
            "description": "The Redfin property id. <b>Used by:</b> Get Property."
          },
          "url": {
            "title": "Url",
            "type": "string",
            "description": "Full Redfin home URL. <b>Used by:</b> Get Property, Get Agent."
          },
          "agent_id": {
            "title": "Agent id",
            "type": "string",
            "description": "The Redfin agent slug. <b>Used by:</b> Get Agent."
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Partial location — city, ZIP, address, or neighborhood. <b>Required for:</b> Autocomplete."
          },
          "max_items": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many records. The actor keeps paging until it hits this number or the site runs out of results. Each page is one charged event.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}