{
  "openapi": "3.0.1",
  "info": {
    "title": "REALTOR.ca Canada Property Listings Scraper",
    "description": "Scrape Canadian MLS property listings from REALTOR.ca by city, province, map bounds, pasted map URL, or listing ID. Returns prices, addresses, property facts, photos, agents, brokerages and open houses.",
    "version": "1.0",
    "x-build-id": "QccrWCB5NF5JiCg70"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~realtor-ca-property-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-realtor-ca-property-listings-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/xyrelith-data~realtor-ca-property-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-realtor-ca-property-listings-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/xyrelith-data~realtor-ca-property-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-realtor-ca-property-listings-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "mapUrl",
              "listingIds"
            ],
            "type": "string",
            "description": "How to target listings.",
            "default": "search"
          },
          "location": {
            "title": "Canadian location",
            "type": "string",
            "description": "City, municipality, neighbourhood or province name (mode=search). Examples: `Toronto, Ontario`, `Vancouver`, `New Brunswick`.",
            "default": "Toronto, Ontario"
          },
          "latitudeMin": {
            "title": "Minimum latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern edge of an explicit map bounding box (mode=search). Supply all four bounds together."
          },
          "latitudeMax": {
            "title": "Maximum latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern edge of an explicit map bounding box (mode=search)."
          },
          "longitudeMin": {
            "title": "Minimum longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Western edge of an explicit map bounding box (mode=search)."
          },
          "longitudeMax": {
            "title": "Maximum longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Eastern edge of an explicit map bounding box (mode=search)."
          },
          "centerLatitude": {
            "title": "Center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of a center point for a radius search (mode=search). Use with centerLongitude and radiusKm."
          },
          "centerLongitude": {
            "title": "Center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of a center point for a radius search (mode=search)."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 5000,
            "type": "number",
            "description": "Radius around the center point, in kilometres (mode=search)."
          },
          "mapUrls": {
            "title": "REALTOR.ca map URLs",
            "type": "array",
            "description": "One or more realtor.ca map URLs whose bounding box and filters are kept (mode=mapUrl).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "Listing URLs, IDs or MLS numbers",
            "type": "array",
            "description": "realtor.ca listing URLs, bare property IDs, or MLS numbers (mode=listingIds).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "transactionType": {
            "title": "Transaction type",
            "enum": [
              "forSale",
              "forRent",
              "sold"
            ],
            "type": "string",
            "description": "For-sale listings, monthly rentals, or recent sales.",
            "default": "forSale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "residential",
              "condo",
              "vacantLand",
              "recreational",
              "multiFamily",
              "agriculture",
              "parking",
              "commercialAny",
              "commercialBusiness",
              "commercialMultiFamily",
              "commercialRetail",
              "commercialIndustrial",
              "commercialOffice",
              "commercialHospitality",
              "commercialInstitutional",
              "commercialVacantLand",
              "commercialAgriculture"
            ],
            "type": "string",
            "description": "Residential category or commercial category.",
            "default": "any"
          },
          "buildingType": {
            "title": "Building type",
            "enum": [
              "any",
              "house",
              "rowTownhouse",
              "apartment",
              "duplex",
              "triplex",
              "fourplex",
              "gardenHome",
              "mobileHome",
              "manufacturedHomeMobile",
              "specialPurpose",
              "residentialCommercialMix",
              "manufacturedHome",
              "commercialApartment",
              "twoApartmentHouse",
              "parkModel",
              "floathome",
              "modular"
            ],
            "type": "string",
            "description": "Optional building type inside the selected property type.",
            "default": "any"
          },
          "buildingStyle": {
            "title": "Building style",
            "enum": [
              "any",
              "attached",
              "detached",
              "semiDetached",
              "stacked",
              "link"
            ],
            "type": "string",
            "description": "Attachment style, such as detached, semi-detached or attached.",
            "default": "any"
          },
          "ownershipType": {
            "title": "Ownership type",
            "enum": [
              "any",
              "freehold",
              "condoStrata",
              "timeshareFractional",
              "leasehold"
            ],
            "type": "string",
            "description": "Freehold, condo/strata, timeshare/fractional or leasehold.",
            "default": "any"
          },
          "parkingType": {
            "title": "Parking type",
            "enum": [
              "any",
              "attachedGarage",
              "integratedGarage",
              "detachedGarage",
              "garage",
              "carport",
              "underground",
              "indoor",
              "open",
              "covered",
              "parkingPad",
              "pavedYard",
              "boatHouse",
              "concrete",
              "heatedGarage",
              "additionalParking"
            ],
            "type": "string",
            "description": "Optional parking facility filter.",
            "default": "any"
          },
          "priceMin": {
            "title": "Minimum price (CAD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Minimum sale price, or minimum monthly rent when transactionType=forRent."
          },
          "priceMax": {
            "title": "Maximum price (CAD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Maximum sale price, or maximum monthly rent when transactionType=forRent."
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Minimum bedrooms (above grade plus below grade)."
          },
          "bedroomsMax": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum bedrooms (above grade plus below grade)."
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Minimum total bathrooms."
          },
          "bathroomsMax": {
            "title": "Maximum bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum total bathrooms."
          },
          "interiorSizeMin": {
            "title": "Minimum interior size (sqft)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Minimum interior floor area in square feet."
          },
          "interiorSizeMax": {
            "title": "Maximum interior size (sqft)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Maximum interior floor area in square feet."
          },
          "landSizeMin": {
            "title": "Minimum land size (acres)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Minimum land size in acres."
          },
          "landSizeMax": {
            "title": "Maximum land size (acres)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum land size in acres."
          },
          "storeysMin": {
            "title": "Minimum storeys",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum number of storeys."
          },
          "storeysMax": {
            "title": "Maximum storeys",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of storeys."
          },
          "yearBuiltMin": {
            "title": "Year built from",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest construction year."
          },
          "yearBuiltMax": {
            "title": "Year built to",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest construction year."
          },
          "maintenanceFeeMin": {
            "title": "Minimum maintenance fee (CAD/month)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Minimum monthly maintenance or condo fee."
          },
          "maintenanceFeeMax": {
            "title": "Maximum maintenance fee (CAD/month)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Maximum monthly maintenance or condo fee."
          },
          "propertyTaxMin": {
            "title": "Minimum annual property tax (CAD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Minimum annual property tax."
          },
          "propertyTaxMax": {
            "title": "Maximum annual property tax (CAD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum annual property tax."
          },
          "numberOfUnitsMin": {
            "title": "Minimum units",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Minimum number of units, for multi-family and commercial buildings."
          },
          "numberOfUnitsMax": {
            "title": "Maximum units",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of units, for multi-family and commercial buildings."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text terms such as `waterfront`, `pool` or `garage`."
          },
          "listedSince": {
            "title": "Listed since",
            "type": "string",
            "description": "Only listings added on or after this date (YYYY-MM-DD)."
          },
          "openHousesOnly": {
            "title": "Open houses only",
            "type": "boolean",
            "description": "Only listings with an open house in the selected window. Defaults to the next 7 days.",
            "default": false
          },
          "openHouseFrom": {
            "title": "Open house from",
            "type": "string",
            "description": "Earliest open-house date (YYYY-MM-DD). Used with openHousesOnly."
          },
          "openHouseTo": {
            "title": "Open house to",
            "type": "string",
            "description": "Latest open-house date (YYYY-MM-DD). Used with openHousesOnly."
          },
          "soldWithinDays": {
            "title": "Sold within days",
            "enum": [
              "7",
              "14",
              "30",
              "90",
              "180",
              "365"
            ],
            "type": "string",
            "description": "Recency window for sold listings (transactionType=sold).",
            "default": "30"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "priceLow",
              "priceHigh"
            ],
            "type": "string",
            "description": "Order of the returned listings.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many listings. Large markets are split into map tiles automatically.",
            "default": 50
          },
          "includeDetails": {
            "title": "Fetch full listing details",
            "type": "boolean",
            "description": "Visit each listing page for the description, property tax, condo fees, appliances, heating/cooling, room dimensions and the full photo set. Adds one request per listing.",
            "default": true
          },
          "sweepGaps": {
            "title": "Sweep pagination gaps",
            "type": "boolean",
            "description": "Re-read each map tile from the opposite sort direction to catch listings that shift between pages while a large search is running.",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "fr"
            ],
            "type": "string",
            "description": "English or French listing content.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy override. The actor automatically selects a working connection and needs no proxy setup."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}