DataRivo APIDataRivo APIDataRivo API
Rentals

Rental Neighboring Properties

GET
/data/listings/rental/{unique_listing_id}/comparables

The listing's neighboring properties: up to 10 rentals like it nearby, the closest match first (rank), each with its uniqueListingId, status, distance in miles, address, type, beds, baths, size, price (and sold price and date when sold), price per square foot, year built, days on market and first photo (null without the category's photos option). It comes with the listing: the plan needs the category's property_list and comparables options (else 403 not_entitled, details.missing: mls:rental:comparables). An empty data means the source has none for this property yet. Costs 1 credit; one that finds nothing (an empty page, a 404) or is refused costs nothing.

Authorization

ApiKey
headerx-api-key<token>

A customer API key (dr_live_...), sent only in the x-api-key header.

Path Parameters

unique_listing_id*Unique Listing Id

The listing's uniqueListingId from a search: its ID and its state's code, S00000001_VA

Length4 <= length <= 80

Response Body

Successful Response

application/json
  1. response
uniqueListingId*Uniquelistingid

The listing's ID with its state's code, S00000001_VA (a listing ID is only unique within its state): what /{uniqueListingId} and its history endpoints take

listingId*Listingid
state*string|null
data*array<>

The closest match first, at most 10

creditsUsed*Creditsused
Example Request
curl -X GET 'https://api.datarivo.io/api/v1/data/listings/rental/S00000001_VA/comparables'
Example Response
{  "uniqueListingId": "string",  "listingId": "string",  "state": "string",  "data": [    {      "rank": 0,      "uniqueListingId": "string",      "status": "string",      "distanceMiles": 0,      "fullAddress": "string",      "unit": "string",      "city": "string",      "zipCode": "string",      "latitude": 0,      "longitude": 0,      "propertyType": "string",      "beds": 0,      "baths": 0,      "sqft": 0,      "price": 0,      "soldPrice": 0,      "soldDate": "2019-08-24",      "pricePerSqft": 0,      "yearBuilt": 0,      "listedSince": "2019-08-24",      "daysOnMarket": 0,      "photoUrl": "string",      "match": "string"    }  ],  "creditsUsed": 0}