SERP API
RSVP Real Estate
The same /v1/search endpoint with engine=rsvpre returns the homes RSVP Brokers ERA lists for a Washington city as JSON: for sale, or sold in the last 180 days, 20 a page.
Send the API key in the X-API-Key header, or as the api_key query parameter (Authentication). RSVP Real Estate searches can also run as async tasks with pingback_url.
Parameters
| Field | Type | Description |
|---|---|---|
engine | string | required Set it to rsvpre.Values:rsvpre |
q | string | required The place: a Washington city and state, like Seattle, WA or Spokane, Washington. Places outside Washington answer 400 invalid_query. Up to 120 characters. location works too.Example: Seattle, WA |
type | string | optional Homes for sale, or sold in the last 180 days. status works too. Any other value answers 400 invalid_type.Values:for_salesoldDefault: for_sale |
page | integer | optional The page of listings, from 1 to 500. Each page has up to 20; search_information.total_pages says how many there are, and every one of them can be fetched.Default: 1 |
num_pages | integer | optional How many pages to fetch in this call, from 1 to 5, starting at page. Each page fetched costs one credit; page + num_pages - 1 can be at most 500.Default: 1 |
response_type | string | optional json: the listings. html: RSVP Real Estate's raw answer for the fetched pages as text in html, without listings. both: the listings and html.Values:jsonhtmlbothDefault: json |
pingback_url | string | optional Queue the search and get the answer later; see Async tasks. |
Several pages in one call
One call fetches 1 to 5 pages (
num_pages) starting at page, 20 listings each. Sold homes are the ones sold in the last 180 days, with their sale price in price.What comes back
| Field | Type | Description |
|---|---|---|
search_metadata | object | About this request. |
id | string | A unique id for the search. |
status | string | Success when RSVP Real Estate answered. |
created_at | string | When the search ran, in ISO 8601 (UTC). |
pages | integer | Pages fetched in this call. |
credits_charged | integer | Credits this request cost: one per page fetched. |
task_id | string | Only for async tasks: the task the result belongs to. |
search_parameters | object | What the search used: engine, q, type, page, num_pages (when above 1) and response_type. |
search_information | object | About the listings. |
total_results | integer | How many homes match the place and type. |
page, per_page, total_pages | integer | This page, listings a page (20) and how many pages there are. |
pages_fetched | integer | Pages this call fetched. |
results_on_page | integer | How many listings this answer has (all fetched pages). |
listings | array | The homes, each with position (1, 2, 3... counted across pages, so page 2 starts at 21) and the fields below. |
property_id, mls_number | string | The listing's id and its MLS number. |
url, title | string | The listing on rsvpre.com, and its title when the agent gives one. |
street_address, city, state, zipcode, county, country, subdivision | string | Where the home is (street_address can be empty when the seller hides it). |
latitude, longitude | number | The home on the map. |
price, list_price, currency | integer / string | The current price (the sale price for sold homes) and the list price, in whole US dollars; always USD. |
bedrooms, bathrooms, full_baths, half_baths | number / null | Bedrooms, bathrooms in all, and full and half bathrooms. |
living_area, living_area_unit, lot_size, acreage | number / string | The home's size and the lot's size in sqft, and the lot in acres. |
property_type, year_built, garage_spaces | string / integer | The kind of property (Residential, Land...), the year built and the garage spaces. |
listing_status, days_on_market, listed_date | string / integer | The status (Active...), days on the market and the date listed. |
new_construction, pool | boolean | Flags on the listing. |
image_url, photo_count, virtual_tour_url | string / integer | The main photo, how many photos there are, and a virtual tour link when there is one. |
description | string | The listing's text, up to 500 characters. |
listing_agent, office_name, listing_office | string | The listing agent and the office behind the listing. |
sold_price, sold_date | integer / string | type=sold only: the final sale price and the date the home sold. |
html | string | response_type html or both: RSVP Real Estate's raw answer for the fetched pages, as text. |
Homes sold in Tacoma, second page
Request
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=rsvpre" \
--data-urlencode "q=Tacoma, WA" \
--data-urlencode "type=sold" \
--data-urlencode "page=2"Errors
Errors never cost credits. Every error code is on the Errors page; these are the RSVP Real Estate ones:
| Field | Type | Description |
|---|---|---|
missing_query, invalid_query | 400 | No q, one longer than 120 characters, or a place outside Washington State. |
invalid_type | 400 | type (or status) is not for_sale or sold. |
invalid_page | 400 | page is not a whole number from 1 to 500. |
invalid_num_pages | 400 | num_pages is not 1 to 5, or page + num_pages - 1 goes past page 500. |
invalid_filter | 400 | bedrooms, min_price or max_price was sent: RSVP Real Estate searches do not take them. |
invalid_response_type | 400 | response_type is not json, html or both. |
no_results | 404 | The page is past the last one (the site would send page 1 again, so it is refused for free). |
upstream_error, upstream_unavailable, upstream_timeout | 502 / 503 / 504 | RSVP Real Estate could not be reached in time. Retry in a few seconds. |
400 Bad Request
{
"error": {
"code": "invalid_query",
"message": "RSVP Real Estate covers Washington State only: send a Washington city like Seattle, WA."
},
"charged": false
}Credits
Each page fetched costs one credit (20 listings a page, up to 5 pages a call). Failed searches, places outside Washington and pages past the last one are free.