{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Listings Scraper",
    "description": "Redfin Listings Scraper SD - Redfin Listings Scraper is a real estate data tool that extracts public Redfin listings for sale, sold or for rent by search URL, city, ZIP or address: price, beds, baths, sqft, MLS status and photos, plus optional Redfin Estimate, price history, schools and walk scores.",
    "version": "1.0",
    "x-build-id": "s4OrOeWozXN1wDEEr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~redfin-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-redfin-listings-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/neuro-scraper~redfin-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-redfin-listings-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/neuro-scraper~redfin-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-redfin-listings-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": {
          "searchUrls": {
            "title": "Redfin search URLs",
            "type": "array",
            "description": "Redfin search pages copied from your browser, with any filters you set there: city (https://www.redfin.com/city/30818/TX/Austin), ZIP (https://www.redfin.com/zipcode/78701), neighborhood, county, or a filtered page (.../filter/property-type=house,min-beds=3). Rentals pages (.../apartments-for-rent) work too. Home URLs given here are scraped as single properties.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "One per line: a city and state (Austin, TX), a neighborhood, a county or a ZIP code - anything you would type into Redfin's search box. Each is looked up with Redfin's own location search and scraped like a search URL.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "US ZIP codes, one per line (e.g. 78701). Each opens https://www.redfin.com/zipcode/<ZIP>.",
            "items": {
              "type": "string"
            }
          },
          "propertyUrls": {
            "title": "Property URLs (single homes)",
            "type": "array",
            "description": "Redfin home pages, e.g. https://www.redfin.com/TX/Austin/12409-Capella-Trl-78732/home/31998273. Each returns one detailed row (Redfin Estimate, price history, schools, walk scores, flood risk, all photos).",
            "items": {
              "type": "string"
            }
          },
          "addresses": {
            "title": "Street addresses",
            "type": "array",
            "description": "US street addresses, one per line (e.g. 12409 Capella Trl, Austin, TX). Each is matched with Redfin's location search and returned as one detailed property row.",
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "for_sale",
              "sold",
              "for_rent"
            ],
            "type": "string",
            "description": "Which listings to collect for the search URLs, locations and ZIP codes. 'For sale' keeps the filters of a pasted URL as they are; 'Recently sold' uses the window below; 'For rent' opens the area's rentals page.",
            "default": "for_sale"
          },
          "soldWithinDays": {
            "title": "Sold within (days)",
            "enum": [
              "7",
              "30",
              "90",
              "180",
              "365",
              "1095"
            ],
            "type": "string",
            "description": "Only used with listing type 'Recently sold': how far back the sales go.",
            "default": "90"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these property types (for-sale and sold searches). Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "condo",
                "townhouse",
                "multi-family",
                "land",
                "other",
                "manufactured",
                "co-op"
              ],
              "enumTitles": [
                "House",
                "Condo",
                "Townhouse",
                "Multi-family",
                "Land",
                "Other",
                "Manufactured",
                "Co-op"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest list / sold price (monthly rent for rentals), e.g. 300000. Empty = no minimum."
          },
          "maxPrice": {
            "title": "Maximum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest list / sold price (monthly rent for rentals), e.g. 800000. Empty = no maximum."
          },
          "minBeds": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "e.g. 3. Empty = any."
          },
          "maxBeds": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "e.g. 5. Empty = any."
          },
          "minBaths": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "e.g. 2. Empty = any."
          },
          "maxBaths": {
            "title": "Maximum bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "e.g. 3. Empty = any."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "newest",
              "most-recently-sold",
              "price-low-high",
              "price-high-low"
            ],
            "type": "string",
            "description": "Order in which Redfin returns the homes of a for-sale or sold search (matters when Max results is smaller than the area).",
            "default": "recommended"
          },
          "lat": {
            "title": "Latitude (map area)",
            "type": "string",
            "description": "Optional, with Longitude and Radius: keeps only homes within the radius of this point, e.g. 30.2672. Redfin's map search is anchored to an area, so also give the city / ZIP / search URL that contains the point (Redfin returns nothing for a map box outside that area - measured)."
          },
          "lng": {
            "title": "Longitude (map area)",
            "type": "string",
            "description": "Optional, with Latitude: e.g. -97.7431."
          },
          "radius": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Radius around Latitude/Longitude. The Actor opens Redfin's map box around the point (viewport filter) and drops homes outside the circle.",
            "default": 5
          },
          "includePropertyDetails": {
            "title": "Include full property details",
            "type": "boolean",
            "description": "Opens every home's Redfin page for the Redfin Estimate, rent estimate, price history, tax record, schools, walk/bike scores, flood and fire risk, views and favorites, listing agent and broker name, amenities and all full-size photos. One extra page per home (slower).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many listings in total. Redfin returns 350 homes per page; the Actor follows the page offset to the end of each search (measured 3,500+ deep in Austin).",
            "default": 50
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit for each search URL / location / ZIP code. 0 = no per-search limit (only Max results applies).",
            "default": 0
          },
          "searchResultsDatasetId": {
            "title": "Dataset ID with Redfin results",
            "type": "string",
            "description": "Optional: the ID of an Apify dataset holding earlier Redfin rows (a 'url' column with home URLs). Each home is re-scraped with full details."
          },
          "urlsFromFile": {
            "title": "Import URLs from a file",
            "type": "string",
            "description": "Optional: a link to a plain-text or CSV file with one Redfin URL per line (search pages or home pages), e.g. a published Google Sheet CSV."
          },
          "monitorMode": {
            "title": "Monitoring mode - only new and changed",
            "type": "boolean",
            "description": "Remembers every home it returns (in the named key-value store below) and on later runs returns only homes that are new or whose price or status changed. Use it with a schedule.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Name of the key-value store that keeps the monitoring memory. Use a different name per saved search.",
            "default": "redfin-monitor"
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Writes every request and page decision to the log.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Redfin answers US residential IPs (the default); other countries get an AWS WAF CAPTCHA, which this Actor never solves. A blocked request is retried on a new IP.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}