{
  "openapi": "3.0.1",
  "info": {
    "title": "Singapore Real Estate Agents",
    "description": "Look up Singapore real estate agents by phone, CEA number, agency, region, district, or HDB town, with optional deal history.",
    "version": "1.0",
    "x-build-id": "ZAp3J48bFsniv0JCW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datascrapers~singapore-realestate-agents/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datascrapers-singapore-realestate-agents",
        "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/datascrapers~singapore-realestate-agents/runs": {
      "post": {
        "operationId": "runs-sync-datascrapers-singapore-realestate-agents",
        "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/datascrapers~singapore-realestate-agents/run-sync": {
      "post": {
        "operationId": "run-sync-datascrapers-singapore-realestate-agents",
        "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": {
          "zones": {
            "title": "Zone",
            "uniqueItems": true,
            "type": "array",
            "description": "Planning zone. Pick one or more. An agent matches if they cover any selected zone. e.g. Central.",
            "items": {
              "type": "string",
              "enum": [
                "Central",
                "East",
                "North",
                "North-East",
                "West"
              ],
              "enumTitles": [
                "Central",
                "East",
                "North",
                "North-East",
                "West"
              ]
            }
          },
          "postalDistricts": {
            "title": "Postal district",
            "uniqueItems": true,
            "type": "array",
            "description": "Postal district code, D01 to D28. Pick one or more. An agent matches if they have listings in any selected district. e.g. D09, Orchard / Cairnhill / River Valley. Choosing a zone as well keeps only agents in both.",
            "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 — Raffles Place / Cecil / Marina / People's Park",
                "D02 — Anson / Tanjong Pagar",
                "D03 — Queenstown / Tiong Bahru",
                "D04 — Telok Blangah / Harbourfront",
                "D05 — Pasir Panjang / Hong Leong Garden / Clementi New Town",
                "D06 — High Street / Beach Road",
                "D07 — Middle Road / Golden Mile",
                "D08 — Little India",
                "D09 — Orchard / Cairnhill / River Valley",
                "D10 — Ardmore / Bukit Timah / Holland Road / Tanglin",
                "D11 — Watten Estate / Novena / Thomson",
                "D12 — Balestier / Toa Payoh / Serangoon",
                "D13 — Macpherson / Braddell",
                "D14 — Geylang / Eunos",
                "D15 — Katong / Joo Chiat / Amber Road",
                "D16 — Bedok / Upper East Coast / Eastwood / Kew Drive",
                "D17 — Loyang / Changi",
                "D18 — Tampines / Pasir Ris",
                "D19 — Serangoon Garden / Hougang / Punggol",
                "D20 — Bishan / Ang Mo Kio",
                "D21 — Upper Bukit Timah / Clementi Park / Ulu Pandan",
                "D22 — Jurong",
                "D23 — Hillview / Dairy Farm / Bukit Panjang / Choa Chu Kang",
                "D24 — Lim Chu Kang / Tengah",
                "D25 — Kranji / Woodgrove / Woodlands",
                "D26 — Upper Thomson / Springleaf",
                "D27 — Yishun / Sembawang",
                "D28 — Seletar"
              ]
            }
          },
          "includePhone": {
            "title": "Include phone numbers",
            "type": "boolean",
            "description": "Add the phone number and WhatsApp link to each agent. Each agent with a phone number is charged as a phone result. This does not search by phone.",
            "default": true
          },
          "includeHistory": {
            "title": "Include history summary",
            "type": "boolean",
            "description": "Return a deal summary for each agent. Each summary is charged as a history result.",
            "default": false
          },
          "includeTransactions": {
            "title": "Include deals",
            "type": "boolean",
            "description": "Return individual deals for each agent. Each deal is charged as a transaction result.",
            "default": false
          },
          "includeFullProfile": {
            "title": "Include full profile",
            "type": "boolean",
            "description": "Return the full profile object. Phone fields are left out unless Include phone numbers is on.",
            "default": false
          },
          "transactionTypes": {
            "title": "Deal types",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit history and deals to these types. e.g. resale. Allowed values: whole_rental, resale, room_rental, new_sale, sub_sale.",
            "items": {
              "type": "string",
              "enum": [
                "whole_rental",
                "resale",
                "room_rental",
                "new_sale",
                "sub_sale"
              ],
              "enumTitles": [
                "Whole rental",
                "Resale",
                "Room rental",
                "New sale",
                "Sub sale"
              ]
            }
          },
          "listingTypes": {
            "title": "Deal listing types",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit history and deals to sale or rent. e.g. sale.",
            "items": {
              "type": "string",
              "enum": [
                "sale",
                "rent"
              ],
              "enumTitles": [
                "Sale",
                "Rent"
              ]
            }
          },
          "propertyCategories": {
            "title": "Deal property categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit history and deals by property category. e.g. condo.",
            "items": {
              "type": "string",
              "enum": [
                "condo",
                "hdb",
                "landed",
                "ec",
                "strata_landed"
              ],
              "enumTitles": [
                "Condo",
                "HDB",
                "Landed",
                "Executive condo",
                "Strata landed"
              ]
            }
          },
          "clients": {
            "title": "Deal clients",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit history and deals by client role. e.g. seller.",
            "items": {
              "type": "string",
              "enum": [
                "seller",
                "buyer",
                "landlord",
                "tenant"
              ],
              "enumTitles": [
                "Seller",
                "Buyer",
                "Landlord",
                "Tenant"
              ]
            }
          },
          "maxItems": {
            "title": "Max agents",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum agents to return. 0 means every match. e.g. 10.",
            "default": 0
          },
          "maxTransactions": {
            "title": "Max deals per agent",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum deals to attach to each agent when deals are included. 0 means every matching deal. e.g. 20.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy in Singapore. e.g. country SG.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "SG"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}