# realestate.com.au Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/realestatecomau/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 2 credits per call | | **Documentation** | https://www.piloterr.com/library/realestatecomau-search | ## Description Search realestate.com.au buy, rent, or sold results. A place such as Sydney, NSW defaults to homes for sale. Each card has price, address, rooms, and a property URL. ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/realestatecomau/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Sydney NSW homes for sale ```json { "results": [ { "id": 149690532, "url": "https://www.realestate.com.au/property-apartment-nsw-sydney-149690532", "badge": null, "image": "https://i2.au.reastatic.net/800x600/0912e9a1bea76a94ba5a397b993767175e6714ec2a59081478ee67d3f622b4cb/image.jpg", "price": 4000000, "state": "NSW", "suburb": "Sydney", "address": "Level 22/6 Watermans Quay, Sydney, NSW 2000", "channel": "buy", "bedrooms": 2, "currency": "AUD", "postcode": "2000", "bathrooms": 2, "price_max": null, "agent_name": "Leanne Pan", "car_spaces": 1, "agency_name": "Ray White Residential - Sydney CBD", "building_size": 107, "price_display": "$4,000,000", "property_type": "Apartment", "building_size_display": "107m²" } ], "pagination": { "next": "https://www.realestate.com.au/buy/in-sydney,+nsw/list-2", "page": 1, "per_page": 25, "total_pages": 25, "total_results": 604 } } ``` ## Documentation ## Overview Search realestate.com.au for homes for sale, for rent, or sold. Each card includes the asking price in Australian dollars, the address, bedrooms, bathrooms, car spaces, building size, property type, agent, and agency. Property pages are not available. `results[].url` is the public property link, and this endpoint does not accept that link as `query`. ## Quickstart Homes for sale in Sydney. `channel` defaults to `buy`, so `results[].channel` is `buy`. ``` GET https://api.piloterr.com/v2/realestatecomau/search?query=Sydney,%20NSW ``` Rentals in the same place. `results[].channel` is `rent`. ``` GET https://api.piloterr.com/v2/realestatecomau/search?query=Sydney,%20NSW&channel=rent ``` Page 2. The path becomes `/list-2`. ``` GET https://api.piloterr.com/v2/realestatecomau/search?query=Sydney,%20NSW&page=2 ``` A results URL keeps its own buy, rent, or sold path. `page` still rewrites `/list-N`. ``` GET https://api.piloterr.com/v2/realestatecomau/search?query=https://www.realestate.com.au/buy/in-sydney,+nsw/list-1 ``` ## Parameters ### query Required string. - A place such as `Sydney, NSW`. Commas become `,+` in the path: `/buy/in-sydney,+nsw/list-1`. - With the default channel, cards have `channel` `buy`. - A full buy, rent, or sold results URL keeps that path. `channel` does not rewrite it. - A property URL (`/property-...`) returns 400. - There is no default. ### channel Optional string. Default `buy`. An empty value also means `buy`. Used when `query` is a place. - `buy`. Aliases: `sale`, `for-sale`, `for sale`. - `rent`. Aliases: `rental`, `lease`. - `sold`. - Any other value returns 400. - `results[].channel` is the channel of the page that was fetched. - A results URL keeps its own path. ### page Optional integer. Default `1`. - Page 1 requests `/list-1` and sets `pagination.page` to 1. - Page 2 rewrites the path to `/list-2`. - `pagination.next` is the next results URL, or null on the last page. - A value below 1 returns 400. ### return_page_source Optional boolean. Default `false`. `true` returns `{ "result": "" }` instead of `results` and `pagination`. ## Response fields | Field | Type | Description | |---|---|---| | `results[].id` | integer | Listing id | | `results[].url` | string | Property URL | | `results[].channel` | string or null | `buy`, `rent`, or `sold` | | `results[].address` | string or null | Street, suburb, state, and postcode | | `results[].suburb` | string or null | Suburb | | `results[].state` | string or null | State code | | `results[].postcode` | string or null | Postcode | | `results[].price` | integer or null | Dollar amount, or the lower amount of a range | | `results[].price_max` | integer or null | Upper amount when the price is a range | | `results[].price_display` | string or null | Price line as printed, without a trailing dash | | `results[].currency` | string or null | `AUD` when a dollar amount is present | | `results[].bedrooms` | integer or null | Bedrooms | | `results[].bathrooms` | integer or null | Bathrooms | | `results[].car_spaces` | integer or null | Car spaces | | `results[].building_size` | integer or null | Building size in square metres | | `results[].building_size_display` | string or null | Size as printed, such as `107m²` | | `results[].property_type` | string or null | Type printed on the card | | `results[].agent_name` | string or null | Agent | | `results[].agency_name` | string or null | Agency | | `results[].image` | string or null | Hero photo | | `results[].badge` | string or null | Banner such as Under offer, or null | | `pagination.page` | integer | Requested page | | `pagination.per_page` | integer | Results window. Project cards are omitted, so `results` can be shorter | | `pagination.total_results` | integer or null | Count from the page. An approximate total keeps the displayed floor | | `pagination.total_pages` | integer or null | Null when the count is approximate | | `pagination.next` | string or null | Next results URL, or null | ## Notes When `price` is present, it is the first dollar amount in `price_display`. `price_max` is the last amount when the line is a range. A line with no dollar amount leaves `price` null. `currency` is `AUD` only when a dollar amount is present. ## Use cases - Track asking prices for homes for sale in an Australian suburb - Pull a rental or sold page from a results URL you already have - Collect agent and agency names from the current result set ## Error codes | Code | Meaning | |---|---| | 400 | Missing query, bad page, unknown channel, or a URL that is not a results page | | 401 | Missing or invalid API key | | 403 | The results page was blocked | | 404 | The page had no listing cards | | 500 | The page could not be rendered |