{
  "openapi": "3.0.1",
  "info": {
    "title": "Crexi.com - US Commercial Real Estate Listings",
    "description": "Scrape US commercial real estate for sale on Crexi: asking price, $/sq ft, size, type, tenants, address + lat/lng, opportunity zone, auction status, photos, broker contacts. Filter by state, city, zip, type, price, cap rate, size, lease type, tenant.",
    "version": "1.0",
    "x-build-id": "ERPlS5rt3mFFRu8jx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swerve~crexi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swerve-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/swerve~crexi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-swerve-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/swerve~crexi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-swerve-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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter US state codes, e.g. [\"TX\", \"FL\"]. Leave empty for all 50 states + DC.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names, e.g. [\"Austin\", \"Dallas\"]. Combine with States to avoid same-name cities in other states.",
            "items": {
              "type": "string"
            }
          },
          "zips": {
            "title": "ZIP codes",
            "type": "array",
            "description": "ZIP codes, e.g. [\"78701\", \"78702\"].",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "County names as Crexi spells them, e.g. [\"Travis County\", \"Harris County\"].",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Retail",
                "Office",
                "Industrial",
                "Multifamily",
                "Land",
                "Hospitality",
                "Mixed Use",
                "Self Storage",
                "Mobile Home Park",
                "Senior Living",
                "Special Purpose",
                "Business for Sale",
                "Note/Loan"
              ],
              "enumTitles": [
                "Retail",
                "Office",
                "Industrial",
                "Multifamily",
                "Land",
                "Hospitality",
                "Mixed Use",
                "Self Storage",
                "Mobile Home Park",
                "Senior Living",
                "Special Purpose",
                "Business for Sale",
                "Note / Loan"
              ]
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on results. Leave blank to scrape ALL matching listings (recommended); set a number only to limit cost."
          },
          "minPrice": {
            "title": "Min asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 1000000 for $1M+. Unpriced listings are excluded when a price filter is set."
          },
          "maxPrice": {
            "title": "Max asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 5000000 for up to $5M."
          },
          "includeUnpriced": {
            "title": "Include unpriced listings",
            "type": "boolean",
            "description": "Crexi lets brokers list without an asking price (~13% of listings). Uncheck to skip them. Ignored (treated as false) when Min/Max price is set.",
            "default": true
          },
          "minCapRate": {
            "title": "Min cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "e.g. 6 for 6%+. Only listings that publish a cap rate match."
          },
          "maxCapRate": {
            "title": "Max cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "e.g. 8."
          },
          "minSqft": {
            "title": "Min building size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 10000."
          },
          "maxSqft": {
            "title": "Max building size (sq ft)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 50000."
          },
          "minPricePerSqft": {
            "title": "Min price per sq ft ($)",
            "minimum": 0,
            "type": "number",
            "description": "e.g. 100."
          },
          "maxPricePerSqft": {
            "title": "Max price per sq ft ($)",
            "minimum": 0,
            "type": "number",
            "description": "e.g. 300."
          },
          "minOccupancy": {
            "title": "Min occupancy (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "e.g. 90 for 90%+ occupied. Only listings that publish occupancy match."
          },
          "tenants": {
            "title": "Tenants / brands",
            "type": "array",
            "description": "Match listings with these tenants, e.g. [\"Starbucks\", \"Dollar General\", \"Walgreens\"].",
            "items": {
              "type": "string"
            }
          },
          "tenancy": {
            "title": "Tenancy",
            "enum": [
              "any",
              "Single",
              "Multi"
            ],
            "type": "string",
            "description": "Single-tenant or multi-tenant properties only.",
            "default": "any"
          },
          "leaseTypes": {
            "title": "Lease types",
            "type": "array",
            "description": "Investment lease structure of the property's tenants (for-sale listings only; Crexi does not expose its for-lease marketplace publicly).",
            "items": {
              "type": "string",
              "enum": [
                "NNN",
                "Gross"
              ],
              "enumTitles": [
                "NNN (triple net)",
                "Gross"
              ]
            }
          },
          "opportunityZoneOnly": {
            "title": "Opportunity Zone only",
            "type": "boolean",
            "description": "Only properties inside a federal Opportunity Zone.",
            "default": false
          },
          "listingStatus": {
            "title": "Listing status",
            "enum": [
              "active",
              "underContract"
            ],
            "type": "string",
            "description": "Active = on-market + live auctions (Crexi's default view). Under contract = deals pending close.",
            "default": "active"
          },
          "updatedSince": {
            "title": "Updated since",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only listings updated on/after this date, e.g. 2026-09-01. Handy for daily delta runs."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "rank",
              "updatedOn",
              "activatedOn",
              "price",
              "capRate"
            ],
            "type": "string",
            "description": "Order in which Crexi returns listings. Matters mainly when you set Max listings.",
            "default": "rank"
          },
          "sortDescending": {
            "title": "Sort descending",
            "type": "boolean",
            "description": "Checked = newest / highest first.",
            "default": true
          },
          "enrichDetails": {
            "title": "Fetch full listing details",
            "type": "boolean",
            "description": "Adds 3 extra requests per listing: description, investment highlights, subtypes, tenants, lot size, year built, sale condition, all photos, and every broker with phone + license. Slower (roughly 1 second per listing at our concurrency) and adds proxy traffic; uncheck for a fast price/location-only sweep. Note: Crexi hides cap rate, NOI, occupancy and similar financials from anonymous visitors; those come back null with financialsMasked=true.",
            "default": true
          },
          "proxyConfig": {
            "title": "Proxy",
            "type": "object",
            "description": "Crexi's API accepts Apify datacenter proxies, so the default is cheap. Switch to residential only if you see blocks.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}