{"openapi":"3.0.0","info":{"title":"PropertyGuru Singapore and Malaysia Homes","version":"1.0.0","description":"PropertyGuru sale and rental listings across Singapore, Malaysia and regional portals with pricing and condo attributes, one row per entity."},"servers":[{"url":"https://ah-propertyguru-com.opendata.best/s/propertyguru-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search PropertyGuru Southeast Asia listings","description":"Search residential and commercial property listings across Singapore and Malaysia by location or URL.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"startUrls":{"type":"array","items":{"type":"string"},"description":"Search or listing URLs. PropertyGuru Singapore, PropertyGuru Malaysia or CommercialGuru search or listing URLs. URLs determine the market and take precedence over Location; include search filters in the URLs themselves.","example":[{"url":"https://www.propertyguru.com.sg/condo-for-sale?market=residential"}]},"location":{"type":"string","description":"Location. Area or city to search when no URLs are supplied, such as orchard or kuala-lumpur. Empty targets use the sample search unless you choose a different market, channel or property type."},"market":{"type":"string","enum":["SG","MY","CG","all"],"description":"Market. Choose SG for Singapore, MY for Malaysia, CG for CommercialGuru Singapore, or all for all three sites. Supplied URLs determine their own markets.","default":"SG"},"markets":{"type":"array","items":{"type":"string","enum":["SG","MY","CG","all"]},"description":"Multiple markets. Choose several markets. The single Market selection is also included unless URLs determine the markets; choose a Market already in this list to avoid adding another one."},"channel":{"type":"string","enum":["BUY","RENT"],"description":"Channel. Choose BUY for sale listings or RENT for rentals. For supplied search URLs, the URL determines sale or rent.","default":"BUY"},"propertyType":{"type":"string","enum":["all","residential","commercial","hdb","condo","apartment","landed","landed-house","terraced-house","terrace-house","semi-detached-house","bungalow","executive-condo","good-class-bungalow","cluster-house","townhouse","room","office","retail","industrial","warehouse","land"],"description":"Property type. Choose one property type or a group of types for a generated search. Multiple property types take precedence when supplied; all selects the market's supported primary categories.","default":"all"},"propertyTypes":{"type":"array","items":{"type":"string","enum":["all","residential","commercial","hdb","condo","apartment","landed","landed-house","terraced-house","terrace-house","semi-detached-house","bungalow","executive-condo","good-class-bungalow","cluster-house","townhouse","room","office","retail","industrial","warehouse","land"]},"description":"Multiple property types. Choose several property types or groups for a generated search. This selection replaces the single Property type when non-empty."},"districtCode":{"type":"string","description":"District code. District filter for a generated search, such as D09 in Singapore. To filter a supplied search URL, include the district in that URL."},"minPrice":{"type":"integer","minimum":0,"description":"Minimum price. Minimum asking price in the selected market currency for a generated search."},"maxPrice":{"type":"integer","minimum":0,"description":"Maximum price. Maximum asking price in the selected market currency for a generated search. Must be greater than or equal to minPrice when both are supplied."},"bedrooms":{"type":"integer","minimum":0,"maximum":20,"description":"Bedrooms. Bedroom count for a generated search. Accepts integers from 0 to 20."},"maxPages":{"type":"integer","minimum":1,"maximum":50,"description":"Maximum search pages (not available). Use Maximum rows per input and Maximum cost per run to limit collection.","default":1},"scrapeDetails":{"type":"boolean","description":"Collect listing details. Add available property and contact information from listing detail pages to the same row. Basic details may still be fetched when this is off if needed to produce a usable listing.","default":true},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"market":"SG","location":"orchard","channel":"BUY","scrapeDetails":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"id":{},"url":{"nullable":true,"type":"string"},"source":{"type":"string"},"sourceLayer":{"nullable":true,"type":"string"},"market":{"nullable":true,"type":"string"},"marketplace":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"channel":{"nullable":true,"type":"string"},"tradeType":{"nullable":true,"type":"string"},"recordType":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"propertyType":{"nullable":true,"type":"string"},"title":{},"projectName":{},"address":{},"district":{},"price":{},"priceFormatted":{},"pricePsf":{},"bedrooms":{},"bathrooms":{},"floorAreaSqft":{},"tenure":{},"builtYear":{},"mrt":{},"agentName":{},"scrapedAt":{"type":"string"},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"}}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true},"lng":{"nullable":true}}},"person":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string"}}},"web":{"nullable":true,"type":"object","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string"},"leadReveal":{"nullable":true,"type":"string"},"leadAbsences":{"nullable":true,"type":"object","additionalProperties":true}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id, url, title."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}