{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Property Search Scraper",
    "description": "Scrape Redfin property search listings with prices, beds, baths, square footage, addresses, coordinates, URLs, MLS numbers, and listing IDs.",
    "version": "1.0",
    "x-build-id": "G1s5pWq96XNyC7SYX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrappa~redfin-property-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrappa-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/thescrappa~redfin-property-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrappa-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/thescrappa~redfin-property-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrappa-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",
        "properties": {
          "region_id": {
            "title": "Region ID",
            "minimum": 1,
            "type": "integer",
            "description": "Redfin region identifier from Scrappa's /api/redfin/locations endpoint. Example: 16163 for Seattle.",
            "default": 16163
          },
          "region_type": {
            "title": "Region Type",
            "enum": [
              "1",
              "2",
              "4",
              "5",
              "6"
            ],
            "type": "string",
            "description": "Redfin region type: 1=neighborhood, 2=ZIP, 4=postal code, 5=county, 6=city.",
            "default": "6"
          },
          "market": {
            "title": "Market",
            "maxLength": 30,
            "type": "string",
            "description": "Redfin market identifier from the locations endpoint, such as seattle, socal, dc, or nyc.",
            "default": "seattle"
          },
          "min_price": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price."
          },
          "max_price": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price."
          },
          "num_beds": {
            "title": "Minimum Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms."
          },
          "num_baths": {
            "title": "Minimum Bathrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Minimum number of bathrooms."
          },
          "property_types": {
            "title": "Property Types",
            "type": "string",
            "description": "Comma-separated Redfin property type IDs from 1-8. Leave blank for all types."
          },
          "status": {
            "title": "Listing Status",
            "enum": [
              "1",
              "9",
              "130",
              "131"
            ],
            "type": "string",
            "description": "Listing status: 1=active, 9=all, 130=pending, 131=active plus pending.",
            "default": "9"
          },
          "sold_within_days": {
            "title": "Sold Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Include properties sold within this many days. Required for some sold-listing workflows."
          },
          "num_homes": {
            "title": "Results Per Search",
            "minimum": 1,
            "maximum": 450,
            "type": "integer",
            "description": "Number of listings to return for each search.",
            "default": 50
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "Results page to fetch.",
            "default": 1
          },
          "searches": {
            "title": "Batch Searches",
            "maxItems": 25,
            "type": "array",
            "description": "Run multiple Redfin region searches in one Apify run. When provided, top-level search fields are ignored.",
            "items": {
              "type": "object",
              "required": [
                "region_id",
                "region_type",
                "market"
              ],
              "properties": {
                "region_id": {
                  "title": "Region ID",
                  "type": "integer",
                  "description": "Redfin region identifier.",
                  "minimum": 1
                },
                "region_type": {
                  "title": "Region Type",
                  "type": "integer",
                  "description": "Redfin region type ID: 1, 2, 4, 5, or 6."
                },
                "market": {
                  "title": "Market",
                  "type": "string",
                  "description": "Redfin market identifier.",
                  "maxLength": 30
                },
                "min_price": {
                  "title": "Minimum Price",
                  "type": "integer",
                  "description": "Minimum listing price.",
                  "minimum": 0
                },
                "max_price": {
                  "title": "Maximum Price",
                  "type": "integer",
                  "description": "Maximum listing price.",
                  "minimum": 0
                },
                "num_beds": {
                  "title": "Minimum Bedrooms",
                  "type": "integer",
                  "description": "Minimum number of bedrooms.",
                  "minimum": 0,
                  "maximum": 10
                },
                "num_baths": {
                  "title": "Minimum Bathrooms",
                  "type": "number",
                  "description": "Minimum number of bathrooms.",
                  "minimum": 0,
                  "maximum": 10
                },
                "property_types": {
                  "title": "Property Types",
                  "type": "string",
                  "description": "Comma-separated Redfin property type IDs from 1-8."
                },
                "status": {
                  "title": "Listing Status",
                  "type": "integer",
                  "description": "Redfin listing status ID: 1, 9, 130, or 131."
                },
                "sold_within_days": {
                  "title": "Sold Within Days",
                  "type": "integer",
                  "description": "Include properties sold within this many days.",
                  "minimum": 1,
                  "maximum": 365
                },
                "num_homes": {
                  "title": "Results Per Search",
                  "type": "integer",
                  "description": "Number of listings to return for this search.",
                  "minimum": 1,
                  "maximum": 450
                },
                "page": {
                  "title": "Page",
                  "type": "integer",
                  "description": "Results page to fetch.",
                  "minimum": 1
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}