{
  "openapi": "3.0.1",
  "info": {
    "title": "ARV & Rent Estimator from Redfin Comps - Value by Address",
    "description": "Paste US addresses and get for each: market value with a range, ARV from the Redfin comps that sold renovated, the 70% rule maximum offer, as-is value, rent, gross yield and the comps behind them. Tested on 1,486 real sales: 11.5% median error, 7.8% at high confidence. No login.",
    "version": "0.1",
    "x-build-id": "xVdXTefU1GFeDiXtS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swerve~arv-rent-estimator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swerve-arv-rent-estimator",
        "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/swerve~arv-rent-estimator/runs": {
      "post": {
        "operationId": "runs-sync-swerve-arv-rent-estimator",
        "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/swerve~arv-rent-estimator/run-sync": {
      "post": {
        "operationId": "run-sync-swerve-arv-rent-estimator",
        "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": {
          "addresses": {
            "title": "Addresses",
            "type": "array",
            "description": "One US street address per line: street, city, state ZIP. Optionally add what you know about the home after a | in any order, e.g. 3 bd | 2 ba | 1850 sqft | house | built 1995 | repairs 40000. The more you give, the tighter the comps; missing details are filled from Redfin when the home is listed or sold recently.",
            "items": {
              "type": "string"
            }
          },
          "beds": {
            "title": "Bedrooms (for lines without details)",
            "minimum": 0,
            "type": "integer",
            "description": "Applied to every address that does not state its own bedrooms."
          },
          "baths": {
            "title": "Bathrooms",
            "minimum": 0.5,
            "type": "number",
            "description": "Applied to every address that does not state its own."
          },
          "sqft": {
            "title": "Square feet",
            "minimum": 100,
            "type": "integer",
            "description": "Applied to every address that does not state its own."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "house",
              "condo",
              "townhouse",
              "multifamily",
              "land"
            ],
            "type": "string",
            "description": "Applied to every address that does not state its own. Comps are drawn from the same type.",
            "default": "any"
          },
          "repairBudget": {
            "title": "Repair budget ($)",
            "minimum": 0,
            "type": "integer",
            "description": "For the 70% rule: the maximum offer is 70% of the after-repair value minus this amount. Applied to every address that does not state its own (| repairs 40000). Leave blank to get 70% of the ARV with no repairs taken off."
          },
          "radiusMiles": {
            "title": "Comp radius (miles)",
            "minimum": 0.1,
            "maximum": 5,
            "type": "number",
            "description": "How far around each address to look for sold comps and rentals. Default 1. When fewer than 3 comps are found the search widens once (double radius, last 2 years) and the row says so.",
            "default": 1
          },
          "soldWindow": {
            "title": "Sold within",
            "enum": [
              "sold-3mo",
              "sold-6mo",
              "sold-1yr",
              "sold-2yr"
            ],
            "type": "string",
            "description": "How recent the comparable sales must be. Default: the last 12 months (recent sales still count the most; the accuracy figures in the README were measured with this setting).",
            "default": "sold-1yr"
          },
          "maxComps": {
            "title": "Comps per estimate",
            "minimum": 3,
            "maximum": 40,
            "type": "integer",
            "description": "How many of the best-matching sales to weigh. Default 12.",
            "default": 12
          },
          "includeRentEstimate": {
            "title": "Estimate rent and yield",
            "type": "boolean",
            "description": "Adds the estimated monthly rent from the rentals around the address (houses, condos, townhouses and apartment communities), the gross yield and the rent-to-value ratio. One extra request per address. On by default.",
            "default": true
          },
          "includeComps": {
            "title": "Include the comps in each row",
            "type": "boolean",
            "description": "Each row carries the sales and rentals the numbers came from, with distance, weight and the condition read from each sale's listing (renovated, needs-work, new). Turn off for a flat table.",
            "default": true
          },
          "lookupListing": {
            "title": "Check whether the home is listed for sale",
            "type": "boolean",
            "description": "Looks for the address among active Redfin listings: adds the list price, days on market and how far the list price sits from the estimate, and borrows the home's beds and square feet when you did not give them. One extra request per address.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Redfin answers US addresses only; US residential is the default. Leave as-is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountryCode": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}