# Realestate — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and retrieve property listing data from realestate.com.au, including listings for sale and rent, detailed property information, and nearby schools for any location across Australia.

**Category:** Real Estate | **Website:** [realestate.com.au/](https://realestate.com.au/) | **Docs:** [parse.bot/marketplace/2ea21ebb-6e03-48e0-9871-01ef25043559/realestate-com-au-api](https://parse.bot/marketplace/2ea21ebb-6e03-48e0-9871-01ef25043559/realestate-com-au-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-realestate-com-au-api-2ea21ebb/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_nearby_schools

Fetch schools near a given latitude and longitude. Returns up to 5 schools in each category (all, primary, secondary). Each school includes name, sector, type, year range, address, location coordinates, and distance from the queried point.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | number | Yes | Latitude coordinate (e.g. -37.8136) |
| `lon` | number | Yes | Longitude coordinate (e.g. 144.9631) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-realestate-com-au-api-2ea21ebb/get_nearby_schools \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<number>","lon":"<number>"}'
```

### get_property_details

Get detailed information about a specific property listing by its ID. Returns address, price, features, description, listing company, property sizes, media URLs, and inspection times. The property_id is obtained from search results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `property_id` | string | Yes | The unique numeric listing ID (e.g. '149037324'). Obtained from search endpoint results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-realestate-com-au-api-2ea21ebb/get_property_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"property_id":"<string>"}'
```

### get_sold_properties

Search for recently sold properties by location. Results are sorted by sold date descending (most recently sold first). Returns paginated results with sold price, sold date, and property details. Each page returns up to ~25 listings. The total count reflects server-side matches for the location.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | Yes | Suburb, city, postcode, or state to search in (e.g. 'melbourne', 'sydney', '2000') |
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-realestate-com-au-api-2ea21ebb/get_sold_properties \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>"}'
```

### search

Search for property listings for sale or rent. Returns paginated results with property summaries. Supports location-based search by suburb, city, postcode, or state. Each page returns up to ~25 listings. The total count reflects server-side matches for the location and purpose. When listed_since is provided, results are automatically sorted by date (newest first) and filtered to only include properties listed within the specified time period; listings older than the period or without listing date information are excluded from results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `listed_since` | string | No | Filter results to only properties listed within the specified time period. When provided, results are sorted by date newest first. Listing date availability is limited to approximately the most recent 7 days of listings. |
| `location` | string | Yes | Suburb, city, postcode, or state to search in (e.g. 'melbourne', 'sydney', '2000') |
| `page` | integer | No | Page number for pagination |
| `purpose` | string | No | Listing type: 'buy' or 'rent' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-realestate-com-au-api-2ea21ebb/search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"listed_since":"<string>","location":"<string>","page":"<integer>","purpose":"<string>"}'
```
