API LIBRARY
Collapse Sidebar Menu
Expand Drawer

Get Listing By Id

Useful to retrieve property data when you already have the specific ListingId of a certain property.
Examples

Code Example

 https://api-prod.corelogic.com/trestle/odata/Property?Class=Residential&$filter=(ListingId eq '120208')

Result

[all fields for property with ListingId of 120208]

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle/odata/Property?Class=Residential&$filter=%28ListingId%20eq%20%27120208%27%29' \
  -H 'Authorization: Bearer [token]\
  -H 'Postman-Token: 4f8867c8-97ba-4691-8e94-f03efb3537ff' \
  -H 'cache-control: no-cache'

Result

[all fields for property with ListingId of 120208]

Code Example

<?php

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

$request->setQueryData(array(
  'Class' => 'Residential',
  '$filter' => '%28ListingId%20eq%20%27120208%27%29'
));

$request->setHeaders(array(
  'Postman-Token' => 'fefa0f4f-7b01-462f-89d5-8c4be299789c',
  'cache-control' => 'no-cache',
  'Authorization' => 'Bearer [token]
));

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

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

Result

[all fields for property with ListingId of 120208]