DataRivo APIDataRivo APIDataRivo API
Listings

Listings Address Search

GET
/data/listings/sale

Sale listings (Listing 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/sale'
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"  }}