{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper (For Sale, Rent, Sold, Price Changes)",
    "description": "Realtor.com homes for sale, for rent and recently sold by city, ZIP or link: price, beds, baths, sqft, address, photos, price and tax history, schools, flood risk and listing office. $1.50 per 1,000 listings. Flags new listings and price changes. No login.",
    "version": "0.1",
    "x-build-id": "HUfgnDy6tbjmzzrt0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~realtor-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-realtor-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/locaihost~realtor-scraper/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-realtor-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/locaihost~realtor-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-realtor-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search in the US: a city and state (Austin, TX), a ZIP code (78701), a county (Travis County, TX), a neighborhood or a whole state (TX). Each line is its own search. Realtor.com search links and listing links work here too.",
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "What to look for",
            "enum": [
              "for_sale",
              "for_rent",
              "sold"
            ],
            "type": "string",
            "description": "Homes for sale, for rent, or recently sold. Search links carry their own type.",
            "default": "for_sale"
          },
          "maxListings": {
            "title": "Listings per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many listings to return for each location or search link, newest first unless you choose another order. You pay only for the listings returned. Realtor.com shows at most 10,000 results per search.",
            "default": 50
          },
          "includeDetails": {
            "title": "Full listing details",
            "type": "boolean",
            "description": "Adds each home's own record: description, features, price and tax history, schools, flood and fire risk, estimates, listing agent and office. Same price; turn off for faster runs with the search fields only.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Return only listings this saved task (or this exact input) has not returned before. Ideal for daily schedules.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In US dollars. Monthly rent on rental searches."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In US dollars. Monthly rent on rental searches."
          },
          "minBeds": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "0 includes studios."
          },
          "maxBeds": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "0 means studios only."
          },
          "minBaths": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Full and half bathrooms together."
          },
          "propertyTypes": {
            "title": "Home types",
            "type": "array",
            "description": "Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "condo",
                "townhome",
                "multi-family",
                "mobile",
                "farm",
                "land",
                "apartment",
                "co-op"
              ],
              "enumTitles": [
                "House",
                "Condo",
                "Townhome",
                "Multi-family",
                "Mobile or manufactured",
                "Farm or ranch",
                "Land",
                "Apartment",
                "Co-op"
              ]
            }
          },
          "minSqft": {
            "title": "Minimum living area (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Living area in square feet."
          },
          "maxSqft": {
            "title": "Maximum living area (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Living area in square feet."
          },
          "minLotSqft": {
            "title": "Minimum lot size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "One acre is 43,560 sq ft."
          },
          "maxLotSqft": {
            "title": "Maximum lot size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "One acre is 43,560 sq ft."
          },
          "minYearBuilt": {
            "title": "Built in or after",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Year built."
          },
          "maxYearBuilt": {
            "title": "Built in or before",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Year built."
          },
          "maxHoaFee": {
            "title": "Maximum HOA fee",
            "minimum": 0,
            "type": "integer",
            "description": "Monthly, in US dollars."
          },
          "withinDays": {
            "title": "Listed (or sold) within days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings added in the last N days; on sold searches, homes sold in the last N days."
          },
          "radiusMiles": {
            "title": "Search radius (miles)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Widens a city or ZIP search by this many miles."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words the listing must mention, such as pool, basement or waterfront.",
            "items": {
              "type": "string"
            }
          },
          "openHouseOnly": {
            "title": "Open houses only",
            "type": "boolean",
            "description": "For-sale searches: only homes with an open house coming up."
          },
          "priceReducedOnly": {
            "title": "Price reduced only",
            "type": "boolean",
            "description": "For-sale searches: only homes whose price was cut in the last 30 days."
          },
          "hidePending": {
            "title": "Hide pending and contingent",
            "type": "boolean",
            "description": "For-sale searches: leave out homes already under contract."
          },
          "newConstructionOnly": {
            "title": "New construction only",
            "type": "boolean",
            "description": "Only newly built homes."
          },
          "foreclosureOnly": {
            "title": "Foreclosures only",
            "type": "boolean",
            "description": "Only foreclosure listings."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "price-low",
              "price-high",
              "largest",
              "lot-largest",
              "price-reduced",
              "recently-updated"
            ],
            "type": "string",
            "description": "The order listings are read in. Search links keep their own order.",
            "default": "newest"
          },
          "onlyPriceChanges": {
            "title": "Only new listings and price changes",
            "type": "boolean",
            "description": "Like Only new listings, and also returns a known listing again when its price changed since this task last returned it.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty to use our own US route. Set a proxy only if you want requests to go through yours."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}