{"openapi":"3.0.0","info":{"title":"Properati Colombia Property Listings Data","version":"1.0.0","description":"Colombian homes, apartments, lots and offices for sale or rent from Properati.com.co, one row per entity."},"servers":[{"url":"https://ah-properati-com-co.opendata.best/s/properati-com-co"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Properati Colombia property listings","description":"Retrieve Colombian real estate sale and rental listings by city geo slug and property type.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"searchType":{"type":"string","enum":["auto","search","detail"],"description":"Search type. Use Auto to select listing details when links are supplied, or a city search otherwise. For Argentina, Peru and Ecuador, provide existing listing links in Detail URLs.","default":"auto","example":"auto"},"geo":{"type":"string","enum":["bogota-d-c-colombia","medellin-antioquia","cali-valle-del-cauca","barranquilla-atlantico","cartagena-bolivar","bucaramanga","pereira","santa-marta","cucuta-norte-de-santander-colombia","manizales-caldas","armenia-quindio1","villavicencio","ibague-tolima-colombia","pasto","neiva"],"description":"City. Select one Colombian city for a search. With Auto, listing links take priority over the city; leaving both targets empty starts the 3-row Bogotá example.","example":"bogota-d-c-colombia"},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs. Paste existing Properati /detalle/ listing links from Colombia, Argentina, Peru or Ecuador. These links are collected instead of a city search; use current links copied from search results.","example":[]},"propertyType":{"type":"string","enum":["apartamento","casa","lote","oficina","local","bodega","finca","consultorio","parqueadero","habitacion","penthouse","casa-campestre","apartaestudio"],"description":"Property type. Choose the property category to search, such as apartments or houses. Available listings depend on the selected city and operation.","default":"apartamento","example":"apartamento"},"operation":{"type":"string","enum":["venta","arriendo"],"description":"Sale or rent. Select sale (venta) or rent (arriendo) for Colombian city searches.","default":"venta","example":"venta"},"bedrooms":{"type":"integer","minimum":1,"maximum":20,"description":"Bedrooms. Filter the city search by bedroom count, from 1 to 20. Leave empty to search without this filter."},"maxPages":{"type":"integer","minimum":1,"maximum":20,"description":"Search page count. Requested number of search pages, from 1 to 20. Collection may end sooner when the row limit is reached or no more listings are available.","default":1,"example":1},"page":{"type":"integer","minimum":1,"maximum":20,"description":"Start page. First search page to request, from 1 to 20. Use 1 to begin at the first page.","default":1,"example":1},"enrichDetails":{"type":"boolean","description":"Add listing details. Add available phone numbers, addresses, agency information and photos to search rows. Off by default; enrichment updates the same listing row rather than adding a separately billed row.","default":false,"example":false},"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":{"geo":"bogota-d-c-colombia","operation":"venta","propertyType":"apartamento","enrichDetails":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":{"name":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"country":{"type":"string"},"authority":{"type":"string"},"listingId":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"priceText":{"nullable":true,"type":"string"},"priceAmount":{"nullable":true,"type":"integer"},"currency":{"nullable":true,"type":"string"},"localityLabel":{"nullable":true,"type":"string"},"bedrooms":{"nullable":true,"type":"integer"},"bathrooms":{"nullable":true,"type":"integer"},"areaText":{"nullable":true,"type":"string"},"operation":{"nullable":true,"type":"string"},"propertyType":{"nullable":true,"type":"string"}},"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: listingId, url, title, priceAmount|priceText."},"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"}}}}}}