{
  "openapi": "3.0.1",
  "info": {
    "title": "Crexi + LoopNet — CRE Listing Extractor",
    "description": "Find for-sale commercial properties on Crexi and LoopNet. Get listings, published cap rate and NOI, brokers, and repeat-run change reports.",
    "version": "0.1",
    "x-build-id": "Hq7acrm4jd81IzaBF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexascout~cre-listing-extractor-staging/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexascout-cre-listing-extractor-staging",
        "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/nexascout~cre-listing-extractor-staging/runs": {
      "post": {
        "operationId": "runs-sync-nexascout-cre-listing-extractor-staging",
        "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/nexascout~cre-listing-extractor-staging/run-sync": {
      "post": {
        "operationId": "run-sync-nexascout-cre-listing-extractor-staging",
        "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 to run",
            "minItems": 1,
            "type": "array",
            "description": "Which source(s) to extract. Runs sequentially (concurrency fixed at 1).",
            "items": {
              "type": "string",
              "enum": [
                "crexi",
                "loopnet"
              ],
              "enumTitles": [
                "Crexi",
                "LoopNet"
              ]
            },
            "default": [
              "crexi",
              "loopnet"
            ]
          },
          "crexi": {
            "title": "Crexi search parameters",
            "type": "object",
            "description": "Crexi universal-search parameters. size is capped at 60 and pages at 2 by the verified code.",
            "properties": {
              "city": {
                "title": "City filter",
                "type": "string",
                "description": "Optional city filter (matched against address.city). Empty = no city filter.",
                "prefill": "Freeport",
                "default": "Freeport"
              },
              "state": {
                "title": "State filter",
                "type": "string",
                "description": "Optional two-letter US state code (e.g. TX). Requested server-side via address.stateCode, but server geo filters are NOT reliable, so a RESULT-LEVEL city/state filter excludes known mismatches from valid results. Disambiguates ambiguous city names (e.g. Freeport exists in FL/IL/ME/NY/TX). Omit for no state filter."
              },
              "size": {
                "title": "Page size",
                "description": "Maximum search records per page.",
                "type": "integer",
                "minimum": 1,
                "maximum": 60,
                "default": 5
              },
              "pages": {
                "title": "Page count",
                "description": "Maximum pages; zero retries after rate limiting.",
                "type": "integer",
                "minimum": 1,
                "maximum": 2,
                "default": 2
              },
              "refreshIds": {
                "title": "Direct-refresh listing ids",
                "type": "array",
                "description": "Optional. If set, run a bounded direct-URL refresh for these listing ids (single request, no pagination) instead of a city/state search. Each id must be a bare numeric (e.g. \"2654193\") or a sales-prefixed id (\"sales-2654193\"); bare numerics are normalized to the proven sales-prefixed API form. An EMPTY array is invalid (no discovery fallback).",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "maxItems": 60
              }
            }
          },
          "loopnet": {
            "title": "LoopNet parameters",
            "type": "object",
            "description": "LoopNet regional FOR-SALE discovery (city+state) + direct-URL refresh + global NewListings sitemap sampling. maxListings is capped at 20. Regional search uses the api.loopnet.com city/state for-sale page (VERIFIED) with strict city-vs-metro labeling.",
            "properties": {
              "city": {
                "title": "City (regional for-sale search)",
                "type": "string",
                "description": "Optional city for LoopNet regional FOR-SALE discovery (must be provided together with state; omit both for global sitemap sampling). A blank or whitespace-only value is rejected, never silently rerouted to the sitemap. When set, the Actor fetches the api.loopnet.com city/state for-sale search page (VERIFIED route). The search is METRO-scoped; each listing carries a geo_filter marking exact city matches vs same-state metro neighbors (never silently presented as all-city)."
              },
              "state": {
                "title": "State (regional for-sale search)",
                "type": "string",
                "description": "Optional two-letter US state code (e.g. TX) for LoopNet regional FOR-SALE discovery. Must be provided together with city; omit both for global sitemap sampling. A blank or whitespace-only value is rejected (no silent fallback to the sitemap)."
              },
              "maxListings": {
                "title": "Max listings",
                "description": "Maximum listings to inspect/emit (regional search) or discover (sitemap sampling).",
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "default": 3
              },
              "refreshUrls": {
                "title": "Direct-refresh listing URLs",
                "type": "array",
                "description": "Optional. If set, run a bounded direct-URL refresh for these saved listing URLs (single request each, no repeat) instead of sitemap sampling. Each URL must be a parseable /Listing/{slug}/{id}/ form. An EMPTY array is invalid (no discovery fallback).",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "maxItems": 20
              }
            }
          },
          "monitoring": {
            "title": "Repeat-run monitoring",
            "type": "object",
            "description": "Repeat-run change detection. When enabled (default), the Actor reads the durable LISTING_STATE record from a NAMED key-value store (scoped by `namespace`), compares it to this run, emits a new/changed/unchanged change report (dataset + CHANGE_REPORT key), and updates the durable state. Scheduled execution is NOT turned on by this flag. Removed listings are NEVER inferred from bounded coverage.",
            "properties": {
              "enabled": {
                "title": "Enable monitoring",
                "type": "boolean",
                "description": "Enable repeat-run change detection and durable state persistence.",
                "default": true
              },
              "namespace": {
                "title": "Monitoring namespace",
                "type": "string",
                "description": "Optional stable scope for the durable monitoring history. The state lives in a named key-value store (cre-monitoring-<namespace>) that persists across runs, unlike the per-run default store. When OMITTED or empty, a stable namespace is derived from the search scope (sources + Crexi city/state/refreshIds + LoopNet city/state/refreshUrls), so independent regional scopes (e.g. Dallas TX vs Houston TX) do NOT share history while the SAME scheduled search stays stable. Set an explicit namespace to share history across scopes/users or to group searches.",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,47}$",
                "maxLength": 48
              }
            }
          },
          "budget": {
            "title": "Hard run budgets",
            "type": "object",
            "description": "Per-source request / byte / time limits. These are the same hard limits the verified transport enforces; lowering them is allowed, raising them above the maxima is rejected.",
            "properties": {
              "maxRequestsPerSource": {
                "title": "Max requests per source",
                "description": "Request attempts per source, including failures and redirects.",
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "default": 20
              },
              "maxTotalBytesPerSource": {
                "title": "Max total decoded bytes per source",
                "description": "Maximum decoded response bytes received per source.",
                "type": "integer",
                "minimum": 1,
                "maximum": 104857600,
                "default": 26214400
              },
              "maxPerResponseBytes": {
                "title": "Max bytes per response",
                "description": "Maximum decoded bytes accepted in one response.",
                "type": "integer",
                "minimum": 1,
                "maximum": 52428800,
                "default": 5242880
              },
              "perRequestTimeoutSeconds": {
                "title": "Per-request timeout (s)",
                "description": "Individual HTTP request timeout in seconds.",
                "type": "number",
                "minimum": 1,
                "maximum": 60,
                "default": 20
              },
              "maxProbeSeconds": {
                "title": "Max probe time (s)",
                "description": "Per-source probe budget in seconds, not a research deadline.",
                "type": "number",
                "minimum": 1,
                "maximum": 300,
                "default": 90
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}