{
  "openapi": "3.0.1",
  "info": {
    "title": "🏠 Redfin Motivated Seller & Price Drop Scraper",
    "description": "Real estate investor & wholesaler deal finder. Scrapes Redfin for motivated sellers, consecutive price cuts, high DOM, distress keywords, and Redfin Estimate equity spreads.",
    "version": "0.0",
    "x-build-id": "AGoypz6hQl9P3s8de"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_studio~redfin-motivated-seller-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_studio-redfin-motivated-seller-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/automation_studio~redfin-motivated-seller-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_studio-redfin-motivated-seller-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/automation_studio~redfin-motivated-seller-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_studio-redfin-motivated-seller-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": "📍 Target Market (City, State or ZIP)",
            "type": "string",
            "description": "Target city and state (e.g. 'Dallas, TX', 'Atlanta, GA', 'Phoenix, AZ') or specific 5-digit ZIP code (e.g. '75201').",
            "default": "Dallas, TX"
          },
          "minPriceDropPercent": {
            "title": "📉 Minimum Price Cut Percentage (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Filter for properties where price cuts equal or exceed this percentage of original listing price (e.g. 5 = at least 5% off original price).",
            "default": 5
          },
          "minPriceDropsCount": {
            "title": "🔢 Minimum Consecutive Price Cuts",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of separate price drops recorded on Redfin MLS (e.g. 1 = at least one price drop, 2 = multiple consecutive drops indicating increasing seller urgency).",
            "default": 1
          },
          "minDaysOnMarket": {
            "title": "📅 Minimum Days on Market (DOM)",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Target stale inventory listed for at least this many days (e.g. 14 = listed for 2 weeks or more). Set to 0 to include fresh price cuts.",
            "default": 14
          },
          "distressKeywordsOnly": {
            "title": "🚨 Require Distress Keywords in Remarks",
            "type": "boolean",
            "description": "When enabled, only returns properties whose listing remarks contain high-intent distress keywords (e.g. 'must sell', 'as-is', 'estate sale', 'tlc', 'cash only', 'probate').",
            "default": false
          },
          "customKeywords": {
            "title": "🔍 Custom Keywords / Whitelist",
            "type": "array",
            "description": "Optional list of additional keywords to scan in listing remarks (e.g. 'code violation', 'divorce', 'handyman', 'foundation issue').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minDealScore": {
            "title": "⭐ Minimum Deal Score (0 - 100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Algorithmic Deal Score index based on price cut magnitude (+35), distress keywords (+25), stale DOM (+20), and Redfin Estimate equity spread (+20). Only deals meeting or exceeding this score are exported.",
            "default": 35
          },
          "maxResults": {
            "title": "📊 Max Deals to Extract",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of qualified motivated seller deals to collect per run.",
            "default": 40
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration (Residential Recommended)",
            "type": "object",
            "description": "Redfin enforces Akamai bot detection. Apify Residential Proxies are strongly recommended for reliable extraction.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "webhookUrl": {
            "title": "🔔 Deal Alert Webhook (Discord / Slack)",
            "type": "string",
            "description": "Optional: Discord or Slack incoming webhook URL to receive instant alert cards when high-conviction deals (Score >= 75) are identified."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}