{
  "openapi": "3.0.1",
  "info": {
    "title": "LoopNet Scraper - Commercial Real Estate, Spaces & Brokers",
    "description": "Scrape LoopNet commercial real estate for sale, for lease or at auction by city, state or search link: price, cap rate, size, units, brokers, photos. Add the full listing page (facts, spaces with rent, broker phones, taxes) and LoopNet's broker directory with phones.",
    "version": "0.1",
    "x-build-id": "3UyLxIwDcVtn5hopz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~loopnet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-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/topapi~loopnet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-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/topapi~loopnet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "US places to search, one per line: a city with its state (\"Dallas, TX\"), a county (\"Dallas County, TX\"), a neighborhood slug from a LoopNet link (\"manhattan-ny\"), a state (\"TX\" or \"Texas\") or \"USA\". Each place is searched once per search type and property type below.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search type",
            "type": "string",
            "description": "For sale, for lease or at auction. Other LoopNet actors' values (For_Lease, sale, lease, office-space...) are understood too.",
            "default": "for-sale"
          },
          "propertyType": {
            "title": "Property type",
            "type": "string",
            "description": "LoopNet's property type. Types LoopNet only lists for sale (multifamily, hotels...) are skipped on a for-lease search; coworking is for lease only. Other LoopNet actors' values (For_Lease, sale, lease, office-space...) are understood too.",
            "default": "all"
          },
          "startUrls": {
            "title": "LoopNet links",
            "type": "array",
            "description": "Links copied from loopnet.com: a search results page (filters you set on the site, kept in its sk= key, are kept), a listing page, a broker directory page or a broker profile. Plain listing ids work too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "The most listing rows this run delivers and charges, over all searches. 0 = no limit. LoopNet shows at most 750 results per search: split a big market by city or property type for more.",
            "default": 100
          },
          "includeListingDetails": {
            "title": "Full listing page (add-on)",
            "type": "boolean",
            "description": "Reads each delivered listing's own page and adds: the full description and highlights, every property fact (class, year built and renovated, stories, lot, zoning, parking, ceiling height...), every available space with its size, term and rent, all brokers with title, phone and profile, the listing phone, date on market, property taxes and parcel number, walk / transit / bike / drive scores, every photo, the brochure and attachments. Charged per listing that carries it.",
            "default": false
          },
          "priceMin": {
            "title": "Min price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Sale price, or the asking rent on a for-lease search. Checked on each listing before it is delivered or charged."
          },
          "priceMax": {
            "title": "Max price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Sale price, or the asking rent on a for-lease search."
          },
          "sizeMin": {
            "title": "Min size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Building size, or the largest available space on a for-lease listing."
          },
          "sizeMax": {
            "title": "Max size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Building size, or the largest available space."
          },
          "capRateMin": {
            "title": "Min cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "For example 6 or 6.5."
          },
          "capRateMax": {
            "title": "Max cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "For example 9."
          },
          "yearBuiltMin": {
            "title": "Built in or after (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "Year built, as LoopNet states it."
          },
          "yearBuiltMax": {
            "title": "Built in or before (year)",
            "minimum": 1700,
            "type": "integer",
            "description": "Year built, as LoopNet states it."
          },
          "unitsMin": {
            "title": "Min units",
            "minimum": 0,
            "type": "integer",
            "description": "Unit count (multifamily)."
          },
          "unitsMax": {
            "title": "Max units",
            "minimum": 0,
            "type": "integer",
            "description": "Unit count (multifamily)."
          },
          "listedInLastDays": {
            "title": "Listed in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings put on the market in the last N days. The date on market is on the listing page, so this filter works with the Full listing page add-on on. 0 = off.",
            "default": 0
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep only listings whose title, address, summary or description holds one of these words (for example \"drive-thru\", \"NNN\").",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop listings holding any of these words.",
            "items": {
              "type": "string"
            }
          },
          "strictFilters": {
            "title": "Drop listings that don't state a filtered value",
            "type": "boolean",
            "description": "Off: a listing that states no value for a filter (most lease listings state no cap rate) is kept and lists the filter in unverifiedFilters. On: it is dropped.",
            "default": false
          },
          "excludePortfolios": {
            "title": "Exclude portfolio listings",
            "type": "boolean",
            "description": "Drop listings that sell several properties together.",
            "default": false
          },
          "onlyWithPrice": {
            "title": "Only listings with a stated price",
            "type": "boolean",
            "description": "Drop \"Price Upon Request\" listings.",
            "default": false
          },
          "brokerLocations": {
            "title": "Broker directory: places",
            "type": "array",
            "description": "LoopNet's broker directory for a city (\"Dallas, TX\") or a state (\"TX\"): one row per broker with name, company, title line, location, listing count, languages, office and mobile phone, photo and profile link.",
            "items": {
              "type": "string"
            }
          },
          "maxBrokers": {
            "title": "Max brokers",
            "minimum": 0,
            "type": "integer",
            "description": "The most broker rows this run delivers and charges. 0 = no limit.",
            "default": 100
          },
          "includeBrokerDetails": {
            "title": "Broker profile (bio, specialties, markets, website)",
            "type": "boolean",
            "description": "Reads each broker's profile page and adds the bio, specialties, property types, markets, education and company website. Part of the broker row price.",
            "default": false
          },
          "propertyAddresses": {
            "title": "Property records: addresses",
            "type": "array",
            "description": "US street addresses (\"1221 N Pecan St, Abbott, TX 76621\"). Each is looked up in LoopNet's property records and returns one row: APN / parcel id, legal description, land use, county, flood zone, zoning, lot and building size, tax and assessment years, submarket, census tract and the 1 / 3 / 5-mile demographics. LoopNet property-record links (loopnet.com/property/...) work in LoopNet links too.",
            "items": {
              "type": "string"
            }
          },
          "listingIds": {
            "title": "Listing ids",
            "type": "array",
            "description": "LoopNet listing ids (the number at the end of a listing link). Each is read from its own page, with the full listing page included.",
            "items": {
              "type": "string"
            }
          },
          "monitoringMode": {
            "title": "Monitor mode (only new and changed listings)",
            "type": "boolean",
            "description": "Remembers every listing delivered for this input. Later runs deliver only listings that are new or whose price changed (changeType NEW / UPDATED), so a schedule charges only for what changed.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Runs with the same name share one memory; empty = one memory per input."
          },
          "emitUnchanged": {
            "title": "Deliver unchanged listings too",
            "type": "boolean",
            "description": "In monitor mode, also deliver (and charge) listings that did not change (changeType UNCHANGED).",
            "default": false
          },
          "resetMonitor": {
            "title": "Start the monitor over",
            "type": "boolean",
            "description": "Forget what earlier runs delivered for this input.",
            "default": false
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "A per-search limit on top of Max listings. 0 = none.",
            "default": 0
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "LoopNet result pages (25 listings each) read per search, up to 30. 0 = all.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Pages read at once.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: the actor reads LoopNet on its own address and moves to Apify datacenter, then Apify residential (US) proxies only when an address is refused. Choose proxy groups or your own proxy URLs to read through them first.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}