{
  "openapi": "3.0.1",
  "info": {
    "title": "Crexi Scraper: Commercial Real Estate, Lease, Auctions, Brokers",
    "description": "Scrape Crexi commercial real estate for sale, for lease and at auction by city, state, keyword, type or link: price, cap rate, NOI, size, lot, address, broker, brokerage, license, status and auction bids. No login.",
    "version": "0.1",
    "x-build-id": "3is0BEARnlKVfQe5R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~crexi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-crexi-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/themineworks~crexi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-crexi-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/themineworks~crexi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-crexi-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": {
          "listingType": {
            "title": "Listing type",
            "enum": [
              "sale",
              "lease",
              "auction"
            ],
            "type": "string",
            "description": "For sale reads Crexi's sale listings (auctions included), For lease reads spaces for lease, Auctions reads live and upcoming auctions only. Links in Crexi links follow their own type.",
            "default": "sale"
          },
          "searchTerms": {
            "title": "Locations or keywords",
            "type": "array",
            "description": "What you would type in the Crexi search box, one per line: a city and state (Austin, TX), a county, a ZIP, a street, a tenant or a keyword (Dollar General, NNN, gas station). Each line is one search; the filters below apply to every line. Leave empty to search with the filters alone.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Crexi links (optional)",
            "type": "array",
            "description": "Links copied from crexi.com: a search (https://www.crexi.com/properties?states[]=TX&types[]=Retail), a lease search (https://www.crexi.com/lease/properties?states[]=FL), or a single listing (https://www.crexi.com/properties/2781519/pennsylvania-convenient-food-mart). A search link keeps its own filters.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "For sale: Retail, Multifamily, Office, Industrial, Hospitality, Mixed Use, Land, Self Storage, Mobile Home Park, Senior Living, Special Purpose, Note/Loan, Business for Sale. For lease: Retail, Office, Industrial, Land, Special Purpose, Restaurant.",
            "items": {
              "type": "string"
            }
          },
          "propertySubtypes": {
            "title": "Property subtypes (optional)",
            "type": "array",
            "description": "Crexi subtypes as shown on the site, for example Gas Station, Convenience Store, Warehouse, Medical, Strip Center, Net Lease.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (optional)",
            "type": "array",
            "description": "Two letter US state codes, for example TX, FL, CA.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (optional)",
            "type": "array",
            "description": "City names, for example Austin or Miami. Add the state in States to keep the city in one state.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties (optional)",
            "type": "array",
            "description": "County names, for example Travis or Maricopa.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes (optional)",
            "type": "array",
            "description": "5 digit ZIP codes, for example 78701.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min asking price, USD (sale)",
            "minimum": 0,
            "type": "integer",
            "description": "Sale and auction listings only."
          },
          "maxPrice": {
            "title": "Max asking price, USD (sale)",
            "minimum": 0,
            "type": "integer",
            "description": "Sale and auction listings only."
          },
          "minCapRate": {
            "title": "Min cap rate, % (sale)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Crexi's own cap rate filter, sale listings only."
          },
          "maxCapRate": {
            "title": "Max cap rate, % (sale)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Crexi's own cap rate filter, sale listings only."
          },
          "minLeaseRate": {
            "title": "Min lease rate, USD per SF per year (lease)",
            "minimum": 0,
            "type": "number",
            "description": "Lease listings only."
          },
          "maxLeaseRate": {
            "title": "Max lease rate, USD per SF per year (lease)",
            "minimum": 0,
            "type": "number",
            "description": "Lease listings only."
          },
          "minSquareFeet": {
            "title": "Min building size, SF",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest building or space size."
          },
          "maxSquareFeet": {
            "title": "Max building size, SF",
            "minimum": 0,
            "type": "integer",
            "description": "Largest building or space size."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "newest",
              "oldest",
              "price_high",
              "price_low",
              "updated"
            ],
            "type": "string",
            "description": "Order of the results. Use Newest listings first for a daily new listings feed.",
            "default": "recommended"
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most listings to return for each location, keyword or link, 1 to 10,000. Crexi serves up to 1,499 listings for one search; a bigger search with no single state is read state by state.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include details and brokers",
            "type": "boolean",
            "description": "On: each listing also gets its full record (description, highlights, lot size, zoning, tenants, subtypes), every broker card (name, brokerage, license, profile, phone where Crexi shows it) and, for auctions, the auction dates and bids. Off: only the search card, about 5 times faster.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Leave empty: the actor goes direct and switches to an Apify datacenter IP on its own when needed. Set it only to force your own proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}