Open2view API - Documentation - Properties

API Home > Properties

Any questions regarding this interface please address to webmaster@open2view.com

Get a list of all your properties


GET https://api.open2view.com/au/properties.xml?{search_criteria}

GET https://api.open2view.com/au/properties.json?{search_criteria}

Get a list of all your properties. Optional search criteria will limit the results returned.

Try it yourself with the following form:

Open2view ID#:
Agency ID#:
Agent ID#:
Street Number:
Street Name:
Price From:
Price To:
Category:
Status:
Property Type:
Price Type:
Bedrooms:
Bathrooms:
Geo:
Latitude:
Longitude:
Radius:
Featured:
Approved From:
Approved To:
Details:
Limit:
Offset:
Order:

Possible search criteria

Key Example Notes
id /properties.xml?id=123456
/properties.xml?id[]=123456&id[]=111222
Open2view ID
Could also use /properties/123456.xml which will return a single resource
agency_id /properties.xml?agency_id=ABC123
/properties.xml?agency_id[]=ABC123&agency_id[]=ZYX987
Your agency's reference number for the property
agent_id /properties.xml?agent_id=123
/properties.xml?agent_id[]=123&agent_id[]=987
Get properties for an agent with the given Open2view ID
street_number /properties.xml?street_number=5 The property's street number
street_name /properties.xml?street_name=Grey%20St The property's street name
price_from /properties.xml?price_from=200000 Find all properties with price greater than given price
price_to /properties.xml?price_to=500000 Find all properties with price less than given price
category /properties.xml?category=residential
/properties.xml?category[]=residential&category[]=commercial
Find all properties with given category. See appendix for possible options.
status /properties.xml?status=sold
/properties.xml?status[]=current&status[]=contract
Find all properties with given status. See appendix for possible options.
property_type /properties.xml?property_type=house
/properties.xml?property_type[]=house&property_type[]=apartment
Find all properties with given property type (eg. house, retail, vineyard). See appendix for possible options.
price_type /properties.xml?price_type=auction
/properties.xml?price_type[]=auction&price_type[]=tender
Find all properties with given price_type (eg. auction, tender, pbn). See appendix for possible options.
bedrooms /properties.xml?bedrooms=3 Find all properties with given number of bedrooms
bathrooms /properties.xml?bathrooms=2 Find all properties with given number of bathrooms
geo /properties.xml?geo[lat]=-41.244772&geo[long]=172.617188&geo[rad]=5 Find all the properties within radius kilometres of the specified latitude and longitude
featured /properties.xml?featured=true Return only featured properties
approved_from /properties.xml?approved_from=20091001 Find all properties approved after the specified date (yyyymmdd)
approved_to /properties.xml?approved_to=20091031 Find all properties approved before the specified date (yyyymmdd)
detail /properties.xml?detail=full Get either a limited or full set of details (short or full).
You need permission to access full details.
limit /properties.xml?limit=10 Limit the number of results
offset /properties.xml?offset=10 Offset from where the results should be returned.
order /properties.xml?order=agency_id
/properties.xml?order[]=status&order[]=approved
The field the results should be ordered by. See appendix for possible options.

Notes:

  1. If the Open2view ID is specified, it will be used and all other fields will be ignored
  2. If the Agency ID is specified, only the property that matches the Agency ID will be returned. Other fields will be ignored.
  3. Otherwise, if multiple conditions are supplied, only properties matching all conditions will be returned.

List of returned attributes for each property in the list

Key Notes Detail
idOpen2view IDShort and full
agency_idThe agency's unique identifier for that propertyShort and full
last_updatedDate property was last updated on open2view.comShort and full
approvedDate property was approved (made live) on open2view.comShort and full
addressStreet number and name. Also a display element which will be either true or false.Short and full
statusOpen2view's status. One of CURRENT, CONTRACT, SOLD, RENTEDShort and full
latitudeLatitude of propertyShort and full
longitudeLongitude of property Short and full
priceThe price to be displayed for the property. Could be a dollar amount, or a string like "Auction", or a combination.Full Only
price_fromThe raw priceFull Only, when a client is specified
price_toThe raw price when a range has been specifiedFull Only, when a client is specified
categoryEither Residential, Commercial or AgriculturalFull Only
property_typeThe type of property (eg. House, Retail, Vineyard)Full Only
suburbEg. Te AroFull Only
areaEg. Wellington CentralFull Only
regionEg. WellingtonFull Only
bedroomsThe number of bedroomsFull Only
bathroomsThe number of bathroomsFull Only
floor_sizeThe floor size of the house in square metresFull Only
lot_sizeThe area of the property in square metresFull Only
built_inThe year the property was built (freeform field). Eg. 1998, 1950s, 1970-1975Full Only
descriptionA short version of the description of the property (up to 100 characters)Full Only
photosCount of photos for this propertyShort and full
A list of the photos for that property. Each photo element gives a url for the photo and thumbnail, the photo type (Normal, Elevated or Night), caption, and position (the order of the photos).Full Only
virtualtoursCount of virtual tours for this propertyShort and full
A list of the virtual tours for that property. Each virtualtour element gives a url for the virtual tour and thumbnail, caption, and position (the order).Full Only
floorplansCount of floorplans for this property.Short and full
A list of the floorplans for that property. Each floorplan element gives a url for the floorplan and thumbnail, caption, and position (the order).Full Only
agentsA list of the agents for that property. Includes a count. Each agent element gives their name and Open2view ID.Short and full
openhomesA list of the current openhomes for the property. Includes a count. Each openhome element gives the start and end of the open home as datetimes.Full Only

