{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper - Properties, Prices & Agent Leads",
    "description": "Scrape Realtor.com for-sale, for-rent & sold listings — prices, beds/baths, sqft, photos, MLS, geo, schools, price & tax history — plus deduped real-estate agent & office leads with email, phone & website. Keyless, no browser. Filter by location, price & type; monitor new listings & price drops.",
    "version": "0.1",
    "x-build-id": "0BmrHpblihFI8gPrY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~realtor-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-realtor-com-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/scrapesage~realtor-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-realtor-com-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/scrapesage~realtor-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-realtor-com-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": [
          "outputType"
        ],
        "properties": {
          "outputType": {
            "title": "What to scrape",
            "enum": [
              "search",
              "agentLeads",
              "propertyDetail"
            ],
            "type": "string",
            "description": "search = property listings (the headline mode). agentLeads = deduped real-estate agent & office contact leads sourced from the matching listings. propertyDetail = full property records by numeric property_id.",
            "default": "search"
          },
          "searchType": {
            "title": "Listing type",
            "enum": [
              "for_sale",
              "for_rent",
              "sold"
            ],
            "type": "string",
            "description": "Which market to search: homes for sale, rentals, or recently sold homes (great for comps & sold-price history).",
            "default": "for_sale"
          },
          "location": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search — one or more of: \"City, ST\" (e.g. \"Austin, TX\"), a 5-digit ZIP (\"78704\"), a county or a full state name (\"Vermont\"). Each location is searched independently. Leave empty if you use Search URLs.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Paste Realtor.com search pages to scrape directly — for-sale (realestateandhomes-search/...), rentals (apartments/...) or sold (soldhomeprices/...). The listing type is taken from the URL. Works alongside the filters below.",
            "items": {
              "type": "string"
            }
          },
          "propertyIds": {
            "title": "Property IDs (propertyDetail mode)",
            "type": "array",
            "description": "For outputType = propertyDetail: numeric Realtor.com property_id values (the number you get back in the dataset, e.g. 8231543993).",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Filter by property type. Accepts friendly names: house / single_family, condo, townhome, multi_family, duplex, mobile, land, farm, coop. Leave empty for all types.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Price — min (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this value. For rentals this is monthly rent."
          },
          "priceMax": {
            "title": "Price — max (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this value. For rentals this is monthly rent."
          },
          "bedsMin": {
            "title": "Beds — min",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms."
          },
          "bedsMax": {
            "title": "Beds — max",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of bedrooms."
          },
          "bathsMin": {
            "title": "Baths — min",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bathrooms."
          },
          "sqftMin": {
            "title": "Square feet — min",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum interior square footage."
          },
          "sqftMax": {
            "title": "Square feet — max",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum interior square footage."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevant",
              "newest",
              "price_low",
              "price_high",
              "sqft",
              "lot_size",
              "sold_date"
            ],
            "type": "string",
            "description": "Result order. \"newest\" is ideal for monitoring fresh inventory; \"sold_date\" for recent comps.",
            "default": "relevant"
          },
          "includePropertyDetails": {
            "title": "Include full property details",
            "type": "boolean",
            "description": "In search mode, fetch each property's full record (complete feature list, assigned schools with ratings, full listing & price history, multi-year tax history, photo gallery). Off = faster & cheaper (the listing record is already rich). When on, each record is billed as a property detail.",
            "default": false
          },
          "includeAgentLeads": {
            "title": "Also output agent leads",
            "type": "boolean",
            "description": "In search / propertyDetail mode, also emit one deduped agent/office lead per listing agent (name, email, phone, website, brokerage, lead score). The dedicated \"Agent leads\" mode outputs only leads.",
            "default": false
          },
          "maxPhotos": {
            "title": "Max photos per property",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Cap on photo URLs collected per property in detail records.",
            "default": 25
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Overall cap on records (listings or leads) collected for this run.",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember what was emitted in previous runs (in a named key-value store) and output only NEW or CHANGED records — new listings, price drops/rises, status changes (and only-new agent leads). Each record carries a monitorReason. Perfect for scheduled deal-flow & price-watch alerts. Works independently of Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitor memory. Use a distinct key per saved search so separate watch lists don't share state.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Parallel requests. The actor rotates a fresh proxy IP per request; lower this if you hit throttling.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Apify Proxy (datacenter) is recommended and enabled by default — Realtor.com's data API is clean from datacenter IPs with fresh-session rotation.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}