{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor.com Scraper — Listings, Agents & 200K+ DB",
    "description": "Extract real estate listings, MLS property details & 200K+ verified agent contacts from Realtor.com. Prices, beds, baths, schools, taxes, emails, phones. Zero login, clean JSON, proxy ready.",
    "version": "0.0",
    "x-build-id": "IDc8qbdiCijxk0e7p"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~realtor-com-scraper-listings-agents-200k-db/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-realtor-com-scraper-listings-agents-200k-db",
        "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/scrapepilot~realtor-com-scraper-listings-agents-200k-db/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-realtor-com-scraper-listings-agents-200k-db",
        "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/scrapepilot~realtor-com-scraper-listings-agents-200k-db/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-realtor-com-scraper-listings-agents-200k-db",
        "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": {
          "dbState": {
            "title": "⚡ Instant Database: State Code",
            "type": "string",
            "description": "2-letter US State Code (e.g. TX, CA, FL, NY, IL, GA, NC, WA, AZ). Pulls instantly and uncapped from our 500,000+ Realtor.com agent database with zero scraping and zero blocks."
          },
          "dbCity": {
            "title": "Instant Database: City (Optional)",
            "type": "string",
            "description": "Optional city filter for instant database mode (e.g. Austin, Miami, Los Angeles, Dallas, Houston, Chicago)."
          },
          "dbBrokerage": {
            "title": "Instant Database: Brokerage / Office (Optional)",
            "type": "string",
            "description": "Optional brokerage or office name filter (e.g. eXp Realty, Keller Williams, Coldwell Banker, RE/MAX, Compass, Dale Sorensen)."
          },
          "startUrls": {
            "title": "Start URLs (Live Scraping)",
            "type": "array",
            "description": "Realtor.com URLs to scrape live. Supports: (1) Property search result URLs (e.g. /realestateandhomes-search/Austin_TX), (2) Individual property detail URLs (/realestateandhomes-detail/...), (3) Community detail URLs (/community-detail/...), (4) Rental URLs (/rentals/details/...), (5) Property shortlinks (apps.realtor.com/...), and (6) Agent profiles or search URLs (/realestateagents/...).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "agentZipCodes": {
            "title": "Agent ZIP Codes",
            "type": "array",
            "description": "List of 5-digit US ZIP codes (e.g. [\"32963\", \"90210\"]). The scraper will automatically construct and scrape Realtor.com agent search URLs for all agents in those areas.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum number of property or agent records to output and charge for. Bounded to prevent unexpected costs.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of pages processed concurrently. Keeping this around 3-5 ensures stability and avoids memory bottlenecks.",
            "default": 5
          },
          "minConcurrency": {
            "title": "Min Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Minimum concurrency level during scraping.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max Request Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of retry attempts if a page request fails or is rate-limited.",
            "default": 3
          },
          "additionalStats": {
            "title": "Additional Property Stats (Popularity & Views)",
            "type": "boolean",
            "description": "When enabled, fetches detailed property popularity metrics (views, saves, and listing detail page views across 1, 7, 14, 21, 28, and 30-day periods).",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring Mode (Incremental Runs)",
            "type": "boolean",
            "description": "When enabled, tracks previously scraped properties in 'realtor-properties-kv-1' and agents in 'realtor-agents-kv-1'. Only NEW items will be output and charged on subsequent runs.",
            "default": false
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Residential proxies are recommended for scraping Realtor.com to bypass bot detection and georestrictions.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}