XML Response example

HTTP/1.1 200 OK
Date: Thu, 07 Feb 2008 00:15:32 GMT
Content-Type: application/xml
Encoding: UTF-8
Content-Length: 13219

<?xml version="1.0" encoding="UTF-8"?>
<properties count="10">
 <property last_updated="Fri Jan 04 19:01:48 +1300 2008" id="162528">
   <address display="true">614 Moonshine Hill Road</address>
   <agency_id>57886</agency_id>
   <status>CURRENT</status>
   <latitude>-41.0949013784599</latitude>
   <longitude>175.005694627762</longitude>
   <photos count="8">
     <photo type="Normal" caption="" position="1" thumbnail="http://www.nz.open2view.com/assets/property/100/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg">http://www.nz.open2view.com/assets/property/XL/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg</photo>
     ...
   </photos>
   <virtualtours count="8">
     <virtualtour caption="Big Front lawn" position="0" thumbnail="http://www.nz.open2view.com/assets/property/66/7/e/7e4ef33ae024d687d8eb06af315efd776e0dbb0a.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=0</virtualtour>
     ...
   </virtualtours>
   <floorplans count="0">
   </floorplans>
 </property>
 ...
</properties>

JSON Response example

{
 "properties":
 {
  "count":"10",
  "property":
  [
   {
    "id":"162528",
    "last_updated":"Fri Jan 04 19:01:48 +1300 2008",
    "status":"CURRENT",
    "address":{"display":"true","address":"614 Moonshine Hill Road"},
    "agency_id":"57886",
    "latitude":"-41.0949013784599",
    "longitude":"175.005694627762",
    "floorplans":{"count":"0"},
    "photos":
    {
     "count":"8",
     "photo":
     [
      {
       "thumbnail":"http://www.nz.open2view.com/assets/property/100/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg",
       "type":"Normal",
       "caption":"",
       "position":"1",
       "url":"http://www.nz.open2view.com/assets/property/XL/c/9/c98845b78d081624a1303c322522edd01f5dfda.jpeg"
      },
      ...
     ]
    },
    "virtualtours":
    {
     "count":"8",
      "virtualtour":
      [
       {
        "thumbnail":"http://www.nz.open2view.com/assets/property/66/7/e/7e4ef33ae024d687d8eb06af315efd776e0dbb0a.jpeg",
        "caption":"Big Front lawn",
        "position":"0",
        "url":"http://www.nz.open2view.com/tour/virtual/162528?num=0"
       },
       ...
     ]
    }
   },
   ...
  ]
 }
}


Errors


If there are any problems with the supplied search criteria then a list of errors will be returned instead of a list of properties

XML Response error example

HTTP/1.1 200 OK
Date: Thu, 07 Feb 2008 00:15:32 GMT
Content-Type: application/xml
Encoding: UTF-8
Content-Length: 13219

<?xml version="1.0" encoding="UTF-8"?>
<errors count="2">
 <error field="approved_from">
   Invalid date supplied for Approved From. Please refer to documentation appendix for correct date format.
 </error>
 <error field="category">
   Category must be one of the following: Residential, Agricultural, and Commercial
 </error>
</errors>

JSON Response error example

{
 "errors":
 {
  "count":"2",
  "error":
  [
   {
    "field":"approved_from",
    "message":"Invalid date supplied for Approved From. Please refer to documentation appendix for correct date format.",
   },
   {
    "field":"category",
    "message":"Category must be one of the following: Residential, Agricultural, and Commercial",
   }
  ]
 }
}


Get a single property


GET https://api.open2view.com/au/properties/{id}.xml

GET https://api.open2view.com/au/properties/{id}.json

