scrapebadger 0.43.1 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.43.0";
12
+ var SDK_VERSION = "0.44.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -7897,6 +7897,27 @@ var PropertiesClient2 = class {
7897
7897
  async getProperty(zpid) {
7898
7898
  return this.client.request(`/v1/zillow/property/${zpid}`);
7899
7899
  }
7900
+ /**
7901
+ * Get a Zillow multifamily building (apartment community) by its URL.
7902
+ *
7903
+ * Zillow serves multi-unit rentals on `/apartments/...` and `/b/...` pages,
7904
+ * which {@link getProperty} cannot read. Pass the `detail_url` of a search
7905
+ * result whose `home_type` is `"BUILDING"`.
7906
+ *
7907
+ * Returns floor plans and every available unit with rent, base rent,
7908
+ * required monthly fees, sqft, beds/baths and move-in date, plus amenities,
7909
+ * unit features, policies, special offers, office hours, pet policy,
7910
+ * schools, photos and walk/transit/bike scores.
7911
+ *
7912
+ * @param url - Full Zillow building URL.
7913
+ * @returns Building detail wrapped in `{ building }`.
7914
+ * @throws NotFoundError - If the building doesn't exist.
7915
+ */
7916
+ async getBuilding(url) {
7917
+ return this.client.request("/v1/zillow/building", {
7918
+ params: { url }
7919
+ });
7920
+ }
7900
7921
  };
7901
7922
 
7902
7923
  // src/zillow/agent.ts