{
  "openapi": "3.0.1",
  "info": {
    "title": "StreetEasy NYC Real Estate Scraper — Sales, Rentals & Agents",
    "description": "StreetEasy NYC real estate scraper & property data API: extract New York City condos, co-ops, townhouses & apartments for sale or rent across Manhattan, Brooklyn, Queens, Bronx, Staten Island & NJ. Get prices, $/sqft, HOA, taxes, open houses, brokerages & direct agent contacts in JSON/CSV.",
    "version": "1.0",
    "x-build-id": "hQ3KdQONOsbGPk9Ub"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~streeteasy-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-streeteasy-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/haketa~streeteasy-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-streeteasy-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/haketa~streeteasy-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-streeteasy-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": {
          "dealType": {
            "title": "Deal Type (Sales or Rentals)",
            "enum": [
              "for-sale",
              "for-rent",
              "both"
            ],
            "type": "string",
            "description": "Choose whether to extract NYC properties for sale, apartments for rent, or both sales and rentals in one run.",
            "default": "for-sale"
          },
          "areas": {
            "title": "NYC Boroughs & Neighborhoods",
            "type": "array",
            "description": "Select one or more New York City boroughs, popular Manhattan/Brooklyn/Queens neighborhoods, or Northern NJ markets. Leave as default to cover Manhattan & Brooklyn.",
            "items": {
              "type": "string",
              "enum": [
                "nyc",
                "manhattan",
                "brooklyn",
                "queens",
                "bronx",
                "staten-island",
                "new-jersey",
                "upper-east-side",
                "upper-west-side",
                "midtown",
                "tribeca",
                "soho",
                "chelsea",
                "west-village",
                "greenwich-village",
                "east-village",
                "les",
                "flatiron",
                "gramercy-park",
                "financial-district",
                "central-harlem",
                "williamsburg",
                "greenpoint",
                "park-slope",
                "brooklyn-heights",
                "dumbo",
                "bushwick",
                "bedford-stuyvesant",
                "crown-heights",
                "astoria",
                "long-island-city",
                "forest-hills",
                "flushing",
                "riverdale",
                "hoboken",
                "jersey-city"
              ],
              "enumTitles": [
                "All NYC (5 Boroughs)",
                "Manhattan (All)",
                "Brooklyn (All)",
                "Queens (All)",
                "Bronx (All)",
                "Staten Island (All)",
                "Northern New Jersey (All)",
                "Manhattan — Upper East Side",
                "Manhattan — Upper West Side",
                "Manhattan — Midtown",
                "Manhattan — Tribeca",
                "Manhattan — SoHo",
                "Manhattan — Chelsea",
                "Manhattan — West Village",
                "Manhattan — Greenwich Village",
                "Manhattan — East Village",
                "Manhattan — Lower East Side",
                "Manhattan — Flatiron",
                "Manhattan — Gramercy Park",
                "Manhattan — Financial District",
                "Manhattan — Central Harlem",
                "Brooklyn — Williamsburg",
                "Brooklyn — Greenpoint",
                "Brooklyn — Park Slope",
                "Brooklyn — Brooklyn Heights",
                "Brooklyn — DUMBO",
                "Brooklyn — Bushwick",
                "Brooklyn — Bedford-Stuyvesant",
                "Brooklyn — Crown Heights",
                "Queens — Astoria",
                "Queens — Long Island City (LIC)",
                "Queens — Forest Hills",
                "Queens — Flushing",
                "Bronx — Riverdale",
                "New Jersey — Hoboken",
                "New Jersey — Jersey City"
              ]
            },
            "default": [
              "manhattan",
              "brooklyn"
            ]
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "all",
              "condo",
              "coop",
              "condo-coop",
              "house",
              "multifamily"
            ],
            "type": "string",
            "description": "Filter sales listings by NYC building ownership type (Condo, Co-op, House/Townhouse, or Multi-Family). Ignored when scraping rentals only.",
            "default": "all"
          },
          "bedrooms": {
            "title": "Bedrooms",
            "enum": [
              "any",
              "studio",
              "1",
              "1+",
              "2",
              "2+",
              "3",
              "3+",
              "4+"
            ],
            "type": "string",
            "description": "Filter properties by exact or minimum bedroom count.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum asking sale price or monthly rent in USD (e.g., 500000 for sales or 2500 for rentals)."
          },
          "maxPrice": {
            "title": "Maximum Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum asking sale price or monthly rent in USD (e.g., 3000000 for sales or 6000 for rentals)."
          },
          "noFeeOnly": {
            "title": "No-Fee / Concession Rentals Only",
            "type": "boolean",
            "description": "For rentals: filter to direct property-management/no-broker-fee rentals or listings offering free-month concessions.",
            "default": false
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "default",
              "listed_desc",
              "interesting_desc",
              "price_asc",
              "price_desc",
              "sqft_desc",
              "sqft_asc"
            ],
            "type": "string",
            "description": "Choose how StreetEasy orders matching listings before extraction.",
            "default": "listed_desc"
          },
          "enrichListingDetails": {
            "title": "Enrich Full Listing Details & Agent Contacts",
            "type": "boolean",
            "description": "Fetch each listing detail page to extract direct listing agent names, phone numbers, emails, monthly HOA/common charges & taxes, days on market, amenities, building policies, and full descriptions. Disable for high-speed bulk search scans.",
            "default": true
          },
          "startUrls": {
            "title": "Custom StreetEasy URLs (Advanced, Optional)",
            "type": "array",
            "description": "Optional list of custom StreetEasy search URLs (e.g. https://streeteasy.com/for-sale/tribeca) or individual building/unit URLs (e.g. https://streeteasy.com/building/...). When provided, overrides the dropdown search filters.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum Listings to Scrape",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of unique listings to collect across your run. Set to 0 for unlimited extraction.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings. Uses low-cost datacenter proxies by default with automatic fallback if needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}