API LIBRARY
Collapse Sidebar Menu
Expand Drawer

Get Rooms By ListingId

In order to retrieve the Rooms associated with a specific ListingId, you will need the specific ListingId to match. For this example, we will use the ListingId of 8165794. Feel free to substitute any known ListingId in the query below:
https://api-prod.corelogic.com/trestle/odata/PropertyRooms?$filter(ListingId eq '8165794')
Examples

Code Example

https://api-prod.corelogic.com/trestle/odata/PropertyRooms?$top=10&$filter=(ListingId eq '8165794')

Result

{
    "@odata.context": "https://api-prod.corelogic.com/trestle/odata/$metadata#PropertyRooms/CoreLogic.DataStandard.RESO.DD.PropertyRooms",
    "value": [
        {
            "ListingId": "8165794",
            "ListingKey": "294298833",
            "ListingKeyNumeric": 294298833,
            "ListOfficeKey": "2250510",
            "ModificationTimestamp": "2019-02-14T15:34:00.000-00:00",
            "OriginatingSystemName": "CTEXAS",
            "OriginatingSystemSubName": null,
            "RoomArea": null,
            "RoomAreaSource": null,
            "RoomAreaUnits": null,
            "RoomDescription": null,
            "RoomDimensions": "12x13",
            "RoomFeatures": null,
            "RoomKey": "2510209",
            "RoomKeyNumeric": 2510209,
            "RoomLength": null,
            "RoomLengthWidthSource": null,
            "RoomLengthWidthUnits": null,
            "RoomLevel": "Lower",
            "RoomType": "Kitchen",
            "RoomWidth": null
        },
       {
            "Comment": "The remaining listings..."
        }
    ]
}

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle//odata/PropertyRooms?$top=10&$filter=%28ListingId%20eq%20%278165794%27%29' \
  -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#PropertyRooms/CoreLogic.DataStandard.RESO.DD.PropertyRooms",
    "value": [
        {
            "ListingId": "8165794",
            "ListingKey": "294298833",
            "ListingKeyNumeric": 294298833,
            "ListOfficeKey": "2250510",
            "ModificationTimestamp": "2019-02-14T15:34:00.000-00:00",
            "OriginatingSystemName": "CTEXAS",
            "OriginatingSystemSubName": null,
            "RoomArea": null,
            "RoomAreaSource": null,
            "RoomAreaUnits": null,
            "RoomDescription": null,
            "RoomDimensions": "12x13",
            "RoomFeatures": null,
            "RoomKey": "2510209",
            "RoomKeyNumeric": 2510209,
            "RoomLength": null,
            "RoomLengthWidthSource": null,
            "RoomLengthWidthUnits": null,
            "RoomLevel": "Lower",
            "RoomType": "Kitchen",
            "RoomWidth": null
        },
       {
            "Comment": "The remaining listings..."
        }
    ]
}

Code Example

<?php

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

$request->setQueryData(array(
  '$top' => '10',
  '$filter' => '%28ListingId%20eq%20%278165794%27%29'
));

$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#PropertyRooms/CoreLogic.DataStandard.RESO.DD.PropertyRooms",
    "value": [
        {
            "ListingId": "8165794",
            "ListingKey": "294298833",
            "ListingKeyNumeric": 294298833,
            "ListOfficeKey": "2250510",
            "ModificationTimestamp": "2019-02-14T15:34:00.000-00:00",
            "OriginatingSystemName": "CTEXAS",
            "OriginatingSystemSubName": null,
            "RoomArea": null,
            "RoomAreaSource": null,
            "RoomAreaUnits": null,
            "RoomDescription": null,
            "RoomDimensions": "12x13",
            "RoomFeatures": null,
            "RoomKey": "2510209",
            "RoomKeyNumeric": 2510209,
            "RoomLength": null,
            "RoomLengthWidthSource": null,
            "RoomLengthWidthUnits": null,
            "RoomLevel": "Lower",
            "RoomType": "Kitchen",
            "RoomWidth": null
        },
       {
            "Comment": "The remaining listings..."
        }
    ]
}