DataRivo APIDataRivo APIDataRivo API
Listings

Listing Neighboring Properties

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

The listing's neighboring properties: up to 10 homes 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:listing: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/sale/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}

Listing Tax History GET

The listed property's tax years, the latest first: the tax billed, and the assessed and market values of its land and building, with its tax rate and parcel ID. It comes with the listing: the plan needs the category's `property_list` and `tax_history` options (else `403 not_entitled`, `details.missing`: `mls:listing:tax_history`). 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.

Rental Address Search GET

Rentals (Rental Data) in the plan's states (or one of them, `state`), found by any of `state`, `address`, `county` and `zipCode` (all optional: without any, every listing of the plan's states). Up to 50 listings per page (the default), each as a summary (where it is, what it is, its price and size, and its `uniqueListingId`); `/{uniqueListingId}` returns one in full with every photo. Sorted by when each listing was last updated, the most recently updated first (`loadedAtOrder=desc`, the default) or the oldest first (`loadedAtOrder=asc`). Pass a date and time as `loadedSinceDate` and `loadedSinceTime` (the newest `latestLoadedAt` of your last sync, split in two) to get only what was updated since; follow `nextCursor` and `prevCursor` to page forward and back. All times are UTC. Every market status is listed (active, pending, sold, removed...; `active: false` once taken off the market), or only `marketStatus`'s. A summary's price and size need the category's `property_list` option (else null). Costs 1 credit; one that finds nothing (an empty page, a `404`) or is refused costs nothing.