{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Property Scraper",
    "description": "Scrape Realtor.com listings, full property details, agents, mortgages, and autocomplete suggestions. Search by location/ZIP/coordinates/polygon/URL with full filter set. Contact: oneapi.project@gmail.com",
    "version": "1.0",
    "x-build-id": "SIfRqTbWuc9pfmeBk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one-api~realtor-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one-api-realtor-property-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/one-api~realtor-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one-api-realtor-property-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/one-api~realtor-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one-api-realtor-property-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": {
          "property_inputs": {
            "title": "Property ID, Realtor.com URL, or full Address (one per line)",
            "type": "array",
            "description": "Auto-detects each entry: digits → property_id, http(s) URL → listing URL, anything else → address. Each row = 1 property detail call.",
            "items": {
              "type": "string"
            }
          },
          "search_inputs": {
            "title": "Location, ZIP, lat/lng radius, polygon, or Realtor.com search URL (one per line)",
            "type": "array",
            "description": "Auto-detects each entry. Examples:\n• `Austin, TX` (location)\n• `78758` (ZIP)\n• `30.4108,-97.7177,2` (lat,lng,radius_miles)\n• `-97.74 30.40,-97.70 30.40,-97.70 30.43,-97.74 30.43` (polygon, lon-lat pairs)\n• `https://www.realtor.com/realestateandhomes-search/Austin_TX/...` (search URL)\n\nFilters below apply to every search. Each LISTING is pushed as one dataset item.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search Type",
            "enum": [
              "For_Sale",
              "For_Rent",
              "Sold",
              "For_Sale,Sold"
            ],
            "type": "string",
            "description": "For_Sale (default) | For_Rent | Sold. Comma-separated for multi (e.g. `For_Sale,Sold`).",
            "default": "For_Sale"
          },
          "propertyType": {
            "title": "Property Types",
            "type": "string",
            "description": "Comma-separated. Leave empty for all. Allowed: House, Condo, Townhome, Multi_Family, Mobile, Farm, Land, Co-op",
            "default": ""
          },
          "priceRange": {
            "title": "Price Range",
            "type": "string",
            "description": "`min:500000`, `max:1500000`, or `min:500000,max:1500000`",
            "default": ""
          },
          "bedsRange": {
            "title": "Beds Range",
            "type": "string",
            "description": "`min:3`, `max:5`, `min:3,max:5` (studio = `min:0`)",
            "default": ""
          },
          "bathsRange": {
            "title": "Baths Range",
            "type": "string",
            "description": "Decimals supported: `min:2`, `max:3.5`, `min:2,max:3.5`",
            "default": ""
          },
          "sqftRange": {
            "title": "Sqft Range",
            "type": "string",
            "description": "`min:1000`, `max:3000`, `min:1000,max:3000`",
            "default": ""
          },
          "sortOrder": {
            "title": "Sort Order",
            "enum": [
              "Recommended",
              "Newest",
              "Oldest",
              "Price_High_to_Low",
              "Price_Low_to_High",
              "Square_Feet",
              "Lot_Size",
              "Beds",
              "Baths",
              "Most_Recently_Sold",
              "Open_House_Date"
            ],
            "type": "string",
            "description": "How to sort search results. Default: Recommended (Realtor.com's relevance bucket).",
            "default": "Recommended"
          },
          "pages": {
            "title": "Pages to fetch per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "1-based. Each page = up to `Result Count` listings.",
            "default": 1
          },
          "resultCount": {
            "title": "Results per page",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Min 1, Max 200. Default 50.",
            "default": 50
          },
          "newConstruction": {
            "title": "New Construction",
            "enum": [
              "any",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Filter new-construction listings.",
            "default": "any"
          },
          "foreclosure": {
            "title": "Foreclosure",
            "enum": [
              "any",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Filter foreclosure listings.",
            "default": "any"
          },
          "openHouse": {
            "title": "Open House Only",
            "type": "boolean",
            "description": "Only listings with an upcoming open house (For_Sale).",
            "default": false
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Comma-separated amenities (e.g. `pool,fireplace,granite countertops`).",
            "default": ""
          },
          "daysOnMarketMax": {
            "title": "Days on Market (max)",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings within last N days. Empty = no limit."
          },
          "autocomplete_inputs": {
            "title": "Autocomplete query (one per line)",
            "type": "array",
            "description": "Realtor.com search-box suggestions: cities, ZIPs, neighborhoods, addresses, schools, etc.",
            "items": {
              "type": "string"
            }
          },
          "agent_inputs": {
            "title": "Agent fulfillment_id (one per line)",
            "type": "array",
            "description": "Pulled from `listing_advertiser.fulfillment_id` in any details/search response.",
            "items": {
              "type": "string"
            }
          },
          "mortgage_inputs": {
            "title": "Mortgage inputs: `price` or `price,downPayment,rate,term` (one per line)",
            "type": "array",
            "description": "Required: price. Optional: downPayment ($), rate (decimal e.g. 0.065), term (years). Defaults: 20% down, 6.5%, 30yr.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}