API LIBRARY
Collapse Sidebar Menu
Expand Drawer

Get Modified Listings

Getting the entire dataset is very resource intensive and might result in timeouts. There are some limits in the records return, which are usually between 10,000 to 50,000 records, depending on the dataset. The best way to overcome these limits and avoid the timeouts is to download in batches.

Get all ListingKey without any other fields. The ListingKey field is not subject to limits
o https://api-prod.corelogic.com/trestle/odata/Property?$filter=OriginatingSystemName+eq+'CTEXAS'+and+StandardStatus+eq+'Active'&$select=ListingKey

Make consecutive batch calls, with 50 ListingKeys on each call, to get full listing attributes
o https://api-prod.corelogic.com/trestle/odata/Property?$filter=ListingKey+eq+'252598383'+or+ ListingKey+eq+'252598633'+or+ ListingKey+eq+ '252598933'…..
Examples

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle/odata/Property?$filter=ModificationTimestamp%20ge%202018-11-21' \
  -H 'Authorization: Bearer [token]' \
  -H 'Postman-Token: 82b1e9b1-5ab1-42b1-8fba-ff28bfbf3bcf' \
  -H 'cache-control: no-cache'

Result

(all records updated since November 21, 2018)

Code Example

<?php

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

$request->setQueryData(array(
  '$filter' => 'ModificationTimestamp%20ge%202018-11-21'
));

$request->setHeaders(array(
  'Postman-Token' => 'e4a0a9f8-feb3-4938-8928-a0aa8efe15f0',
  'cache-control' => 'no-cache',
  'Authorization' => 'Bearer [token]'
));

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

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

Result

(all records updated since November 21, 2018)