DataRivo APIDataRivo APIDataRivo API
Rentals

Rental Address Search

GET
/data/listings/rental

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.

Authorization

ApiKey
headerx-api-key<token>

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

Query Parameters

loadedSinceDate?|

Only records updated on or after this date (YYYY-MM-DD, UTC): the whole day, from 00:00:00 UTC, without loadedSinceTime

loadedSinceTime?|

With loadedSinceDate: only records updated at or after this time on that day, UTC (HH:MM, HH:MM:SS or HH:MM:SS.ffffff); default 00:00:00

loadedAtOrder?Loadedatorder

The order of loadedAt: desc newest first (default), asc oldest first

Default"desc"
Value in"asc""desc"
cursor?|

meta.nextCursor (the next page) or meta.prevCursor (the previous page) of the page you have; pass the same loadedAtOrder with it

limit?Limit

Records per page, at most 50

Range1 <= value <= 50
Default50
state?|

A US state, by code or name in any case (FL, fl, Florida). Optional: without it, every state of the plan. One outside the plan is refused with 403 not_entitled (details.missing: state:GA)

address?|

An address in full or in part (322 Clifford Avenue, Alexandria). Optional. Every word must start a word of the listing's full address (street, unit, city, state, ZIP code), in any order and case; punctuation is ignored and long street words match their short forms (Avenue finds Ave)

county?|

A county, as listings show it: Fairfax County, or Virginia Beach for the independent city of Virginia Beach. One outside the plan is refused with 403 not_entitled (details.missing: county:VA:Fairfax County)

zipCode?|null
marketStatus?|

Only listings with these market statuses, comma-separated, in any case: sale listings active, pending, sold, likely_sold, removed; rentals active, leased_or_off_market. Optional: without it, every status

Response Body

Successful Response

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://api.datarivo.io/api/v1/data/listings/rental'
Example Response
{  "data": [    {      "uniqueListingId": "string",      "state": "string",      "city": "string",      "county": "string",      "zipCode": "string",      "fullAddress": "string",      "addressLine": "string",      "latitude": 0,      "longitude": 0,      "propertyType": "string",      "propertyName": "string",      "price": 0,      "sqft": 0,      "marketStatus": "string",      "active": true,      "loadedAt": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "count": 0,    "creditsUsed": 0,    "nextCursor": "string",    "prevCursor": "string",    "latestLoadedAt": "2019-08-24T14:15:22Z"  }}

Listing Neighboring Properties GET

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.

Rental Details GET

The listing, by its `uniqueListingId` (`S00000001_VA`: its ID and state, as a search returns it), with `active`, in groups: `location`; `listing` (its `marketStatus`: `active`, `pending`, `sold`, `removed`...; its price, remarks, open house); `property` (a home's beds, baths and size; a rental building's ranges over its units: `rent: {min, max}`, its units on the market, pets, features); for a rental, the `unit` it rents (rent, beds, baths, size, deposit, available date, lease terms) and the building's `floorPlans`, each with its beds, baths, size and rents, its units on the market counted and listed, the cheapest first (each unit a listing of its own, `uniqueListingId`); its `agent`; and every photo (`photos`, in order). It must be in one of the plan's states. What the plan includes: where a listing is (`location`), its IDs, type and listing service always; its terms and property (`listing`, `property`, and a rental's `unit` and `floorPlans`) with the category's `property_list` option; its `agent` with `agent_details`; its photos with `photos`. A group the plan leaves out is null (photos and floor plans: empty) and named in `locked` (`mls:listing:photos`). Costs 1 credit; one that finds nothing (an empty page, a `404`) or is refused costs nothing.