API LIBRARY
Collapse Sidebar Menu
Expand Drawer

Open House List

The Open House records can be filtered one any of the data associatedIn order to view a listing of all open house events taking place after Nov 20th, 2018 run the following query:
https://api-prod.corelogic.com/trestle/odata/OpenHouse/?$filter=OpenHouseDate ge 2018-10-09

If you already have the Listing Key for a specific property, you can construct a query to shows all Open House records for the single property like so:
https://api-prod.corelogic.com/trestle/odata/OpenHouse/?$filter=ListingKey eq '135624228'
Examples

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle/odata/OpenHouse/?$filter=ListingKey%20eq%20%27135624228%27' \
  -H 'Authorization: Bearer [token]' \
  -H 'Postman-Token: b0fcd9c9-48ed-44ab-9644-c11c06e88341' \
  -H 'cache-control: no-cache'

Result

(The list of all Open House records for Listing Key 27135624228)

Code Example

<?php

$request = new HttpRequest();
$request->setUrl('https://api-prod.corelogic.com/trestle/odata/OpenHouse/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  '$filter' => 'ListingKey%20eq%20%27135624228%27'
));

$request->setHeaders(array(
  'Postman-Token' => '8fbaa192-0a39-4b9a-9cfe-95dae9b1186e',
  'cache-control' => 'no-cache',
  'Authorization' => 'Bearer [token]'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

Result

(The list of all Open House records for Listing Key 27135624228)