{
  "openapi": "3.0.1",
  "info": {
    "title": "Realcommercial.com.au Scraper: For Sale, Lease & Sold",
    "description": "Extract realcommercial.com.au for-sale, lease, sold, leased & invest listings from $1.00-$1.25/1K rows ($0 detail fee by default). Get 49 fixed columns: prices, estimated yield, net income, tenure, zoning, NABERS rating, broker phones & brochure PDFs.",
    "version": "0.1",
    "x-build-id": "U4JacB9cxynPk6sUp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kotaro001~realcommercial-com-au-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kotaro001-realcommercial-com-au-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/kotaro001~realcommercial-com-au-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kotaro001-realcommercial-com-au-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/kotaro001~realcommercial-com-au-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kotaro001-realcommercial-com-au-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "title": "Channel",
            "enum": [
              "for-sale",
              "for-lease",
              "sold",
              "leased",
              "invest"
            ],
            "type": "string",
            "description": "Commercial market channel: for-sale (sale), for-lease (leasing), sold (sold comparables), leased (leased comparables), or invest (tenanted cashflow with yield & net income). Each channel operates independently.",
            "default": "for-sale"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "One or more Australian target locations: suburb and state (e.g. 'Sydney, NSW'), whole state ('nsw'), or 4-digit postcode ('2000'). Each location executes sequentially into one combined dataset.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Filter by commercial property categories: offices, industrial-warehouse, retail, land-development, showrooms-bulky-goods, hotel-leisure, medical-consulting, commercial-farming, or other. Default is offices.",
            "items": {
              "type": "string"
            },
            "default": [
              "offices"
            ]
          },
          "tenure": {
            "title": "Tenure",
            "enum": [
              "any",
              "vacant",
              "vacant-possession",
              "tenanted",
              "tenanted-investment"
            ],
            "type": "string",
            "description": "Possession status filter: any, vacant (vacant possession ready for owner-occupiers), or tenanted (tenanted investment with in-place leases). Note: Tenure filtering applies to for-sale and for-lease channels, and is ignored on sold and leased.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price or annual rent in AUD. Listings marked 'Contact Agent' or 'Expressions of Interest' lack numeric amounts and are excluded by the portal when this filter is active."
          },
          "maxPrice": {
            "title": "Max price (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price or annual rent in AUD. Filters out commercial listings exceeding this budget threshold."
          },
          "minFloorArea": {
            "title": "Min floor area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum building or internal floor area in square metres (m²). Essential for logistics facilities, retail shops, and corporate offices."
          },
          "maxFloorArea": {
            "title": "Max floor area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum building or internal floor area in square metres (m²). Restricts oversized industrial sheds or multi-floor office towers."
          },
          "minLandArea": {
            "title": "Min land area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum parcel site land area in square metres (m²). Ideal for commercial land subdivisions and industrial yard requirements."
          },
          "maxLandArea": {
            "title": "Max land area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum parcel site land area in square metres (m²). Restricts broad acreage when focusing on infill commercial development sites."
          },
          "minCarSpaces": {
            "title": "Min car spaces",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Minimum number of on-site parking bays or designated garage spaces (0 to 200). Critical for retail centers and suburban commercial suites."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text keyword search applied to listing descriptions, such as 'hardstand', 'crane', 'cold storage', 'drive-thru', or 'freehold'."
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Direct search catalog URLs from the portal. When provided, startUrls overrides the suburb/state search form above.",
            "items": {
              "type": "object"
            }
          },
          "maxDetails": {
            "title": "Max detail pages",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on deep listing detail visits per run (default: 10). Only active when 'Open detail pages' is checked. Zero additional charges if left disabled.",
            "default": 10
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum listing records to return in your dataset.",
            "default": 20
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "nsw",
              "vic",
              "qld",
              "wa",
              "sa",
              "tas",
              "act",
              "nt",
              "NSW",
              "VIC",
              "QLD",
              "WA",
              "SA",
              "TAS",
              "ACT",
              "NT"
            ],
            "type": "string",
            "description": "Australian state or territory jurisdiction code (NSW, VIC, QLD, WA, SA, TAS, ACT, NT). Used in combination with suburb and postcode.",
            "default": "NSW"
          },
          "suburb": {
            "title": "Suburb",
            "type": "string",
            "description": "Target Australian commercial locality or suburb name (e.g. 'Sydney', 'Parramatta', 'South Melbourne'). Used with state and postcode.",
            "default": "Sydney"
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Official 4-digit Australian postal code (e.g. '2000', '2150', '3205'). Realcommercial matches suburb, state, and postcode together.",
            "default": "2000"
          },
          "runMode": {
            "title": "Legacy: changes switch",
            "enum": [
              "daily_active",
              "changes_only"
            ],
            "type": "string",
            "description": "Legacy switch for change detection mode. Kept for backwards compatibility; prefer onlyEmitChanges.",
            "default": "daily_active"
          },
          "minDaysOnMarket": {
            "title": "Min days on market",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Filter for listings active for at least this many days (0 = no filter). If 0 results are returned, try resetting to 0 to include freshly listed properties.",
            "default": 0
          },
          "dealType": {
            "title": "Legacy: channel alias",
            "enum": [
              "buy",
              "rent",
              "sold"
            ],
            "type": "string",
            "description": "Legacy alias for channel ('buy', 'rent', 'sold'). Kept for backwards compatibility; prefer channel."
          },
          "includeRemovedListings": {
            "title": "Include removed listings",
            "type": "boolean",
            "description": "Emit a REMOVED row when an active commercial listing disappears from search results during scheduled change monitoring.",
            "default": false
          },
          "stateKey": {
            "title": "Session ID / Change tracking slot",
            "type": "string",
            "description": "Optional session slot name for persistent price tracking & change detection. NOT an Apify API key or private password."
          },
          "onlyEmitChanges": {
            "title": "Only emit changes",
            "type": "boolean",
            "description": "Change monitoring mode: emits only newly listed, price-adjusted, or delisted commercial properties. Ideal for scheduled daily monitoring feeds.",
            "default": false
          },
          "includeDetails": {
            "title": "Open each listing (detail page)",
            "type": "boolean",
            "description": "Open deep listing pages to extract direct broker phone numbers (agent1_phone), agency phone, zoning classification (zoning), NABERS rating, and brochure PDF links.",
            "default": false
          },
          "suburbs": {
            "title": "Suburbs (multi-area)",
            "type": "array",
            "description": "Optional list of multi-location strings in 'Suburb, STATE, POSTCODE' format (e.g. 'Parramatta, NSW, 2150'). Each entry runs sequentially into one dataset.",
            "items": {
              "type": "string"
            },
            "default": []
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}