Realtor.com Sorting API

Our Realtor.com Sorting API allows you to sort Realtor.com search results like the Sort by menu of Realtor.com, with sort_by.

The options of sort_by depend on status_type, and the first option of each list is the default: relevant for homes for sale and rentals, and sold_date for sold homes, like on Realtor.com.

The API endpoint is https://serpapi.com/search?engine=realtor

Head to the playground for a live and interactive demo.

API parameters

Sorting

sort_by

Optional

Parameter defines the sorting order of the results. The available options depend on status_type, and the first option of each list is the default.

Options when status_type is sale:
relevant - Relevant listings
newest - Newest listings
price_low - Lowest price
price_high - Highest price
year_built - Year built
open_house_date - Open house date
price_reduced - Recently reduced
sqft - Largest sqft
lot_size - Lot size
photo_count - Photo count

Options when status_type is sold:
sold_date - Sold date
price_low - Lowest price
price_high - Highest price
sqft - Largest sqft
lot_size - Lot size
photo_count - Photo count

Options when status_type is rent:
relevant - Best match
newest - Recently added
price_high - Highest price
price_low - Lowest price

API examples

Example with sort_by: price_low

Homes for sale sorted by lowest price.

Example with sort_by: price_low

JSON Example

{
  ...
  "search_information": {
    "total_results": 3787
  },
  "organic_results": [
    {
      "property_id": "9185899171",
      "title": "9205 42nd Ave S Lot 2, Seattle, WA 98118",
      "link": "https://www.realtor.com/realestateandhomes-detail/9205-42nd-Ave-S_Seattle_WA_98118_M91858-99171",
      "serpapi_link": "https://serpapi.com/search.json?engine=realtor_property&property_id=9185899171",
      "status": "for_sale",
      "home_type": "land",
      "price": "$35,000",
      "extracted_price": 35000,
      "lot_area": {
        "value": 1150,
        "unit": "sqft"
      },
      "address": {
        "street": "9205 42nd Ave S Lot 2",
        "city": "Seattle",
        "state": "WA",
        "zipcode": "98118"
      },
      "gps_coordinates": {
        "latitude": 47.52045,
        "longitude": -122.280875
      },
      "broker_name": "Dove Realty, Inc.",
      "thumbnail": "https://ap.rdcpix.com/5ad9e4e9f1187433435609fdbbb7745cl-m1878122169s.jpg",
      "images": [
        "https://ap.rdcpix.com/5ad9e4e9f1187433435609fdbbb7745cl-m1878122169s.jpg",
        "https://ap.rdcpix.com/5ad9e4e9f1187433435609fdbbb7745cl-m3709181099s.jpg"
      ]
    },
    ...
  ],
  ...
}

Example with status_type: sold, home_type: single_family and sort_by: price_high

Sold homes are sorted by their sold price.

Example with status_type: sold, home_type: single_family and sort_by: price_high

JSON Example

{
  ...
  "search_information": {
    "total_results": 60815
  },
  "organic_results": [
    {
      "property_id": "5627266524",
      "title": "3031 Brickell Ave, Miami, FL 33129",
      "link": "https://www.realtor.com/realestateandhomes-detail/3031-Brickell-Ave_Miami_FL_33129_M56272-66524",
      "serpapi_link": "https://serpapi.com/search.json?engine=realtor_property&property_id=5627266524",
      "status": "sold",
      "home_type": "single_family",
      "price": "$106,875,000",
      "extracted_price": 106875000,
      "beds": 12,
      "baths": 13.5,
      "square_feet": 19919,
      "lot_area": {
        "value": 182400,
        "unit": "sqft"
      },
      "address": {
        "street": "3031 Brickell Ave",
        "city": "Miami",
        "state": "FL",
        "zipcode": "33129"
      },
      "gps_coordinates": {
        "latitude": 25.746625,
        "longitude": -80.207774
      },
      "broker_name": "BHHS EWM Realty",
      "thumbnail": "https://ap.rdcpix.com/6a9c31a9c2c1dcbf580e214455dad82el-m2148381026s.jpg",
      "images": [
        "https://ap.rdcpix.com/6a9c31a9c2c1dcbf580e214455dad82el-m2148381026s.jpg",
        "https://ap.rdcpix.com/6a9c31a9c2c1dcbf580e214455dad82el-m2445971239s.jpg"
      ]
    },
    ...
  ],
  ...
}

Example with status_type: rent and sort_by: price_low

Rentals are in the same order as the Lowest price sorting of Realtor.com, which isn't strictly by price for buildings with several units.

Example with status_type: rent and sort_by: price_low

JSON Example

{
  ...
  "search_information": {
    "total_results": 6681
  },
  "organic_results": [
    {
      "property_id": "7129517376",
      "title": "2408 Leon St, Austin, TX 78705",
      "link": "https://www.realtor.com/rentals/details/2408-Leon-St_Austin_TX_78705_M71295-17376",
      "serpapi_link": "https://serpapi.com/search.json?engine=realtor_property&property_id=7129517376",
      "status": "for_rent",
      "home_type": "apartment",
      "price": "$799",
      "extracted_price": 799,
      "max_price": "$1,830",
      "extracted_max_price": 1830,
      "beds": 0,
      "max_beds": 4,
      "baths": 1.0,
      "max_baths": 4.0,
      "square_feet": 428,
      "max_square_feet": 1710,
      "pets_allowed": [
        "cats",
        "dogs"
      ],
      "building_name": "Lone Star Lofts",
      "address": {
        "street": "2408 Leon St",
        "city": "Austin",
        "state": "TX",
        "zipcode": "78705"
      },
      "gps_coordinates": {
        "latitude": 30.289125,
        "longitude": -97.749664
      },
      "property_manager_name": "Gordon & Bilyeu Property Management",
      "thumbnail": "https://ar.rdcpix.com/8e609f2996c99e03a5e654c379aac0ffc-f1993048331s.jpg"
    },
    ...
  ],
  ...
}