{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper",
    "description": "Scrape Realtor.com US real estate: homes for sale, for rent and recently sold by city, ZIP or link, full property details, similar homes, agents with phone numbers, reviews and listings.",
    "version": "0.1",
    "x-build-id": "lOe74B9uJ4zmhzptf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/happyendpoint~realtor-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-happyendpoint-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/happyendpoint~realtor-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-happyendpoint-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/happyendpoint~realtor-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-happyendpoint-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",
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "health-check",
              "search-properties",
              "search-by-url",
              "property-details",
              "similar-homes",
              "search-agents",
              "agent-profiles",
              "agent-reviews",
              "agent-listings"
            ],
            "type": "string",
            "description": "**Health check** (default) only confirms the actor is working and saves one status row. To get data, pick another operation. Start with **Search properties** for listings, or **Search agents** for real estate agents.",
            "default": "health-check"
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "for_sale",
              "for_rent",
              "sold"
            ],
            "type": "string",
            "description": "**[Search properties]** Which homes to search for.",
            "default": "for_sale"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "**[Search properties]** One or more US locations. Use a city with its state (`Austin, TX`), a ZIP code (`78704`), a county (`Travis County, TX`), a neighborhood (`Downtown, Austin, TX`) or a full address. Each location is searched in turn.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search properties, Search by URL, Search agents]** Maximum number of listings or agents to save in this run (all locations or links together). The run stops at Max Results or Max Pages, whichever comes first.",
            "default": 100
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search properties, Search by URL, Search agents]** How many result pages to load for each location or link. One page has up to 50 listings or agents. The default of 1 keeps a first run quick; raise it to get more, for example 10 pages for about 500 listings. Searches with more than 10,000 results are split by price automatically when you ask for that many.",
            "default": 1
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "newest",
              "relevant",
              "price_low",
              "price_high",
              "sqft",
              "lot_size",
              "year_built",
              "beds",
              "baths",
              "photos",
              "open_house",
              "oldest",
              "sold_date",
              "sold_price_high"
            ],
            "type": "string",
            "description": "**[Search properties, Search by URL]** Leave empty for newest listings first (most recently sold first for sold homes)."
          },
          "priceMin": {
            "title": "Min Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Lowest price in US dollars. For rentals this is the monthly rent."
          },
          "priceMax": {
            "title": "Max Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Highest price in US dollars. For rentals this is the monthly rent."
          },
          "bedsMin": {
            "title": "Min Bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]**"
          },
          "bedsMax": {
            "title": "Max Bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]**"
          },
          "bathsMin": {
            "title": "Min Bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]**"
          },
          "sqftMin": {
            "title": "Min Home Size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Smallest living area in square feet."
          },
          "sqftMax": {
            "title": "Max Home Size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Largest living area in square feet."
          },
          "lotSqftMin": {
            "title": "Min Lot Size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Smallest lot in square feet (1 acre is 43,560 sq ft)."
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "**[Search properties]** Leave empty for all types. Several types can be picked.",
            "items": {
              "type": "string",
              "enum": [
                "single_family",
                "condos",
                "townhomes",
                "multi_family",
                "mobile",
                "land",
                "farm",
                "apartment",
                "duplex_triplex",
                "coop"
              ],
              "enumTitles": [
                "House (single family)",
                "Condo",
                "Townhome",
                "Multi-family",
                "Mobile home",
                "Land",
                "Farm or ranch",
                "Apartment (rentals)",
                "Duplex or triplex",
                "Co-op"
              ]
            }
          },
          "yearBuiltMin": {
            "title": "Built After (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "**[Search properties]** For example `2000`."
          },
          "yearBuiltMax": {
            "title": "Built Before (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "**[Search properties]** For example `2020`."
          },
          "hoaFeeMax": {
            "title": "Max HOA Fee ($ per month)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search properties]** Highest monthly homeowners association fee."
          },
          "withinDays": {
            "title": "Listed or Sold in the Last (days)",
            "minimum": 1,
            "type": "integer",
            "description": "**[Search properties]** Only homes listed in the last N days (for sale, for rent) or sold in the last N days (recently sold). For example `7` for the last week."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "**[Search properties]** Words to look for in the listing description, for example `pool` or `guest house`. Several words separated by commas must all match."
          },
          "hidePendingContingent": {
            "title": "Hide pending and contingent homes",
            "type": "boolean",
            "description": "**[Search properties]** For sale only: leave out homes that already have an accepted offer."
          },
          "newConstructionOnly": {
            "title": "New construction only",
            "type": "boolean",
            "description": "**[Search properties]**"
          },
          "foreclosureOnly": {
            "title": "Foreclosures only",
            "type": "boolean",
            "description": "**[Search properties]** For sale and recently sold only."
          },
          "openHouseOnly": {
            "title": "Open houses only",
            "type": "boolean",
            "description": "**[Search properties]** Only homes with an upcoming open house."
          },
          "catsAllowed": {
            "title": "Cats allowed",
            "type": "boolean",
            "description": "**[Search properties]** Rentals only."
          },
          "dogsAllowed": {
            "title": "Dogs allowed",
            "type": "boolean",
            "description": "**[Search properties]** Rentals only."
          },
          "searchUrls": {
            "title": "Realtor.com Search Links",
            "type": "array",
            "description": "**[Search by URL]** Links to Realtor.com search result pages. Search on Realtor.com with the filters you want, then copy the link from your browser. Homes for sale, rentals (`/apartments/...`) and recently sold (`.../show-recently-sold`) links work. **Max Results** and **Sort Order** above also apply.",
            "items": {
              "type": "string"
            }
          },
          "properties": {
            "title": "Properties",
            "type": "array",
            "description": "**[Property details, Similar homes]** One or more property IDs (the `property_id` from a search, for example `7966020913`), Realtor.com property page links or full street addresses (for example `9504 Quail Village Ln, Austin, TX 78758`).",
            "items": {
              "type": "string"
            }
          },
          "similarStatus": {
            "title": "Similar Homes Status",
            "enum": [
              "any",
              "for_sale",
              "sold",
              "for_rent"
            ],
            "type": "string",
            "description": "**[Similar homes]** Only return comparable homes with this status. Pick **Recently sold** for sold comparables.",
            "default": "any"
          },
          "agentLocation": {
            "title": "Agent Location",
            "type": "string",
            "description": "**[Search agents]** A ZIP code (`78701`) or a city with its state (`Austin, TX`)."
          },
          "agentName": {
            "title": "Agent Name",
            "type": "string",
            "description": "**[Search agents]** Optional. Only agents whose name contains this text, for example `Smith`."
          },
          "agentSort": {
            "title": "Agent Sort Order",
            "enum": [
              "relevant",
              "most_sales",
              "recent_activity",
              "ratings",
              "recommendations"
            ],
            "type": "string",
            "description": "**[Search agents]**",
            "default": "relevant"
          },
          "agentPriceMin": {
            "title": "Agent Min Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search agents]** Only agents who work with homes at this price or higher."
          },
          "agentPriceMax": {
            "title": "Agent Max Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "**[Search agents]** Only agents who work with homes at this price or lower."
          },
          "includeAgentDetails": {
            "title": "Include phone numbers and full profiles (paid add-on)",
            "type": "boolean",
            "description": "**[Search agents]** Adds each agent's phone numbers, office address, website, social media links, license, languages, experience and bio. This is a paid add-on: each agent with a full profile is charged the full details price on top of the result price (see the Pricing tab). Off by default.",
            "default": false
          },
          "agents": {
            "title": "Agents",
            "type": "array",
            "description": "**[Agent profiles, Agent reviews, Agent listings]** One or more agent IDs (the `agent_id` from **Search agents** or from a listing, for example `1918615`) or Realtor.com agent profile links.",
            "items": {
              "type": "string"
            }
          },
          "reviewType": {
            "title": "Review Type",
            "enum": [
              "all",
              "ratings",
              "buyer",
              "seller"
            ],
            "type": "string",
            "description": "**[Agent reviews]** Newest reviews come first.",
            "default": "all"
          },
          "agentListingStatus": {
            "title": "Agent Listing Status",
            "enum": [
              "for_sale",
              "sold",
              "for_rent"
            ],
            "type": "string",
            "description": "**[Agent listings]** Which of the agent's listings to get.",
            "default": "for_sale"
          },
          "maxResultsPerInput": {
            "title": "Max Results per Property or Agent",
            "minimum": 1,
            "type": "integer",
            "description": "**[Similar homes, Agent reviews, Agent listings]** Maximum similar homes per property (up to 50), or reviews or listings per agent.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}