{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper — US Property Data · Market KPIs · Schools",
    "description": "🏠 Scrape Realtor.com for-sale listings nationwide — by city/state, ZIP, coordinates, polygon, or URL. Built-in market KPIs (median price, $/sqft) + property lookup with schools, tax history, price history. Independent tool — not affiliated with Move, Inc. or NAR.",
    "version": "1.0",
    "x-build-id": "zRPUeNhceDtaqRBRD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~realtor-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~realtor-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~realtor-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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": {
          "searchMode": {
            "title": "🧭 Search Mode",
            "enum": [
              "location",
              "zip",
              "coordinates",
              "polygon",
              "url",
              "lookup"
            ],
            "type": "string",
            "description": "How to specify the search.\n\n• **location** — by city + state (e.g. 'Austin, TX')\n• **zip** — by 5-digit US ZIP code\n• **coordinates** — by lat/lon center + radius (miles)\n• **polygon** — by polygon boundary\n• **url** — by Realtor.com search URL\n• **lookup** — single property by ID, address, or URL (returns full details with schools, tax history)",
            "default": "location"
          },
          "maxResults": {
            "title": "📊 Max results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on listings returned per query. Auto-paginates until the cap is reached or the search is fully drained. FREE tier is always capped at 25 listings per run.",
            "default": 50
          },
          "location": {
            "title": "📍 Location  (used when Search Mode = location)",
            "type": "string",
            "description": "City + state, e.g. 'Manhattan, NY', 'Austin, TX', 'San Francisco, CA'."
          },
          "locations": {
            "title": "📋 Bulk Locations  (PAID, location mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of 'City, State' strings. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "zipCode": {
            "title": "📮 ZIP Code  (used when Search Mode = zip)",
            "type": "string",
            "description": "5-digit US ZIP code, e.g. '10001'."
          },
          "zipCodes": {
            "title": "📋 Bulk ZIP Codes  (PAID, zip mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of 5-digit ZIP codes. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "🧭 Latitude  (used when Search Mode = coordinates)",
            "type": "string",
            "description": "Latitude in decimal degrees, e.g. 40.7589."
          },
          "longitude": {
            "title": "🧭 Longitude",
            "type": "string",
            "description": "Longitude in decimal degrees, e.g. -73.9851."
          },
          "radius": {
            "title": "📏 Radius (miles)",
            "type": "string",
            "description": "Optional search radius in miles (0.1–50). Defaults to provider default."
          },
          "polygon": {
            "title": "📐 Polygon  (used when Search Mode = polygon)",
            "type": "string",
            "description": "Polygon boundary as 'lon lat,lon lat,...'. Min 3 points. Example: '-73.99 40.75,-73.97 40.75,-73.97 40.77,-73.99 40.77,-73.99 40.75'."
          },
          "realtorUrl": {
            "title": "🔗 Realtor.com URL  (url or lookup mode)",
            "type": "string",
            "description": "Realtor.com search URL (for url mode) or property URL (for lookup mode). Example: 'https://www.realtor.com/realestateandhomes-search/Manhattan_NY' or 'https://www.realtor.com/realestateandhomes-detail/...'."
          },
          "realtorUrls": {
            "title": "📋 Bulk URLs  (PAID, url mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of Realtor.com URLs. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "lookupBy": {
            "title": "🔎 Lookup By  (used when Search Mode = lookup)",
            "enum": [
              "propertyId",
              "address",
              "url"
            ],
            "type": "string",
            "description": "How to identify the property to look up.\n\n• **propertyId** — Realtor numeric property ID\n• **address** — full street address\n• **url** — Realtor.com property URL",
            "default": "propertyId"
          },
          "propertyId": {
            "title": "🆔 Property ID  (lookup mode, lookupBy=propertyId)",
            "type": "string",
            "description": "Realtor.com numeric property ID, e.g. '9700806558'."
          },
          "propertyIds": {
            "title": "📋 Bulk Property IDs  (PAID, lookup mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of Realtor.com property IDs for bulk lookup. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "address": {
            "title": "🏠 Address  (lookup mode, lookupBy=address)",
            "type": "string",
            "description": "Full street address, e.g. '217 W 57th St, New York, NY 10019'."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}