{
  "openapi": "3.0.1",
  "info": {
    "title": "Commercial Real Estate Deal Finder: LoopNet + Crexi Deal Score",
    "description": "Find underpriced US commercial properties for sale. Combines LoopNet and Crexi, removes duplicates and scores every listing 0-100 on below-market price per sqft, cap rate spread, price cuts, days on market and motivated-seller language. Daily alerts for new deals and price drops.",
    "version": "0.1",
    "x-build-id": "nfYbOHjNyFiNO5ANI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nextgenmedia~cre-deal-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nextgenmedia-cre-deal-finder",
        "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/nextgenmedia~cre-deal-finder/runs": {
      "post": {
        "operationId": "runs-sync-nextgenmedia-cre-deal-finder",
        "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/nextgenmedia~cre-deal-finder/run-sync": {
      "post": {
        "operationId": "run-sync-nextgenmedia-cre-deal-finder",
        "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": {
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "US cities to search, as \"City, ST\". One per line, e.g. Austin, TX.",
            "default": [
              "Austin, TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "multifamily",
              "retail",
              "office",
              "industrial",
              "land",
              "hospitality",
              "self-storage",
              "mixed-use",
              "special-purpose"
            ],
            "type": "string",
            "description": "Type of commercial property to find. \"Any commercial\" searches all types.",
            "default": "any"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which portals to search. Using both finds more deals and removes duplicates between them.",
            "items": {
              "type": "string",
              "enum": [
                "loopnet",
                "crexi"
              ],
              "enumTitles": [
                "LoopNet",
                "Crexi"
              ]
            },
            "default": [
              "loopnet",
              "crexi"
            ]
          },
          "minPrice": {
            "title": "Min asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings with an asking price at or above this amount (USD). Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Max asking price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings with an asking price at or below this amount (USD). Leave empty for no maximum."
          },
          "minDealScore": {
            "title": "Minimum Deal Score (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "35+ = warm, 60+ = hot. You only pay for listings you receive.",
            "default": 0
          },
          "onlyBelowMarket": {
            "title": "Only listings priced below the market median $/sqft",
            "type": "boolean",
            "description": "Keep only listings whose price per sqft is below the median of similar properties in the same market.",
            "default": false
          },
          "monitorMode": {
            "title": "Daily deal alerts (monitor mode)",
            "type": "boolean",
            "description": "Schedule the same input daily. After the first run you only receive NEW listings and listings whose price dropped since the last run.",
            "default": false
          },
          "maxListingsPerSource": {
            "title": "Max listings per source per market",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "How many listings to collect from each portal per market before scoring. More listings give better market benchmarks but take longer (50 ≈ 2–3 minutes).",
            "default": 50
          },
          "includeBrokerContacts": {
            "title": "Include broker contact details",
            "type": "boolean",
            "description": "Fetches broker name, company and phone where public. Slower, and adds the source Actors' detail-page charges.",
            "default": false
          },
          "loopnetStartUrls": {
            "title": "LoopNet search URLs (optional)",
            "type": "array",
            "description": "Paste LoopNet for-sale search URLs to use your exact filters instead of Markets.",
            "items": {
              "type": "string"
            }
          },
          "crexiStartUrls": {
            "title": "Crexi search URLs (optional)",
            "type": "array",
            "description": "Paste Crexi property search URLs to use your exact filters instead of Markets.",
            "items": {
              "type": "string"
            }
          },
          "sourceTimeoutSecs": {
            "title": "Time limit for each source run (seconds)",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "LoopNet and Crexi runs are stopped after this time and whatever they collected is scored. Raise it for very large searches.",
            "default": 200
          },
          "sourceMemoryMbytes": {
            "title": "Memory for each source run (MB)",
            "minimum": 1024,
            "maximum": 16384,
            "type": "integer",
            "description": "Memory for each LoopNet / Crexi run. The default works for most searches.",
            "default": 4096
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}