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 '1308175')&$select=ListingKey,City,PropertyType,StreetName,OriginatingSystemName

Result

{
    "@odata.context": "https://api-prod.corelogic.com/trestle/odata/$metadata#Property/CoreLogic.DataStandard.RESO.DD.Property",
    "value": [
        {
            "City": "Tahuya",
            "ListingKey": "321900634",
            "OriginatingSystemName": "NWMLS",
            "PropertyType": "Land",
            "StreetName": "Shoe Lake"
        }
    ]
}

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle/odata/Property?Class=Residential&$filter=%28ListingId%20eq%20%271308175%27%29&$select=ListingKey,City,PropertyType,StreetName,OriginatingSystemName' \
  -H 'Accept: */*' \
  -H 'Authorization: Bearer token
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Host: api-prod.corelogic.com' \
  -H 'User-Agent: PostmanRuntime/7.13.0' \
  -H 'accept-encoding: gzip, deflate' \
  -H 'cache-control: no-cache'

Result

{
    "@odata.context": "https://api-prod.corelogic.com/trestle/odata/$metadata#Property/CoreLogic.DataStandard.RESO.DD.Property",
    "value": [
        {
            "City": "Tahuya",
            "ListingKey": "321900634",
            "OriginatingSystemName": "NWMLS",
            "PropertyType": "Land",
            "StreetName": "Shoe Lake"
        }
    ]
}

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%271308175%27%29',
  '$select' => 'ListingKey,City,PropertyType,StreetName,OriginatingSystemName'
));

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'Connection' => 'keep-alive',
  'accept-encoding' => 'gzip, deflate',
  'Host' => 'api-prod.corelogic.com',
  'Cache-Control' => 'no-cache',
  'Accept' => '*/*',
  'User-Agent' => 'PostmanRuntime/7.13.0',
  'Authorization' => 'Bearer token'
));

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

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

Result

{
    "@odata.context": "https://api-prod.corelogic.com/trestle/odata/$metadata#Property/CoreLogic.DataStandard.RESO.DD.Property",
    "value": [
        {
            "City": "Tahuya",
            "ListingKey": "321900634",
            "OriginatingSystemName": "NWMLS",
            "PropertyType": "Land",
            "StreetName": "Shoe Lake"
        }
    ]
}