{
  "openapi": "3.0.1",
  "info": {
    "title": "LoopNet Commercial Property Scraper",
    "description": "Scrape LoopNet US and UK commercial real estate listings, sale/lease details, tax records, and broker directories. Export as JSON, CSV, or Excel.",
    "version": "1.1",
    "x-build-id": "kwFZx7OUJMp8ObciI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~loopnet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-loopnet-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/parsebird~loopnet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-loopnet-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/parsebird~loopnet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-loopnet-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "LoopNet search-result URLs, single listing URLs (/Listing/.../{id}/), US property-record URLs (/property/.../{parcel-id}/), or broker-directory URLs (/commercial-real-estate-brokers/...). Mix US and UK URLs freely — see the README for the full pattern table.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Free-text search query",
            "type": "string",
            "description": "e.g. 'office space Austin Texas' or 'retail space London'. The actor infers the property type and location and builds a search from it. Use this only when you don't already have a Start URL."
          },
          "addresses": {
            "title": "Addresses",
            "type": "array",
            "description": "Street addresses, e.g. '2300 Craftsman Cir, Hyattsville, MD'. LoopNet has no exact-address search, so each address is geocoded to its city and that city is searched.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Transaction type",
            "enum": [
              "for-sale",
              "for-lease",
              "auctions"
            ],
            "type": "string",
            "description": "For-sale vs. for-lease when searching by State/City, searchQuery, or addresses (no Start URL). Ignored for Start URLs — the URL's own /for-lease/ or /for-sale/ segment decides it.",
            "default": "for-sale"
          },
          "State": {
            "title": "US State",
            "enum": [
              "none",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY"
            ],
            "type": "string",
            "description": "Pick a US state to search without a Start URL. Combine with City to narrow it further.",
            "default": "none"
          },
          "City": {
            "title": "City",
            "type": "string",
            "description": "Narrow the State search to one city, e.g. 'Austin'. Leave empty to search the whole state."
          },
          "maxItems": {
            "title": "Max items per Start URL",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum listings/records collected per Start URL. With 3 Start URLs, a run can produce up to this many items x 3.",
            "default": 10000
          },
          "moreResults": {
            "title": "Scrape all available pages",
            "type": "boolean",
            "description": "Page through the full result set instead of stopping after a few pages. LoopNet itself stops listing results after roughly 500-750 per search.",
            "default": false
          },
          "includeListingDetails": {
            "title": "Fetch full listing details",
            "type": "boolean",
            "description": "Visit each listing's own page for the full description, photos, and property-facts table (sale/lease terms, building class, tenure, year built, and more). Slower and charged as a separate event per item.",
            "default": false
          },
          "includePortfolioProperties": {
            "title": "Include portfolio child properties",
            "type": "boolean",
            "description": "When a listing bundles multiple properties (a portfolio), include each individual property's address, size, and coordinates. Only applies when 'Fetch full listing details' is on.",
            "default": false
          },
          "listedInLastDays": {
            "title": "Listed in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings whose 'Date on Market' is within this many days. Requires the listing detail page, so it automatically turns on 'Fetch full listing details'. 0 = no date filter.",
            "default": 0
          },
          "PriceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Drop results priced below this (checked against the scraped listing price)."
          },
          "PriceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Drop results priced above this (checked against the scraped listing price)."
          },
          "BuildingSizeRangeMin": {
            "title": "Min building size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop results smaller than this. Most accurate when 'Fetch full listing details' is on."
          },
          "BuildingSizeRangeMax": {
            "title": "Max building size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop results larger than this. Most accurate when 'Fetch full listing details' is on."
          },
          "monitoringMode": {
            "title": "Monitoring mode: only new listings",
            "type": "boolean",
            "description": "Push and charge only listings that weren't seen on the previous run with the same input.",
            "default": false
          },
          "enablePriceMonitoring": {
            "title": "Track price changes",
            "type": "boolean",
            "description": "Add priceChanged/previousPrice fields when a listing's price differs from the previous run.",
            "default": false
          },
          "transactionTrackingMode": {
            "title": "Track closed listings",
            "type": "boolean",
            "description": "Instead of the normal output, push only listings that disappeared since the previous run (closeStatus: 'removed'), with firstSeenAt/lastSeenAt/previousPrice.",
            "default": false
          },
          "downloadImages": {
            "title": "Download photos",
            "type": "boolean",
            "description": "Save each listing's photos into an Apify key-value store instead of only linking to LoopNet's CDN.",
            "default": false
          },
          "maxImages": {
            "title": "Max photos per listing",
            "minimum": 1,
            "type": "integer",
            "description": "Only used when 'Download photos' is on.",
            "default": 10
          },
          "storeName": {
            "title": "Key-value store name",
            "type": "string",
            "description": "Optional. Name of the key-value store to save photos into (letters, digits, hyphens only). Leave empty to use the run's default store."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum concurrent detail-page fetches. Values below 20 are raised to 20.",
            "default": 20
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum concurrent requests.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 1,
            "type": "integer",
            "description": "How many times to retry a page before giving up on it. LoopNet's Unblocker responses are frequently incomplete on the first try, so a low value will lose data.",
            "default": 8
          },
          "maxUnblockerRequests": {
            "title": "Max Unblocker requests (cost cap)",
            "minimum": 0,
            "type": "integer",
            "description": "Every request this actor makes uses Apify's paid Unblocker proxy group. This caps the total number of such requests in one run so a misconfigured input can't run up a surprise bill. 0 = unlimited.",
            "default": 60
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "loopnet.com blocks datacenter and residential proxy IPs outright (confirmed: both return Akamai's 'Access Denied' page). Only the Unblocker group gets through — keep it selected.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}