{
  "openapi": "3.0.1",
  "info": {
    "title": "Crexi Property Listings Scraping",
    "description": "Get commercial real estate listings straight from Crexi, searchable by state, city, ZIP, price, size, and more. Get address, coordinates, price, broker, photo, and link, ready for your spreadsheet, database, or dashboard.",
    "version": "0.0",
    "x-build-id": "e9TdhJQ1ZYOy6axXH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_lead_generation~crexi-property-listings-scraping/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_lead_generation-crexi-property-listings-scraping",
        "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/b2b_lead_generation~crexi-property-listings-scraping/runs": {
      "post": {
        "operationId": "runs-sync-b2b_lead_generation-crexi-property-listings-scraping",
        "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/b2b_lead_generation~crexi-property-listings-scraping/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_lead_generation-crexi-property-listings-scraping",
        "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": {
          "stateCode": {
            "title": "State code",
            "type": "string",
            "description": "Two-letter US state code, e.g. CA, TX, NY (case-insensitive)."
          },
          "state": {
            "title": "State name",
            "type": "string",
            "description": "Full US state name, e.g. California, Texas (case-insensitive). Alternative to State code."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name. Matches across every state unless combined with State code."
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "Five-digit US ZIP / postal code, e.g. 90012."
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "County name, e.g. Stanislaus County. Combine with State code to avoid cross-state name collisions."
          },
          "countyCode": {
            "title": "County FIPS code",
            "type": "string",
            "description": "County FIPS code, e.g. 6037, for exact county targeting."
          },
          "address": {
            "title": "Street address",
            "type": "string",
            "description": "Street address to match, e.g. 2930 Sperry Ave."
          },
          "saleStatus": {
            "title": "Sale status",
            "enum": [
              "for_sale",
              "call_for_offers",
              "auction",
              "sold",
              "off_market"
            ],
            "type": "string",
            "description": "Where the listing sits in the sale process. for_sale covers On-Market and Highest & Best; call_for_offers and auction are distinct sale mechanisms; off_market listings are no longer active."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest_listed",
              "oldest_listed",
              "price_high_to_low",
              "price_low_to_high",
              "recently_updated"
            ],
            "type": "string",
            "description": "Order of the results. Leave empty for the API's default order."
          },
          "minAskingPrice": {
            "title": "Minimum asking price (USD)",
            "type": "integer",
            "description": "Minimum asking price in USD, inclusive."
          },
          "maxAskingPrice": {
            "title": "Maximum asking price (USD)",
            "type": "integer",
            "description": "Maximum asking price in USD, inclusive."
          },
          "minBuildingSqft": {
            "title": "Minimum building sqft",
            "type": "integer",
            "description": "Minimum building area in square feet, inclusive."
          },
          "maxBuildingSqft": {
            "title": "Maximum building sqft",
            "type": "integer",
            "description": "Maximum building area in square feet, inclusive."
          },
          "minLotSqft": {
            "title": "Minimum lot size (sqft)",
            "type": "integer",
            "description": "Minimum lot size in square feet, inclusive. 1 acre = 43,560 sqft."
          },
          "maxLotSqft": {
            "title": "Maximum lot size (sqft)",
            "type": "integer",
            "description": "Maximum lot size in square feet, inclusive. 1 acre = 43,560 sqft."
          },
          "minYearBuilt": {
            "title": "Earliest year built",
            "type": "integer",
            "description": "Earliest construction year to include, inclusive."
          },
          "maxYearBuilt": {
            "title": "Latest year built",
            "type": "integer",
            "description": "Latest construction year to include, inclusive."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Result page to start from (200 listings per page). Combine with Maximum listings to collect a later slice, e.g. Start page 6 with maxItems 1000 returns listings 1001-2000.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum listings to collect",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many listings have been pushed to the dataset (fetched in pages of 200). Caps the run cost.",
            "default": 100
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each API request, in seconds.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}