{
  "openapi": "3.0.1",
  "info": {
    "title": "99.co Property Scraper — Singapore Listings, Agents & KPIs",
    "description": "Extract 99.co Singapore real estate data: sale and rent listings by location, MRT, district, coordinates, polygon or URL. Get price, PSF, floor area, tenure, project analysis, floor plans, agent contacts and built-in market KPIs. Clean structured JSON plus HTML report.",
    "version": "1.0",
    "x-build-id": "5fpvo2y4IW90FFshe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~99co-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-99co-property-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/sian.agency~99co-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-99co-property-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/sian.agency~99co-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-99co-property-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": {
          "searchMode": {
            "title": "🧭 Search Mode",
            "enum": [
              "location",
              "coordinates",
              "polygon",
              "url",
              "agents"
            ],
            "type": "string",
            "description": "How to search.\n\n• **location** — by free-text place (district, MRT, zone, project, street)\n• **coordinates** — by latitude/longitude + radius\n• **polygon** — inside a custom drawn area\n• **url** — paste a 99.co search-results URL\n• **agents** — search the Singapore agent directory",
            "default": "location"
          },
          "listingType": {
            "title": "🏠 Listing Type  (property modes)",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Which side of the market to scrape (ignored for the agents mode).\n\n• **sale** — for-sale listings\n• **rent** — rental listings\n• **both** — runs each query twice (PAID — doubles the query count)",
            "default": "sale"
          },
          "location": {
            "title": "📍 Location  (Search Mode = location)",
            "type": "string",
            "description": "Free-text Singapore location: a district (`D9`), MRT station (`Orchard MRT`), zone, condo project, street or address.",
            "default": "Orchard"
          },
          "locations": {
            "title": "📋 Bulk Locations  (PAID, location mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of Singapore locations. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "🗺 Latitude  (Search Mode = coordinates)",
            "type": "string",
            "description": "Latitude of the search centre, e.g. `1.3041` (Orchard)."
          },
          "longitude": {
            "title": "🗺 Longitude  (Search Mode = coordinates)",
            "type": "string",
            "description": "Longitude of the search centre, e.g. `103.8322` (Orchard)."
          },
          "radius": {
            "title": "📏 Radius (metres)  (coordinates mode)",
            "minimum": 100,
            "maximum": 30000,
            "type": "integer",
            "description": "Search radius in metres around the point. Default 2000, min 100, max 30000.",
            "default": 2000
          },
          "polygon": {
            "title": "🔷 Polygon  (Search Mode = polygon)",
            "type": "string",
            "description": "Custom search area as `lat,lng lat,lng lat,lng` (at least 3 vertices, space-separated). A GeoJSON coordinate array or an encoded polyline also works."
          },
          "searchUrl": {
            "title": "🔗 Search URL  (Search Mode = url)",
            "type": "string",
            "description": "A 99.co search-results URL — every filter and location scope in the URL is applied automatically."
          },
          "searchUrls": {
            "title": "📋 Bulk Search URLs  (PAID, url mode)",
            "uniqueItems": true,
            "type": "array",
            "description": "Array of 99.co search-results URLs. PAID tier only.",
            "items": {
              "type": "string"
            }
          },
          "agentQuery": {
            "title": "🧑‍💼 Agent Query  (Search Mode = agents)",
            "type": "string",
            "description": "Agent name or agency keyword (e.g. `aaron` or `ERA`). Leave empty to page the full directory."
          },
          "maxResults": {
            "title": "📊 Max results per query",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Hard cap on rows returned per query. Auto-paginates until the cap is reached or results run out. FREE tier is always capped at 25 rows per run.",
            "default": 60
          },
          "propertyType": {
            "title": "🏢 Property Type",
            "enum": [
              "all",
              "hdb",
              "condo",
              "landed",
              "retail",
              "office",
              "industrial",
              "land"
            ],
            "type": "string",
            "description": "Category bucket. Residential: hdb, condo, landed. Commercial (with propertySegment=commercial): retail, office, industrial, land.",
            "default": "all"
          },
          "propertySegment": {
            "title": "🏗 Property Segment",
            "enum": [
              "residential",
              "commercial"
            ],
            "type": "string",
            "description": "Market segment. Switch to commercial to unlock the commercial property types.",
            "default": "residential"
          },
          "bedrooms": {
            "title": "🛏 Bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Filter to listings with this number of bedrooms. Studios = 0. Leave empty for any."
          },
          "bathrooms": {
            "title": "🛁 Bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Filter to listings with this number of bathrooms. Leave empty for any."
          },
          "minPrice": {
            "title": "💵 Min price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in SGD (monthly rent when Listing Type = rent). Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "💵 Max price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in SGD (monthly rent when Listing Type = rent). Leave empty for no maximum."
          },
          "minFloorArea": {
            "title": "📐 Min floor area (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum interior floor area in square feet. Leave empty for no minimum."
          },
          "maxFloorArea": {
            "title": "📐 Max floor area (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum interior floor area in square feet. Leave empty for no maximum."
          },
          "tenure": {
            "title": "📜 Tenure",
            "type": "string",
            "description": "Tenure filter, comma-separated: freehold, leasehold, 999, 110, 60, 30."
          },
          "enrichListings": {
            "title": "➕ Enrich listings with full detail (PAID)",
            "type": "boolean",
            "description": "When ON, fetches the full detail for each property listing — project analysis (facilities, nearest MRT/schools/malls), floor plans and 20 similar listings. Adds a PropertyDetailEnriched charge per listing. Disabled on FREE tier.",
            "default": false
          },
          "enrichAgents": {
            "title": "➕ Enrich agents with full profile (PAID)",
            "type": "boolean",
            "description": "Agents mode only. When ON, fetches each agent's full profile — email, job title, area expertise and a listings breakdown by sale/rent, category and district. Adds an AgentEnriched charge per agent. Disabled on FREE tier.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}