Get all details of a single property with id of {id}

XML Response example

HTTP/1.1 200 OK
Date: Thu, 07 Feb 2008 00:15:32 GMT
Content-Type: application/xml
Encoding: UTF-8
Content-Length: 13219

<?xml version="1.0" encoding="UTF-8"?>
<property last_updated="Fri Jan 04 19:01:48 +1300 2008" id="162528">
  <address display="true">614 Moonshine Hill Road</address>
  <agency_id>57886</agency_id>
  <status>CURRENT</status>
  <latitude>-41.0949013784599</latitude>
  <longitude>175.005694627762</longitude>
  <price>BBO $1,150,000</price>
  <price_from>1150000</price_from>
  <price_to></price_to>
  <category>Residential</category>
  <property_type>Lifestyle Property</property_type>
  <suburb>Pauatahanui</suburb>
  <area>Porirua</area>
  <region>Wellington</region>
  <bedrooms>5</bedrooms>
  <bathrooms>2</bathrooms>
  <floor_size>275</floor_size>
  <lot_size>158600</lot_size>
  <built_in>2006</built_in>
  <description>Rarely do you find ...</description>
  <photos count="8">
    <photo type="Normal" caption="" position="1" thumbnail="http://www.nz.open2view.com/assets/property/100/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg">http://www.nz.open2view.com/assets/property/XL/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg</photo>
    ...
  </photos>
  <virtualtours count="8">
    <virtualtour caption="Big Front lawn" position="0" thumbnail="http://www.nz.open2view.com/assets/property/66/7/e/7e4ef33ae024d687d8eb06af315efd776e0dbb0a.jpeg">http://www.nz.open2view.com/tour/virtual/162528?num=0</virtualtour>
    ...
  </virtualtours>
  <floorplans count="0">
  </floorplans>
  <openhomes count="1">
   <openhome>
    <start>2009-10-31 13:00:00</start>
    <end>2009-10-31 13:30:00</end>
   </openhome>
  </openhomes>
  <agents count="1">
   <agent id="123">Brent Cottle</agent>
  </agents>
</property>

JSON Response example

{
 "property":
 {
  "id":"162528",
  "last_updated":"Fri Jan 04 19:01:48 +1300 2008",
  "status":"CURRENT",
  "address":{"display":"true","address":"614 Moonshine Hill Road"},
  "agency_id":"57886",
  "latitude":"-41.0949013784599",
  "longitude":"175.005694627762",
  "floorplans":{"count":"0"},
  "price":"BBO $1,150,000",
  "price_from":"1150000",
  "price_to":null,
  "category":"Residential",
  "property_type":"Lifestyle Property",
  "suburb":"Pauatahanui",
  "area":"Porirua",
  "region":"Wellington",
  "bedrooms":"5",
  "bathrooms":"2",
  "floor_size":"275",
  "lot_size":"158600",
  "built_in":"2006",
  "description":"Rarely do you find ... ",
  "photos":
  {
   "count":"8",
   "photo":
   [
    {
    "thumbnail":"http://www.nz.open2view.com/assets/property/100/c/9/c98845b78d081624a1303c322522edd01f5df0da.jpeg",
    "type":"Normal",
    "caption":"",
    "position":"1",
    "url":"http://www.nz.open2view.com/assets/property/XL/c/9/c98845b78d081624a1303c322522edd01f5dfda.jpeg"
    },
    ...
   ]
  },
  "virtualtours":
  {
   "count":"8",
   "virtualtour":
   [
    {
    "thumbnail":"http://www.nz.open2view.com/assets/property/66/7/e/7e4ef33ae024d687d8eb06af315efd776e0dbb0a.jpeg",
    "caption":"Big Front lawn",
    "position":"0",
    "url":"http://www.nz.open2view.com/tour/virtual/162528?num=0"
    },
    ...
   ]
  },
  "openhomes":
  {
   "count":"1",
   "openhome":
   {
    "start":"2009-10-31 13:00:00",
    "end":"2009-10-31 13:30:00"
   }
  },
  "agents":
  {
   "count":"1",
   "agent":
   [
    {
     "id":"123",
     "name":"Brent Cottle"
    }
   ]
  }
 }
}


Errors


If the property can't be found, a single error will be returned.

XML Response error example

HTTP/1.1 200 OK
Date: Thu, 07 Feb 2008 00:15:32 GMT
Content-Type: application/xml
Encoding: UTF-8
Content-Length: 13219

<?xml version="1.0" encoding="UTF-8"?>
<error>
  Couldn't find a property with that ID
</error>

JSON Response error example

{
 "error":"Couldn't find a property with that ID"
}