{
  "openapi": "3.0.1",
  "info": {
    "title": "Corcoran Real Estate Listings Scraper",
    "description": "Scrape Corcoran - luxury real estate brokerage. Search homes for sale and rent by region with price, beds, baths, and property-type filters; fetch listing detail pages with agent info, media, and square footage.",
    "version": "1.0",
    "x-build-id": "LQDL15bRv0WcpZsEN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~corcoran-real-estate-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-corcoran-real-estate-listings-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/vexaloom-labs~corcoran-real-estate-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-corcoran-real-estate-listings-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/vexaloom-labs~corcoran-real-estate-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-corcoran-real-estate-listings-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byIds",
              "browseRegions"
            ],
            "type": "string",
            "description": "Search listings, look up exact listings by ID or URL, or browse the region directory.",
            "default": "search"
          },
          "regionId": {
            "title": "Region ID",
            "minimum": 1,
            "maximum": 9999,
            "type": "integer",
            "description": "Corcoran region ID for search mode. `1` = New York City, `2` = South Florida, `3` = The Hamptons, `100` = Northern California, `103` = Chicago, `109` = Denver, `128` = Nashville, `133` = Houston, `137` = Boston, `141` = Washington Metro Area. Use mode=browseRegions for the full list.",
            "default": 1
          },
          "regionIds": {
            "title": "Region IDs (multiple)",
            "type": "array",
            "description": "Search several regions in one run. When set, this replaces Region ID. Example: `1, 2, 3` for NYC, South Florida and the Hamptons.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "transactionType": {
            "title": "Transaction type",
            "enum": [
              "for-sale",
              "for-rent"
            ],
            "type": "string",
            "description": "Sale or rental listings.",
            "default": "for-sale"
          },
          "listingIds": {
            "title": "Listing IDs or URLs",
            "type": "array",
            "description": "Listing IDs or full Corcoran listing URLs for mode=byIds. Example: `109473943` or `https://www.corcoran.com/listing/for-sale/.../109473943`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only listings priced at least this much. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Only listings priced at most this much. Leave empty for no maximum."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only listings with at least this many bedrooms."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only listings with at most this many bedrooms."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only listings with at least this many bathrooms."
          },
          "maxBathrooms": {
            "title": "Max bathrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Only listings with at most this many bathrooms."
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit to one or more property types. Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "Condo",
                "Co-op",
                "Condop",
                "Townhouse",
                "Single Family",
                "Multi Family",
                "Commercial"
              ],
              "enumTitles": [
                "Condo",
                "Co-op",
                "Condop",
                "Townhouse",
                "Single-family home",
                "Multi-family home",
                "Commercial"
              ]
            },
            "default": []
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "any",
              "Active",
              "PreListing",
              "Contract Signed",
              "Back on Market",
              "Sold",
              "Rented"
            ],
            "type": "string",
            "description": "Limit to a status. Sold and Rented search recent history; use Sold/rented window to widen it.",
            "default": "any"
          },
          "soldRentedWindowDays": {
            "title": "Sold/rented window (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to search when Listing status is Sold or Rented. Ignored for other statuses.",
            "default": 30
          },
          "openHouseDays": {
            "title": "Open-house days",
            "uniqueItems": true,
            "type": "array",
            "description": "Only listings with an open house on these upcoming days (0 = today, 1 = tomorrow, ... 6). Leave empty to ignore open-house dates.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "Today",
                "Tomorrow",
                "In 2 days",
                "In 3 days",
                "In 4 days",
                "In 5 days",
                "In 6 days"
              ]
            },
            "default": []
          },
          "isNewDevelopment": {
            "title": "New developments only",
            "type": "boolean",
            "description": "Only return new-development listings.",
            "default": false
          },
          "neighborhoods": {
            "title": "Neighborhoods",
            "type": "array",
            "description": "Neighborhood names, e.g. `Upper East Side`, `Chelsea`. Leave empty for the whole region.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "citiesOrBoroughs": {
            "title": "Cities or boroughs",
            "type": "array",
            "description": "City or borough names, e.g. `Manhattan`, `Brooklyn`, `Miami Beach`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "US ZIP codes, e.g. `10022`, `33139`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Free-text search handled by Corcoran, e.g. an address, building or neighborhood."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "recommended+desc",
              "listedDate+desc",
              "price",
              "price+desc",
              "squareFeetInterior+desc",
              "openHouses+desc"
            ],
            "type": "string",
            "description": "Order of listings before the item cap is applied.",
            "default": "recommended+desc"
          },
          "includeDetails": {
            "title": "Enrich each listing with detail data",
            "type": "boolean",
            "description": "Fetch each listing's detail page for description, features, year built, taxes, days on market and building info. Costs one extra request per listing.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on emitted listings. Larger caps page through Corcoran's search results.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}