{
  "openapi": "3.0.1",
  "info": {
    "title": "Crexi Listings Scraper",
    "description": "Scrape Crexi.com commercial real estate listings for sale, auction or lease: asking price, $/sq ft, size, address, brokerage and dates. Optional broker phones and licenses, cap rate, descriptions, auction terms and photos. Filters or search URLs, no 1,500-result cap.",
    "version": "0.0",
    "x-build-id": "PklGJSL3quhHVg2as"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piotrv1001~crexi-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piotrv1001-crexi-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/piotrv1001~crexi-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piotrv1001-crexi-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/piotrv1001~crexi-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piotrv1001-crexi-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",
        "properties": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Crexi search result URLs copied from your browser after setting filters on crexi.com, e.g. https://www.crexi.com/properties?types%5B%5D=Retail&states%5B%5D=TX or https://www.crexi.com/lease/properties?types%5B%5D=Office. Filters, sort and page in the URL are kept. Locations picked on the map are kept for whole states only - for cities use the fields below. When you add URLs, the filter fields below are ignored.",
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "For sale or for lease",
            "enum": [
              "sale",
              "lease"
            ],
            "type": "string",
            "description": "Search properties for sale or spaces for lease.",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "One or more property types (any of them matches). Lease searches support Retail, Office, Industrial, Land, Restaurant and Special Purpose.",
            "items": {
              "type": "string",
              "enum": [
                "Retail",
                "Multifamily",
                "Office",
                "Industrial",
                "Hospitality",
                "Mixed Use",
                "Land",
                "Self Storage",
                "Mobile Home Park",
                "Senior Living",
                "Special Purpose",
                "Note/Loan",
                "Business for Sale",
                "Restaurant"
              ],
              "enumTitles": [
                "Retail",
                "Multifamily",
                "Office",
                "Industrial",
                "Hospitality",
                "Mixed Use",
                "Land",
                "Self Storage",
                "Mobile Home Park",
                "Senior Living",
                "Special Purpose",
                "Note/Loan",
                "Business for Sale",
                "Restaurant"
              ]
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "One or more US states.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "District of Columbia",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities as \"City, ST\", e.g. \"Austin, TX\". A city without a state is combined with the states selected above.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text search, e.g. \"walgreens\", \"NNN\" or \"cold storage\"."
          },
          "saleTypes": {
            "title": "Sale type",
            "type": "array",
            "description": "For-sale only: auctions, regular listings or offer processes.",
            "items": {
              "type": "string",
              "enum": [
                "Auction",
                "On-Market",
                "Call For Offers",
                "Highest & Best"
              ],
              "enumTitles": [
                "Auction",
                "On-market (asking price)",
                "Call for offers",
                "Highest & best"
              ]
            }
          },
          "priceMin": {
            "title": "Min asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For-sale only."
          },
          "priceMax": {
            "title": "Max asking price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For-sale only."
          },
          "capRateMin": {
            "title": "Min cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "For-sale only, e.g. 6.5."
          },
          "capRateMax": {
            "title": "Max cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "For-sale only."
          },
          "sqFtMin": {
            "title": "Min size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest building size (or space size for lease)."
          },
          "sqFtMax": {
            "title": "Max size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest building size (or space size for lease)."
          },
          "postedWithinDays": {
            "title": "Listed within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings that went live in the last N days, e.g. 7 for a weekly feed. Also applies to search URLs. Empty = any time."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "recommended",
              "updated",
              "priceAsc",
              "priceDesc",
              "sizeDesc",
              "capRateDesc",
              "auctionEnding"
            ],
            "type": "string",
            "description": "Order of results (lease searches support newest, recommended and recently updated). Runs over 1,500 listings are collected in listing-date slices, so their order is by listing date.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to save across all searches. 0 = no limit (every listing of the search, past the site's 1,500-result limit).",
            "default": 50
          },
          "includeDetails": {
            "title": "Include details (brokers, cap rate, description, photos)",
            "type": "boolean",
            "description": "Also load every listing's details: listing brokers with brokerage, licenses and phone where published, cap rate, lot size, full marketing description and investment highlights, property facts, auction terms, all photo URLs and (for lease) every available space. Costs an extra detail event per listing.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The default Apify proxy works for Crexi.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}