{
  "openapi": "3.0.1",
  "info": {
    "title": "SG Property Alert Engine — New Listings & Price Drops",
    "description": "Monitor 99.co and EdgeProp for new property listings matching your criteria. Get Telegram alerts when a new listing drops or a price changes. Built for Singapore property agents and serious buyers.",
    "version": "1.0",
    "x-build-id": "NDtep8ZamAJveNyhK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/42far~sg-property-alert-engine/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-42far-sg-property-alert-engine",
        "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/42far~sg-property-alert-engine/runs": {
      "post": {
        "operationId": "runs-sync-42far-sg-property-alert-engine",
        "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/42far~sg-property-alert-engine/run-sync": {
      "post": {
        "operationId": "run-sync-42far-sg-property-alert-engine",
        "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": {
          "sources": {
            "title": "Property Portals",
            "type": "array",
            "description": "Select which property portals to monitor",
            "items": {
              "type": "string",
              "enum": [
                "propertyguru",
                "99co",
                "edgeprop"
              ],
              "enumTitles": [
                "PropertyGuru",
                "99.co",
                "EdgeProp"
              ]
            }
          },
          "transactionType": {
            "title": "Transaction Type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Sale or rental listings",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Types of property to include (leave empty for all)",
            "items": {
              "type": "string",
              "enum": [
                "condo",
                "hdb",
                "landed",
                "commercial"
              ],
              "enumTitles": [
                "Condo/Apartment",
                "HDB",
                "Landed House",
                "Commercial"
              ]
            }
          },
          "districts": {
            "title": "Districts (Postal Districts)",
            "type": "array",
            "description": "SG postal districts to filter by (leave empty for all)",
            "items": {
              "type": "string",
              "enum": [
                "D1",
                "D2",
                "D3",
                "D4",
                "D5",
                "D6",
                "D7",
                "D8",
                "D9",
                "D10",
                "D11",
                "D12",
                "D13",
                "D14",
                "D15",
                "D16",
                "D17",
                "D18",
                "D19",
                "D20",
                "D21",
                "D22",
                "D23",
                "D24",
                "D25",
                "D26",
                "D27",
                "D28"
              ],
              "enumTitles": [
                "D1 — Boat Quay / Raffles Place",
                "D2 — Chinatown / Tanjong Pagar",
                "D3 — Alexandra / Queenstown",
                "D4 — Keppel / Sentosa",
                "D5 — Buona Vista / Dover",
                "D6 — Clarke Quay / City Hall",
                "D7 — Bugis / Beach Road",
                "D8 — Little India / Farrer Park",
                "D9 — Orchard / Cairnhill",
                "D10 — Tanglin / Holland",
                "D11 — Newton / Novena",
                "D12 — Balestier / Toa Payoh",
                "D13 — MacPherson / Potong Pasir",
                "D14 — Geylang / Eunos",
                "D15 — East Coast / Marine Parade",
                "D16 — Bedok / Upper East Coast",
                "D17 — Changi / Loyang",
                "D18 — Tampines / Pasir Ris",
                "D19 — Serangoon / Hougang",
                "D20 — Ang Mo Kio / Bishan",
                "D21 — Clementi / Upper Bukit Timah",
                "D22 — Jurong / Boon Lay",
                "D23 — Bukit Panjang / Choa Chu Kang",
                "D24 — Lim Chu Kang / Tengah",
                "D25 — Woodlands / Admiralty",
                "D26 — Upper Thomson / Mandai",
                "D27 — Sembawang / Yishun",
                "D28 — Seletar / Yio Chu Kang"
              ]
            }
          },
          "minPrice": {
            "title": "Min Price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in SGD",
            "default": 0
          },
          "maxPrice": {
            "title": "Max Price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in SGD (0 = no limit)",
            "default": 0
          },
          "minBedrooms": {
            "title": "Min Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms (0 = any)",
            "default": 0
          },
          "maxBedrooms": {
            "title": "Max Bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of bedrooms (0 = any)",
            "default": 0
          },
          "minSizeSqft": {
            "title": "Min Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum floor area in square feet (0 = any)",
            "default": 0
          },
          "maxSizeSqft": {
            "title": "Max Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum floor area in square feet (0 = any)",
            "default": 0
          },
          "telegramBotToken": {
            "title": "Telegram Bot Token",
            "type": "string",
            "description": "Your Telegram bot token from @BotFather. The bot will send new listing alerts to your chat. Leave empty for testing — alerts will be skipped."
          },
          "telegramChatId": {
            "title": "Telegram Chat ID",
            "type": "string",
            "description": "Your Telegram chat ID (numeric). Message @userinfobot to get yours. Leave empty for testing."
          },
          "alertOnPriceDrop": {
            "title": "Alert on Price Drops",
            "type": "boolean",
            "description": "Send an alert when a previously seen listing drops in price",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxy configuration for scraping. Residential proxies help bypass site blocking."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}