RealEstateAPI can support multiple types of Commercial searches:
Mutli-Family Commercial Properties
- "mfh_5plus" will return multi-family properties with 5 or more units
- not all properties marked mfh_5plus: true are true commercial as deemed on the county level
- since definitions of commercial multi-family can vary, you can create your own definition using:
- "property_type": "MFR"
- "units_min" & "units_max"
Commercial Land
- perform initial search for property_type: "LAND"
- inspect the "lotInfo.landUse" for "COMMERCIAL" or "Commercial"
Step 1 - hit /v2/PropertySearch (Tip: use "ids_only: true" to prevent double spending your credits
{
"ids_only": true,
"city": "Richmond",
"state": "VA",
"property_type": "LAND"
}Step 2 - hit /v2/PropertyDetail to get access to lotInfo.landUse for each record
for (let id of propertySearchResults.data) {
let result = await hitPropertyDetail(id);
console.log('check if commercial: ', result.lotInfo.landUse);
}
Note: if "COMMERCIAL" or "Commercial" it is land designated for commercial use.
Commercial (General)
- most of our commercial coverage falls in property_type: "OTHER"
- if you want to get specific with a certain category, you can provide a Property Use Code or a List of Property Use Codes
- for example, if I wanted to search for Office Buildings I could use the following codes:
- 136 => COMMERCIAL OFFICE (GENERAL)
- 140 => STORE/OFFICE (MIXED USE)
- 169 => OFFICE BUILDING
- 170 => OFFICE BUILDING (MULTI-STORY)
- 171 => COMMERCIAL OFFICE/RESIDENTIAL (MIXED USE)
- 184 => SKYSCRAPER/HIGH-RISE (COMMERCIAL OFFICES)
{
"state": "VA",
"property_use_code": [136, 140, 169, 170, 171, 184]
}