{
  "openapi": "3.0.1",
  "info": {
    "title": "CRE Monitor: New Listings and Price Drops on Crexi and LoopNet",
    "description": "Commercial real estate saved-search monitor for Crexi and LoopNet. Get only what changed since your last run: new listings, price drops, price increases, status changes and removed or sold listings. No login. Export CSV, Excel, JSON, XML.",
    "version": "0.0",
    "x-build-id": "qR8D8lPmxJhfE3qoW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~cre-new-listing-and-price-drop-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-cre-new-listing-and-price-drop-monitor",
        "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/parseforge~cre-new-listing-and-price-drop-monitor/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-cre-new-listing-and-price-drop-monitor",
        "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/parseforge~cre-new-listing-and-price-drop-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-cre-new-listing-and-price-drop-monitor",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Sites to watch: \"crexi\", \"loopnet\" or both. Each site keeps its own saved state.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City to watch, for example Dallas. Leave empty to watch a whole state. A city needs its state."
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "US state as a two-letter code (TX) or full name (Texas)."
          },
          "listingType": {
            "title": "Listing type",
            "type": "string",
            "description": "\"for-sale\" or \"for-lease\". Lease listings come from LoopNet only (Crexi lease search is not available).",
            "default": "for-sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for all types. Valid: office, retail, industrial, land, multifamily, hospitality, flex, special-purpose, health-care, mixed-use, self-storage. Flex and health-care exist on LoopNet only; mixed-use and self-storage on Crexi only.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "type": "integer",
            "description": "Sale price floor. Listings without a numeric price are left out when a price range is set."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "type": "integer",
            "description": "Sale price ceiling. Must not be below the minimum."
          },
          "maxItems": {
            "title": "Listings to check per source",
            "type": "integer",
            "description": "How many listings of the search to read each run. Crexi serves at most 1,499 per search and LoopNet 1,000. A removed or new listing can only be told apart when the whole search fits, so narrow the search (city, type, price) until the total fits under this number. Free plan: 50.",
            "default": 200
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named Key-Value Store that remembers the last run of each saved search. Keep it the same between runs. 3 to 63 letters, digits or hyphens.",
            "default": "cre-monitor-state"
          },
          "searchName": {
            "title": "Search label",
            "type": "string",
            "description": "Optional label copied onto every event, handy when you run several saved searches into one workflow."
          },
          "eventTypes": {
            "title": "Events to report",
            "type": "array",
            "description": "Leave empty for all. Valid: new_listing, price_drop, price_increase, status_change, removed. Filtered events still update the saved state, they are just not reported or charged.",
            "items": {
              "type": "string"
            }
          },
          "minPriceChangePercent": {
            "title": "Ignore price changes below (%)",
            "type": "number",
            "description": "0 reports every change. Small moves below this percent are ignored and the reference price stays, so slow drifts add up and still trigger.",
            "default": 0
          },
          "removalConfirmations": {
            "title": "Runs before a listing counts as removed",
            "type": "integer",
            "description": "A listing is reported removed only after it is missing from this many full reads in a row. 2 avoids false removals from a bad page.",
            "default": 2
          },
          "resetBaseline": {
            "title": "Start a new baseline",
            "type": "boolean",
            "description": "Forget the saved state of this search and record a fresh baseline now (no change events this run).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy for Crexi (optional)",
            "type": "object",
            "description": "Leave Apify Proxy off (recommended): the Actor reads Crexi directly and only moves to Apify datacenter and then residential addresses if Crexi refuses a request, the same way the LoopNet Scraper does. Turn it on to force a proxy for every Crexi request. LoopNet manages its own egress."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}