{
  "openapi": "3.0.1",
  "info": {
    "title": "LoopNet Scraper – CRE Listings, Brokers & Deal Intel",
    "description": "Collect LoopNet commercial property searches and full listing details with prices, cap rates, building facts, brokers, photos, transit, traffic and change monitoring. Export analysis-ready US CRE data as JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "5SBXIIamDAdtojDdN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~loopnet-commercial-real-estate-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-loopnet-commercial-real-estate-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/trakk~loopnet-commercial-real-estate-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trakk-loopnet-commercial-real-estate-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/trakk~loopnet-commercial-real-estate-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-loopnet-commercial-real-estate-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": {
          "mode": {
            "title": "🎯 Workflow",
            "enum": [
              "SEARCH",
              "LISTING_DETAILS",
              "SEARCH_FULL",
              "MONITOR"
            ],
            "type": "string",
            "description": "Choose fast search cards, full details for known listings, search with full enrichment, or recurring change monitoring.",
            "default": "SEARCH"
          },
          "searchUrls": {
            "title": "🔎 LoopNet search URLs",
            "type": "array",
            "description": "SEARCH, SEARCH_FULL, or MONITOR. Paste one or more LoopNet /search/ URLs; their property and deal filters are preserved.",
            "default": [
              {
                "url": "https://www.loopnet.com/search/office-space/los-angeles-ca/for-lease/"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locations": {
            "title": "📍 Locations",
            "type": "array",
            "description": "SEARCH, SEARCH_FULL, or MONITOR. One US city/state, state, ZIP, or market phrase per entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "🏢 LoopNet listing URLs",
            "type": "array",
            "description": "LISTING_DETAILS only. Paste direct LoopNet /Listing/ URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "🆔 Listing IDs",
            "type": "array",
            "description": "LISTING_DETAILS only. Add 7–10 digit LoopNet listing IDs as strings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dealType": {
            "title": "🤝 Deal type",
            "enum": [
              "FOR_SALE",
              "FOR_LEASE",
              "AUCTIONS"
            ],
            "type": "string",
            "description": "Used for location-built searches. Complete LoopNet search URLs preserve their own deal type.",
            "default": "FOR_SALE"
          },
          "propertyType": {
            "title": "🏗️ Property type",
            "enum": [
              "ALL",
              "OFFICE",
              "RETAIL",
              "INDUSTRIAL",
              "LAND",
              "MULTIFAMILY",
              "HOSPITALITY",
              "HEALTHCARE",
              "SPECIALTY",
              "SPORTS_ENTERTAINMENT"
            ],
            "type": "string",
            "description": "Used for location-built searches. Complete LoopNet search URLs preserve their own property type.",
            "default": "ALL"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep records at or above this normalized asking price; records without a price cannot pass this filter."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Keep records at or below this normalized asking price; records without a price cannot pass this filter."
          },
          "minBuildingSize": {
            "title": "Minimum building size (SF)",
            "minimum": 0,
            "type": "number",
            "description": "Keep records at or above this normalized building square footage."
          },
          "maxBuildingSize": {
            "title": "Maximum building size (SF)",
            "minimum": 0,
            "type": "number",
            "description": "Keep records at or below this normalized building square footage."
          },
          "minCapRate": {
            "title": "Minimum cap rate (%)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Keep records at or above this source-published capitalization rate."
          },
          "maxCapRate": {
            "title": "Maximum cap rate (%)",
            "minimum": 0,
            "maximum": 50,
            "type": "number",
            "description": "Keep records at or below this source-published capitalization rate."
          },
          "maxItems": {
            "title": "💯 Maximum saved records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total successfully saved unique records per run. Filtered, duplicate, failed, and unchanged monitoring candidates do not consume the allowance.",
            "default": 5
          },
          "maxPages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum result pages for each search source.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Full-detail concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of property detail requests processed concurrently in SEARCH_FULL, LISTING_DETAILS, and MONITOR.",
            "default": 8
          },
          "emitUnchanged": {
            "title": "Include unchanged records",
            "type": "boolean",
            "description": "MONITOR only. Include records whose tracked price and status did not change.",
            "default": false
          },
          "emitRemoved": {
            "title": "Detect removed listings",
            "type": "boolean",
            "description": "MONITOR only. Emit removed records only after an exhaustive, uncapped source scan.",
            "default": false
          },
          "includeRawSource": {
            "title": "Preserve raw source blocks",
            "type": "boolean",
            "description": "Keep the lossless JSON-LD, source attributes, and listing state used for field provenance.",
            "default": true
          },
          "maxRetries": {
            "title": "Retries per page",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Additional attempts for temporary source, connection, or rate-limit failures.",
            "default": 2
          },
          "requestTimeoutSec": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum seconds allowed for one source request.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Connection settings",
            "type": "object",
            "description": "Connection settings used for source requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}