{
  "openapi": "3.0.1",
  "info": {
    "title": "99.co Singapore Scraper",
    "description": "Scrape Singapore property listings from 99.co for sale and rent. Prefer Start URLs copied from the site, or search by location with the same filters as the website (condo/HDB/landed, price, size, tenure). Optionally enrich with listing details and agent profiles.",
    "version": "1.0",
    "x-build-id": "VZDXyLS9LjYMBai9P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datascrapers~99-co-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datascrapers-99-co-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/datascrapers~99-co-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datascrapers-99-co-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/datascrapers~99-co-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datascrapers-99-co-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "99.co search, listing, or agent URLs copied from the browser (preferred). Examples: \"https://www.99.co/singapore/sale\", \"https://www.99.co/singapore/rent\", \"https://www.99.co/singapore/sale/property/dover-parkview-condo-duLTxSUTps9PBGEJEBDWFu\". Search URLs are paginated as-is; listing URLs are scraped directly; agent URLs scrape that agent's listings. Filters below apply to Search Queries, not to Start URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Locations or keywords (e.g. \"Orchard\", \"Tampines\", \"District 9\", \"Punggol MRT\"). Mapped to 99.co's name / query_name search. Leave empty to scrape all listings matching the filters below, or rely on Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Buy (sale) or rent. Ignored when Start URLs already include /sale or /rent.",
            "default": "sale"
          },
          "propertySegments": {
            "title": "Property Segment",
            "enum": [
              "residential",
              "commercial",
              "industrial",
              "land"
            ],
            "type": "string",
            "description": "99.co property segment. Residential is the default marketplace.",
            "default": "residential"
          },
          "mainCategory": {
            "title": "Property Type Group",
            "uniqueItems": true,
            "type": "array",
            "description": "High-level type. Leave empty for all (or infer from Property Types below).",
            "items": {
              "type": "string",
              "enum": [
                "condo",
                "hdb",
                "landed"
              ],
              "enumTitles": [
                "Condo",
                "HDB",
                "Landed"
              ]
            }
          },
          "propertySubTypes": {
            "title": "Property Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Specific types. Leave empty to include all types (or all types in the selected groups). Landed types are sent as landed_sub_type; others as sub_category.",
            "items": {
              "type": "string",
              "enum": [
                "generic_condo",
                "condo_apartment",
                "executive_condo",
                "walk_up",
                "hdb_1r",
                "hdb_2r",
                "hdb_3r",
                "hdb_4r",
                "hdb_5r",
                "hdb_ea",
                "hdb_em",
                "hdb_jumbo",
                "hdb_studio",
                "terraced_house",
                "semi_detached",
                "detached",
                "corner_terrace",
                "bungalow",
                "good_class_bungalow",
                "shophouse",
                "cluster_house",
                "townhouse"
              ],
              "enumTitles": [
                "Condo",
                "Apartment (Condo)",
                "Executive Condo",
                "Walk-up (Condo)",
                "HDB 1 Room",
                "HDB 2 Rooms",
                "HDB 3 Rooms",
                "HDB 4 Rooms",
                "HDB 5 Rooms",
                "HDB Executive Apartment",
                "HDB Executive Maisonette",
                "HDB Jumbo",
                "HDB Studio",
                "Terraced House (Landed)",
                "Semi-Detached (Landed)",
                "Detached House (Landed)",
                "Corner Terrace (Landed)",
                "Bungalow (Landed)",
                "Good Class Bungalow (Landed)",
                "Shophouse (Landed)",
                "Cluster House (Landed)",
                "Townhouse (Landed)"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum Price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in Singapore dollars. For sale this is the total price (e.g. 500000); for rent this is monthly rent (e.g. 2500)."
          },
          "maxPrice": {
            "title": "Maximum Price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in Singapore dollars."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Bedroom count. Studio is 0; 5 means 5 or more. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "Studio",
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            }
          },
          "bathrooms": {
            "title": "Bathrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Bathroom count. 5 means 5 or more. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            }
          },
          "minSize": {
            "title": "Minimum Floor Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum internal floor area in square feet (e.g. 500, 1000)."
          },
          "maxSize": {
            "title": "Maximum Floor Size (sqft)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum internal floor area in square feet."
          },
          "leaseType": {
            "title": "Tenure",
            "uniqueItems": true,
            "type": "array",
            "description": "Land tenure. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "Freehold",
                "99 yrs",
                "999 yrs",
                "103 yrs"
              ],
              "enumTitles": [
                "Freehold",
                "99-year Leasehold",
                "999-year Leasehold",
                "103-year Leasehold"
              ]
            }
          },
          "furnishing": {
            "title": "Furnishing",
            "uniqueItems": true,
            "type": "array",
            "description": "Furnishing level. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "unfurnished",
                "partial",
                "fully"
              ],
              "enumTitles": [
                "Unfurnished",
                "Partially Furnished",
                "Fully Furnished"
              ]
            }
          },
          "rentalType": {
            "title": "Entire Unit or Room (rent)",
            "enum": [
              "",
              "all",
              "unit",
              "room"
            ],
            "type": "string",
            "description": "For rent searches only: entire unit vs room rental. Leave empty for all.",
            "default": ""
          },
          "newLaunch": {
            "title": "New Launch Only",
            "type": "boolean",
            "description": "Only new launch projects (composite_property_status=new_launch).",
            "default": false
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "psf_asc",
              "psf_desc",
              "size_desc",
              "size_asc"
            ],
            "type": "string",
            "description": "Result ordering on search pages.",
            "default": "relevance"
          },
          "scrapeListingDetails": {
            "title": "Scrape Listing Details",
            "type": "boolean",
            "description": "Open listing pages in parallel (see Max Concurrency) for description, photos, coordinates, and unit details. Charges the listing-details event per listing in addition to dataset-item.",
            "default": false
          },
          "scrapeAgentInfo": {
            "title": "Scrape Agent Information",
            "type": "boolean",
            "description": "Open the listing agent profile for CEA license, agency, bio, and transaction history. Charges the agent-info event per listing that includes agent data.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited)",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many listing-detail (and agent) pages to open at the same time. Each tab uses the same sticky residential proxy. Higher is faster; 3–5 is a good default (e.g. 5).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Apify Residential is required — 99.co sits behind Cloudflare. Use Singapore (SG) IPs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}