{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper – Sale, Rent & Sold Listings",
    "description": "Scrape Realtor.com homes for sale, for rent and recently sold by city, ZIP, county, URL or property ID. Get price, beds, baths, sqft, year built, HOA, agent phone & email, MLS, schools, tax history, estimates and photos. No login, no browser. From $1.50/1K.",
    "version": "0.0",
    "x-build-id": "XkjBCynDyLjubTgUf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lukass~realtor-com/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lukass-realtor-com",
        "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/lukass~realtor-com/runs": {
      "post": {
        "operationId": "runs-sync-lukass-realtor-com",
        "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/lukass~realtor-com/run-sync": {
      "post": {
        "operationId": "run-sync-lukass-realtor-com",
        "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": {
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "A single location to scrape, in plain text - a city (`Austin, TX`), ZIP code (`78701`), county (`Travis County, TX`) or state (`Texas`). Resolved by Realtor.com's own search. Leave empty if you use **Locations**, **Realtor.com URLs** or **Property IDs** instead."
          },
          "locations": {
            "title": "📍 Locations (multiple)",
            "type": "array",
            "description": "Several locations to scrape in one run - each a city, ZIP, county or state. Every entry is searched with the same filters and listing type.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "📮 ZIP codes",
            "type": "array",
            "description": "US ZIP codes to scrape. An alias for **Locations** kept for the incremental ZIP-sweep workflow; each ZIP is searched the same way.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Realtor.com URLs",
            "type": "array",
            "description": "Realtor.com search or property URLs. A **search URL** (`/realestateandhomes-search/Austin_TX`) is turned back into a location search. A **property URL** (`/realestateandhomes-detail/…_M1234-56789`) is fetched directly by its ID. Filters below apply to search URLs too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyIds": {
            "title": "🆔 Property IDs",
            "type": "array",
            "description": "Realtor.com property IDs to fetch directly (e.g. `M1234-56789` or the numeric `property_id`). These skip the search entirely.",
            "items": {
              "type": "string"
            }
          },
          "zipCodesDatasetId": {
            "title": "🗂️ ZIP-code dataset",
            "type": "string",
            "description": "Dataset whose items hold ZIP codes (a `zip`, `postalCode` or `postal_code` field, or plain strings). For a scheduler that splits one big ZIP list across several runs - combine with the offset and limit below. Read-only."
          },
          "zipCodesOffset": {
            "title": "↪️ ZIP dataset offset",
            "minimum": 0,
            "type": "integer",
            "description": "Index of the first ZIP to take from the dataset above.",
            "default": 0
          },
          "zipCodesLimit": {
            "title": "🔢 ZIP dataset limit",
            "minimum": 1,
            "type": "integer",
            "description": "How many ZIPs to take from the dataset above. Empty means all of them from the offset onwards."
          },
          "searchType": {
            "title": "🏷️ Listing type",
            "enum": [
              "for_sale",
              "new_construction",
              "for_rent",
              "sold",
              "off_market"
            ],
            "type": "string",
            "description": "Which listings to scrape. **New construction** is for-sale homes and builder plans flagged as new. **Off market** is homes not currently listed (with last sale, estimates and history when details are on).",
            "default": "for_sale"
          },
          "priceMin": {
            "title": "💰 Min price",
            "type": "integer",
            "description": "Lowest price to include. For **For rent** this is the monthly rent."
          },
          "priceMax": {
            "title": "💰 Max price",
            "type": "integer",
            "description": "Highest price to include."
          },
          "bedsMin": {
            "title": "🛏️ Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Fewest bedrooms."
          },
          "bedsMax": {
            "title": "🛏️ Max bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Most bedrooms."
          },
          "bathsMin": {
            "title": "🛁 Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Fewest bathrooms."
          },
          "bathsMax": {
            "title": "🛁 Max bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Most bathrooms."
          },
          "sqftMin": {
            "title": "📐 Min living area (sq ft)",
            "type": "integer",
            "description": "Smallest interior size in square feet."
          },
          "sqftMax": {
            "title": "📐 Max living area (sq ft)",
            "type": "integer",
            "description": "Largest interior size in square feet."
          },
          "lotSqftMin": {
            "title": "🌳 Min lot size (sq ft)",
            "type": "integer",
            "description": "Smallest lot in square feet. 1 acre = 43,560 sq ft."
          },
          "lotSqftMax": {
            "title": "🌳 Max lot size (sq ft)",
            "type": "integer",
            "description": "Largest lot in square feet."
          },
          "yearBuiltMin": {
            "title": "📅 Built in or after",
            "minimum": 1700,
            "type": "integer",
            "description": "Oldest year built to include."
          },
          "yearBuiltMax": {
            "title": "📅 Built in or before",
            "minimum": 1700,
            "type": "integer",
            "description": "Newest year built to include."
          },
          "hoaFeeMax": {
            "title": "🏛️ Max HOA fee (monthly)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest monthly HOA fee. Homes with no HOA are kept."
          },
          "noHoaFee": {
            "title": "🚫 No HOA only",
            "type": "boolean",
            "description": "Only homes with no HOA fee.",
            "default": false
          },
          "propertyTypes": {
            "title": "🏘️ Property types",
            "type": "array",
            "description": "Property types to include. Empty means every type.",
            "items": {
              "type": "string",
              "enum": [
                "single_family",
                "multi_family",
                "condos",
                "townhomes",
                "mobile",
                "farm",
                "land",
                "coop"
              ],
              "enumTitles": [
                "🏡 Single family",
                "🏬 Multi-family",
                "🏢 Condos",
                "🏘️ Townhomes",
                "🚚 Mobile",
                "🚜 Farm / ranch",
                "🌳 Land",
                "🏙️ Co-op"
              ]
            }
          },
          "features": {
            "title": "✨ Must-have features",
            "type": "array",
            "description": "Only homes with **all** of these features, as tagged on Realtor.com. Empty means no feature filter.",
            "items": {
              "type": "string",
              "enum": [
                "swimming_pool",
                "community_swimming_pool",
                "spa_or_hot_tub",
                "garage_1_or_more",
                "garage_2_or_more",
                "garage_3_or_more",
                "carport",
                "rv_or_boat_parking",
                "waterfront",
                "view",
                "lake_view",
                "river_view",
                "ocean_view",
                "city_view",
                "golf_course_view",
                "single_story",
                "two_or_more_stories",
                "basement",
                "fireplace",
                "central_air",
                "hardwood_floors",
                "open_floor_plan",
                "den_or_office",
                "game_room",
                "family_room",
                "dining_room",
                "laundry_room",
                "washer_dryer",
                "big_yard",
                "corner_lot",
                "cul_de_sac",
                "guest_house",
                "elevator",
                "energy_efficient",
                "solar_panels",
                "new_roof",
                "fixer_upper",
                "gated_community",
                "community_security_features",
                "community_clubhouse",
                "community_park",
                "community_golf",
                "tennis_court"
              ],
              "enumTitles": [
                "Private pool",
                "Community pool",
                "Spa or hot tub",
                "Garage (1+)",
                "Garage (2+)",
                "Garage (3+)",
                "Carport",
                "RV or boat parking",
                "Waterfront",
                "Any view",
                "Lake view",
                "River view",
                "Ocean view",
                "City view",
                "Golf course view",
                "Single story",
                "Two or more stories",
                "Basement",
                "Fireplace",
                "Central air",
                "Hardwood floors",
                "Open floor plan",
                "Den or office",
                "Game room",
                "Family room",
                "Dining room",
                "Laundry room",
                "Washer dryer",
                "Big yard",
                "Corner lot",
                "Cul-de-sac",
                "Guest house",
                "Elevator",
                "Energy efficient",
                "Solar panels",
                "New roof",
                "Fixer upper",
                "Gated community",
                "Community security",
                "Community clubhouse",
                "Community park",
                "Golf community",
                "Tennis court"
              ]
            }
          },
          "keywords": {
            "title": "🔤 Keywords",
            "type": "array",
            "description": "Words the listing must mention, e.g. `pool`, `ADU`, `solar`. Matched by Realtor.com's own keyword search.",
            "items": {
              "type": "string"
            }
          },
          "onlyWith": {
            "title": "✅ Only listings with",
            "type": "array",
            "description": "Narrow to listings that have each of these.",
            "items": {
              "type": "string",
              "enum": [
                "foreclosure",
                "virtual_tour",
                "matterport_3d"
              ],
              "enumTitles": [
                "🏚️ Foreclosure",
                "🎥 Virtual tour",
                "🧊 3D tour (Matterport)"
              ]
            }
          },
          "pendingContingent": {
            "title": "⏳ Pending & contingent",
            "enum": [
              "include",
              "exclude",
              "only_pending",
              "only_contingent"
            ],
            "type": "string",
            "description": "For-sale searches include homes under contract by default. Exclude them, or get only those. Ignored for other listing types.",
            "default": "include"
          },
          "petsAllowed": {
            "title": "🐾 Pets allowed (rentals)",
            "type": "array",
            "description": "Rentals that allow these pets. Only used with **For rent**.",
            "items": {
              "type": "string",
              "enum": [
                "cats",
                "dogs"
              ],
              "enumTitles": [
                "🐈 Cats",
                "🐕 Dogs"
              ]
            }
          },
          "listedWithinDays": {
            "title": "🆕 Listed in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings added within this many days."
          },
          "priceReducedWithinDays": {
            "title": "📉 Price reduced in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings whose price dropped within this many days."
          },
          "openHouseWithinDays": {
            "title": "🚪 Open house in the next N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings with an open house scheduled between today and this many days ahead."
          },
          "soldWithinDays": {
            "title": "💵 Sold in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only homes sold within this many days. Only used with **Recently sold**."
          },
          "radiusMiles": {
            "title": "📏 Expand search radius (miles)",
            "minimum": 1,
            "type": "integer",
            "description": "Widen each location by this many miles around it."
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "newest",
              "price_low",
              "price_high",
              "price_reduced",
              "sqft",
              "lot_size",
              "most_beds",
              "most_photos",
              "sold_date"
            ],
            "type": "string",
            "description": "Order the results are requested in.",
            "default": "relevance"
          },
          "maxUpdatedHoursAgo": {
            "title": "🕗 Only listings updated in the last N hours",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only properties touched within this window - the incremental mode for a scraper scheduled several times a day. Empty scrapes everything regardless of age."
          },
          "splitLargeSearches": {
            "title": "🧩 Go past 10,000 results per search",
            "type": "boolean",
            "description": "Realtor.com returns at most 10,000 results per search. With this on, a bigger search (a large city, a state) is split into price ranges automatically so you get all of it. Listings with no price can't be reached by a price range and are skipped in split searches. Not needed when **Limit the number of items** is 10,000 or less.",
            "default": true
          },
          "fetchDetails": {
            "title": "🔬 Fetch full property details",
            "type": "boolean",
            "description": "Request each property's own record instead of only what the search result carries. Adds year built, HOA, full agent contacts (email, phone, license, office), buyer's agent on sold homes, price & sale history, tax history, value estimates from 3 providers, mortgage estimate, local market medians, assigned schools, building permits, flood & noise risk and the full feature list. One extra request per property. Billed as a with-details property ($3.00 / 1,000); turn off for a fast, cheap sweep ($1.50 / 1,000).",
            "default": true
          },
          "maxItems": {
            "title": "🔢 Limit the number of items",
            "minimum": 1,
            "type": "integer",
            "description": "How many properties to scrape. Every returned property is billed, so this caps run cost. Empty scrapes everything the input covers."
          },
          "maxConcurrency": {
            "title": "⚡ Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "How many requests run in parallel.",
            "default": 10
          },
          "targetDatasetId": {
            "title": "📦 Target dataset",
            "type": "string",
            "description": "Push results into this dataset instead of the run's own. Lets several parallel runs of a split ZIP list write into one place."
          },
          "schedulerTaskId": {
            "title": "⏰ Scheduler task ID",
            "type": "string",
            "description": "Task to start once the crawl finishes - the scheduler that checks whether the other slices of the same fan-out are done. Empty starts nothing."
          },
          "proxy": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Realtor.com's mobile API needs no credentials, but sustained traffic from one datacenter IP eventually gets blocked. US residential proxies are recommended for large runs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "debugLog": {
            "title": "🐛 Debug log",
            "type": "boolean",
            "description": "Log every request and page. Turn on when a run returns fewer results than expected.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}