{
  "openapi": "3.0.1",
  "info": {
    "title": "CommercialGuru SG Property Listings & Agent Contacts Scraper",
    "description": "Scrape commercialguru.com.sg Singapore listings at scale. Extract prices, PSF, floor area, tenure, property type, images, agent contacts, coordinates, nearby MRT stations and more. Ideal for commercial real estate analytics, investment research and market intelligence.",
    "version": "0.2",
    "x-build-id": "NP2qTII8krynittsH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~commercialguru-sg-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-commercialguru-sg-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/abotapi~commercialguru-sg-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-commercialguru-sg-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/abotapi~commercialguru-sg-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-commercialguru-sg-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "Scraping mode: 'search' builds search URLs from filters, 'url' uses provided URLs directly",
            "default": "search"
          },
          "listing_type": {
            "title": "Listing Type",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Type of listing to search for. 'both' walks sale AND rent in one run: each becomes its own search with its own share of Max Properties (split evenly, minimum 1 each, remainder to the earliest searches in walk order; sale is walked before rent).",
            "default": "sale"
          },
          "property_type": {
            "title": "Property Type",
            "enum": [
              "office",
              "retail",
              "shop",
              "shophouse",
              "warehouse",
              "factory",
              "industrial",
              "land",
              "food_beverage",
              "business_park",
              "dormitory"
            ],
            "type": "string",
            "description": "Filter by commercial property type"
          },
          "property_types": {
            "title": "Property Types (multi-select)",
            "type": "array",
            "description": "Optional multiple property types. Each selected type becomes its own search with its own share of Max Properties (split evenly, minimum 1 each, remainder to the earliest searches in walk order). Takes priority over the single Property Type field when set. Leave empty to use Property Type.",
            "items": {
              "type": "string",
              "enum": [
                "office",
                "retail",
                "shop",
                "shophouse",
                "warehouse",
                "factory",
                "industrial",
                "land",
                "food_beverage",
                "business_park",
                "dormitory"
              ],
              "enumTitles": [
                "Office",
                "All Retail",
                "Shop / Shophouse",
                "Shophouse",
                "Warehouse",
                "Factory / Industrial",
                "All Industrial",
                "Commercial Land",
                "Food & Beverage",
                "Business / Science Park",
                "Dormitory"
              ]
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "One or more free-text locations to search (e.g. \"Raffles Place\", \"Jurong\", \"CBD\"). Each location is searched separately and the results are combined into one dataset. Takes priority over the single Location Search field.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Location Search",
            "type": "string",
            "description": "Free-text location search (e.g. 'Raffles Place', 'Jurong', 'CBD'). Use this OR District Code, not both."
          },
          "district": {
            "title": "District Code",
            "type": "string",
            "description": "Singapore district code (D01-D28). E.g. D01=Raffles Place/Marina, D09=Orchard, D22=Jurong/Tuas. Use this OR Location Search, not both."
          },
          "districts": {
            "title": "Districts (multi-select)",
            "type": "array",
            "description": "Optional multiple Singapore district codes. Each district becomes its own search with its own share of Max Properties (split evenly, minimum 1 each, remainder to the earliest searches in walk order). Takes priority over the single District Code field when set. Leave empty to use District Code.",
            "items": {
              "type": "string",
              "enum": [
                "D01",
                "D02",
                "D03",
                "D04",
                "D05",
                "D06",
                "D07",
                "D08",
                "D09",
                "D10",
                "D11",
                "D12",
                "D13",
                "D14",
                "D15",
                "D16",
                "D17",
                "D18",
                "D19",
                "D20",
                "D21",
                "D22",
                "D23",
                "D24",
                "D25",
                "D26",
                "D27",
                "D28"
              ],
              "enumTitles": [
                "D01",
                "D02",
                "D03",
                "D04",
                "D05",
                "D06",
                "D07",
                "D08",
                "D09",
                "D10",
                "D11",
                "D12",
                "D13",
                "D14",
                "D15",
                "D16",
                "D17",
                "D18",
                "D19",
                "D20",
                "D21",
                "D22",
                "D23",
                "D24",
                "D25",
                "D26",
                "D27",
                "D28"
              ]
            }
          },
          "min_price": {
            "title": "Min Price (SGD)",
            "type": "integer",
            "description": "Minimum price in Singapore Dollars"
          },
          "max_price": {
            "title": "Max Price (SGD)",
            "type": "integer",
            "description": "Maximum price in Singapore Dollars"
          },
          "min_floor_area": {
            "title": "Min Floor Area (sqft)",
            "type": "integer",
            "description": "Minimum floor area in square feet"
          },
          "max_floor_area": {
            "title": "Max Floor Area (sqft)",
            "type": "integer",
            "description": "Maximum floor area in square feet"
          },
          "sort": {
            "title": "Sort By",
            "enum": [
              "date",
              "price",
              "psf",
              "area"
            ],
            "type": "string",
            "description": "Sort results by date (newest), price, price per sqft, or floor area",
            "default": "date"
          },
          "sort_order": {
            "title": "Sort Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction",
            "default": "desc"
          },
          "urls": {
            "title": "Search URLs",
            "type": "array",
            "description": "URLs to scrape (url mode only): search/listing pages (sale or rent, with filters, sort or ?page=N), property-type category pages such as /office-for-sale, and single /listing/ detail pages. Agent profile pages are skipped with a warning. Paste one URL per line; to scrape a list kept in a file, paste its URLs here or pass the same list via the API input (file upload is not offered on this field).",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-sale",
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-rent",
              "https://www.commercialguru.com.sg/office-for-sale",
              "https://www.commercialguru.com.sg/office-for-rent",
              "https://www.commercialguru.com.sg/shop-for-sale",
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-sale?page=2",
              "https://www.commercialguru.com.sg/office-for-sale?page=3",
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-sale?minPrice=1000000&maxPrice=5000000&sort=price&order=asc",
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-sale?propertyTypeGroup=R",
              "https://www.commercialguru.com.sg/find-commercial-properties/property-for-sale?districtCode=D01",
              "https://www.commercialguru.com.sg/listing/for-sale-city-gate-23151803",
              "https://www.commercialguru.com.sg/listing/500254328",
              "https://www.commercialguru.com.sg/agent/bryan-lee-190919"
            ]
          },
          "enable_coordinates": {
            "title": "Enable Coordinate Enrichment",
            "type": "boolean",
            "description": "Add latitude and longitude coordinates to listings from the site's map data. Disabled by default as it significantly slows down the run (~30-60s extra).",
            "default": false
          },
          "fetch_details": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Adds extra fields per listing: full description, agent contact, exact coordinates, postal code, full image gallery, nearby MRT & schools, lease term, condition, amenities, and floor level. Slower and uses more proxy traffic; off by default.",
            "default": false
          },
          "max_properties": {
            "title": "Max Properties",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of properties to scrape across the whole run (0=unlimited). When one run walks several searches (Sale & Rent, several Property Types, Districts or Locations, or several pasted URLs) the cap is split evenly across them, minimum 1 each, with any remainder going to the earliest searches in walk order.",
            "default": 10
          },
          "max_pages": {
            "title": "Max Pages",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of search result pages to scrape (20 listings per page)",
            "default": 5
          },
          "verified_listings_only": {
            "title": "Verified listings only",
            "type": "boolean",
            "description": "Emit only listings the source marks as verified. Applies in both modes: to search-card results, to URL-mode page walks, and to pasted single /listing/ pages. Applied before anything is pushed or charged, so rows it drops never bill. Verified listings are a minority on this source: the Max Properties cap counts listings that pass this filter, so expect a filtered run to page deeper than the same run without it.",
            "default": false
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. The default uses Apify Proxy and switches to other connections automatically when a page cannot be loaded (some pages may need a retry). Pick RESIDENTIAL (and a country) to start there instead, or supply your own proxy URLs."
          },
          "resumeFromRunId": {
            "title": "Resume from a previous run",
            "type": "string",
            "description": "Paste a previous run ID or dataset ID to continue a large crawl without returning or charging for listings already collected there. Use this after an interrupted run, or when continuing a big pull across another run. For recurring monitoring of the same search, use Incremental changes for scheduled runs instead."
          },
          "incrementalMode": {
            "title": "Incremental changes for scheduled runs",
            "type": "boolean",
            "description": "Turn this on for daily or recurring monitoring. The first run returns all matching properties as NEW. Later runs normally return only NEW, UPDATED, and REAPPEARED properties. Turn on \"Emit unchanged properties (incremental mode only)\" or \"Emit expired properties (incremental mode only)\" only when you also want those properties returned (and billed). State is kept separately for each search/URL and filter setup; use \"State key (optional, incremental mode only)\" when you want to name or deliberately share a monitoring campaign. To continue one specific interrupted run instead, use Resume from a previous run.",
            "default": false
          },
          "stateKey": {
            "title": "State key (optional, incremental mode only)",
            "type": "string",
            "description": "Optional. Name this monitoring campaign to keep its state stable, or to deliberately share state across differently-configured runs. Leave empty to let the actor derive a key automatically from the search/URL and filter settings — different searches then never mix state with each other."
          },
          "emitUnchanged": {
            "title": "Emit unchanged properties (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return properties that have not changed since the last run, marked UNCHANGED. This returns — and bills — extra rows you already have, so leave it off unless you specifically want the full snapshot every run.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired properties (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return properties that were present in a previous run but are no longer found, marked EXPIRED. Only produced once a run has fully scanned the tracked search — not when Max Properties capped it or when Resume from a previous run was used. This returns — and bills — extra synthetic rows, so leave it off unless you need expiry tracking.",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes (incremental mode only)",
            "type": "array",
            "description": "Field names that must NOT count as a change when incremental mode compares a property with its last saved copy. They are still returned in the output. Use dotted paths for nested fields, for example images.url ignores that key inside every element of the images list. Leave empty to compare every field except the built-in exclusions (recency and the additive convenience fields, see README).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mcpConnectors": {
            "title": "Pipe results into your apps (optional)",
            "type": "array",
            "description": "Optionally send the scraped results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize a connector once under Apify → Settings → Integrations, then select it here. The connector receives a condensed, human-readable summary per item (title + key fields), not the full JSON — the complete record stays in the dataset. Leave empty to skip. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com)."
          },
          "notionParentPageUrl": {
            "title": "Notion parent page (Notion connector only)",
            "type": "string",
            "description": "URL (or id) of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors."
          },
          "maxNotifyListings": {
            "title": "Max items to export per connector",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on items written to each connector per run. Does not affect the dataset.",
            "default": 50
          },
          "notifyOnlyChanges": {
            "title": "Alert on changes only",
            "type": "boolean",
            "description": "Only send the alert when Incremental changes for scheduled runs is on and at least one row is NEW, UPDATED, REAPPEARED or EXPIRED. Without Incremental changes every finished run sends its summary.",
            "default": false
          },
          "notificationLimit": {
            "title": "Rows listed per alert",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many rows the alert message lists (the run's totals are always in the first line).",
            "default": 5
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL to post the summary to."
          },
          "discordWebhookUrl": {
            "title": "Discord channel webhook",
            "type": "string",
            "description": "Optional Discord channel webhook URL to post the summary to."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional Telegram bot token to post the summary with (needs the Telegram chat ID)."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional Telegram chat ID that receives the summary (needs the Telegram bot token)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}