{"openapi":"3.0.0","info":{"title":"Metrocuadrado Colombia Real Estate Data","version":"1.0.0","description":"Colombian real estate listings, new projects and agencies from Metrocuadrado.com with price, area and stratum, one row per entity."},"servers":[{"url":"https://ah-metrocuadrado-com.opendata.best/s/metrocuadrado-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search Metrocuadrado Colombia property listings","description":"Query Colombian sale and rental properties, projects or agencies by city, neighborhood and property filters.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","map","detail","project","agency","locations","catalog"],"description":"Mode. Choose auto to select a mode from your target fields, or select search, map, detail, project, agency, locations or catalog. Map returns sparse property rows; the other modes return listings, project units, agencies, locations or filter entries.","default":"auto","example":"auto"},"city":{"type":"string","description":"City. Enter a Metrocuadrado city slug, such as bogota, medellin or cali; use locations mode to find one.","example":"bogota"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Enter Metrocuadrado search, listing (/inmueble/), project (/proyecto/), agency (/inmobiliaria/) or builder (/constructora/) page URLs. For example: https://www.metrocuadrado.com/apartamentos/arriendo/bogota/usaquen/."},"ids":{"type":"array","items":{"type":"string"},"description":"Listing ids. Enter listing identifiers, such as 512-M4491547. With this target alone, auto mode selects detail."},"projectCodes":{"type":"array","items":{"type":"string"},"description":"Project unit ids. Enter a unit identifier from each project, such as 21477-C0001-03. Project mode returns available units within that development, up to the row limit."},"agencyUrls":{"type":"array","items":{"type":"string"},"description":"Agency / builder URLs. Enter Metrocuadrado agency or builder page URLs containing /inmobiliaria/ or /constructora/. Enable includeAgencyListings to add individual listings as separate billed rows."},"query":{"type":"string","description":"Location query. Enter part of a city or neighborhood name, such as chapinero. Locations mode returns matching places and available slug paths."},"operation":{"type":"string","enum":["venta","arriendo"],"description":"Operation. venta (sale) or arriendo (rent).","default":"venta"},"propertyType":{"type":"string","enum":["","apartamentos","casas","apartaestudios","oficinas","consultorios","locales","bodegas","fincas","lotes","edificio-de-apartamentos","edificio-de-oficinas","proyectos-vivienda"],"description":"Property type. Property type; empty = every type. New-build projects = proyectos-vivienda.","default":"apartamentos"},"neighborhood":{"type":"string","description":"Neighborhood. Neighborhood slug inside the city (e.g. usaquen, el-poblado). Slugs repeat across cities, so the city is always used with it.","default":""},"scrapeDetails":{"type":"boolean","description":"Full details. Add descriptions, features, areas, estrato, photos and agency or project information to search rows when available. Published phone and WhatsApp fields do not require this option.","default":true},"includeGeo":{"type":"boolean","description":"Coordinates. Add available map coordinates to search rows when full details are off. Full detail rows may include coordinates regardless of this setting.","default":true},"includeProjects":{"type":"boolean","description":"Include new-build project units. Allow new-build units in search when status is empty. When off, search selects used listings unless status explicitly selects new-build listings.","default":false,"example":false},"includeSimilar":{"type":"boolean","description":"Similar listings. In detail mode, add each suggested listing as a separate row with rowType=similarListing and sourceListingId. These rows are off by default, share the input maxResults limit and cost the same as other rows.","default":false,"example":false},"includeAgencyListings":{"type":"boolean","description":"Agency listings as rows. In agency mode, add each listing as a separate row with rowType=agencyListing and agencyId. Off by default; enabled rows share the input maxResults limit with the agency row and cost the same as other rows.","default":false,"example":false},"catalog":{"type":"string","enum":["all","amenities","antiquity","types","propertyTypes"],"description":"Catalog. In catalog mode, choose all, amenities, antiquity, types or propertyTypes. Entries with a filter value identify a supported input field; age bands are reference data only.","default":"all"},"zone":{"type":"string","enum":["","norte","sur","centro","oriente","occidente"],"description":"Zone. Choose a city zone: north (norte), south (sur), center (centro), east (oriente) or west (occidente). Availability depends on the city.","default":""},"bedrooms":{"type":"integer","minimum":0,"maximum":20,"description":"Bedrooms. Filter search or map rows by the bedroom count requested from the site, from 0 to 20."},"bathrooms":{"type":"integer","minimum":0,"maximum":20,"description":"Bathrooms. Filter search or map rows by the bathroom count requested from the site, from 0 to 20."},"stratum":{"type":"integer","minimum":1,"maximum":6,"description":"Stratum (estrato). Filter search or map rows by Colombian socioeconomic stratum (estrato), from 1 to 6."},"garages":{"type":"integer","minimum":0,"maximum":20,"description":"Parking spaces. Filter search or map rows by the parking-space count requested from the site, from 0 to 20."},"amenities":{"type":"array","items":{"type":"string"},"description":"Amenities. Enter amenity values such as ascensor, conPiscina or conGimnasio. Use catalog mode with catalog=amenities to find available values.","default":[]},"status":{"type":"string","enum":["","usado","nuevo"],"description":"Condition. Select used (usado) or new-build (nuevo) listings for search or map. An explicit value takes precedence over includeProjects.","default":""},"keyword":{"type":"string","description":"Keyword. Enter a term for the site to match in listings, such as chico."},"minArea":{"type":"integer","minimum":0,"description":"Min area m². Minimum floor area in square metres for search or map. If both bounds are set, maxArea must be at least minArea."},"maxArea":{"type":"integer","minimum":0,"description":"Max area m². Maximum floor area in square metres for search or map. If both bounds are set, this must be at least minArea."},"minPrice":{"type":"integer","minimum":0,"description":"Min price (COP). Minimum asking price in COP for search or map rows. If both bounds are set, maxPrice must be at least minPrice."},"maxPrice":{"type":"integer","minimum":0,"description":"Max price (COP). Maximum asking price in COP for search or map rows. If both bounds are set, this must be at least minPrice."},"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":{"mode":"auto","city":"bogota","operation":"venta","propertyType":"apartamentos","scrapeDetails":false,"includeProjects":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":{"nullable":true,"type":"string","description":"Title/name from the source; null when it carries none (e.g. mode=map rows)."},"type":{"type":"string"},"status":{"nullable":true,"type":"string","description":"Operation for listing rows (venta/arriendo); usado/nuevo for catalog type rows; null on other non-listing rows."},"country":{"type":"string"},"authority":{"type":"string"},"listingId":{"nullable":true,"type":"string"},"listingUrl":{"nullable":true,"type":"string","description":"Property page URL when available; map rows do not contain a listing URL."},"operation":{"nullable":true,"type":"string"},"propertyType":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"neighborhood":{"nullable":true,"type":"string"},"price":{"nullable":true,"type":"number"},"currency":{"nullable":true,"type":"string"},"bedrooms":{"nullable":true,"type":"number"},"bathrooms":{"nullable":true,"type":"number"},"areaM2":{"nullable":true,"type":"number"},"estrato":{"nullable":true,"type":"number"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"},"phone":{"nullable":true,"type":"string","description":"Primary published listing phone number, when available; map rows do not contain phone numbers."},"whatsapp":{"nullable":true,"type":"string","description":"Published listing WhatsApp number, when available; map rows do not contain WhatsApp numbers."},"whatsappUrl":{"nullable":true,"type":"string","description":"https://wa.me/<whatsapp> when whatsapp is set."},"whatsappBot":{"nullable":true,"type":"string","description":"Agency WhatsApp bot number when published with listing details."},"companyName":{"nullable":true,"type":"string"},"companyLink":{"nullable":true,"type":"string"},"companyAddress":{"nullable":true,"type":"string"},"listingKind":{"nullable":true,"type":"string","description":"project for Metrocuadrado project codes (-C...) or /proyecto/ links, used for inmueble codes (-M...) or isUsed=true; null when the source does not say."},"phones":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"},"e164":{"nullable":true,"type":"string"}}}},"emails":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"address":{"nullable":true,"type":"object","properties":{"street":{"nullable":true,"type":"string"},"unit":{"nullable":true,"type":"string"},"locality":{"nullable":true,"type":"string"},"neighborhood":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string"}}},"geo":{"nullable":true,"type":"object","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"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","description":"Not supplied for the organization attached to a listing."}}},"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":{"type":"string"}},"title":{"nullable":true,"type":"string","description":"Listing title as published on Metrocuadrado; map rows do not contain titles."},"subtitle":{"nullable":true,"type":"string","description":"Detail subtitle."},"description":{"nullable":true,"type":"string","description":"Full listing description (scrapeDetails)."},"propertyState":{"nullable":true,"type":"string","description":"Usado / Nuevo as reported by the site."},"priceSale":{"nullable":true,"type":"number","description":"Sale price (COP); null when not for sale."},"priceLease":{"nullable":true,"type":"number","description":"Monthly rent (COP); null when not for rent."},"priceAdmin":{"nullable":true,"type":"number","description":"Monthly administration fee (COP)."},"adminIncluded":{"nullable":true,"type":"boolean","description":"Whether the administration fee is included in the rent."},"garages":{"nullable":true,"type":"number","description":"Parking spaces."},"imageUrl":{"nullable":true,"type":"string","description":"Main property photo URL when available; map rows do not contain photo URLs."},"images":{"nullable":true,"type":"array","description":"Up to 50 photo URLs from listing details.","items":{"type":"string"}},"spotlight":{"nullable":true,"description":"Published listing highlight value, which may be text, a boolean, a number or an object; absent on map rows."},"propertyTypeId":{"nullable":true,"type":"string","description":"Metrocuadrado property-type number (1 Apartamento, 2 Casa, ... 15 Lote)."},"businessTypeId":{"nullable":true,"type":"string","description":"Metrocuadrado business-type number."},"isSale":{"nullable":true,"type":"boolean","description":"Offered for sale."},"isLease":{"nullable":true,"type":"boolean","description":"Offered for rent."},"isUsed":{"nullable":true,"type":"boolean","description":"Used (true) or new-build project unit (false)."},"isOccasional":{"nullable":true,"type":"boolean","description":"Short-term listing flag."},"age":{"nullable":true,"type":"string","description":"Building age band."},"features":{"nullable":true,"type":"array","description":"Feature groups [{group, items[]}] (detail).","items":{"type":"object"}},"amenities":{"nullable":true,"type":"array","description":"Up to 50 amenity texts from the detail feature groups.","items":{"type":"string"}},"areaPrivate":{"nullable":true,"type":"number","description":"Private area m²."},"areaBuilt":{"nullable":true,"type":"number","description":"Built area m²."},"neighborhoodCatastral":{"nullable":true,"type":"string","description":"Cadastral neighborhood name."},"video":{"nullable":true,"description":"Video link when the listing has one."},"project":{"nullable":true,"type":"object","description":"New-build project: name, builder, deliveryDate, price and area ranges."},"projectCode":{"nullable":true,"type":"string","description":"Project unit id the units were listed from (mode=project)."},"rowType":{"nullable":true,"type":"string","description":"Row category: listing, agency, location, catalog, agencyListing or similarListing. Optional agencyListing and similarListing rows share the input maxResults limit and cost the same as other rows."},"sourceListingId":{"nullable":true,"type":"string","description":"On similarListing rows: the detail listing this suggestion came from."},"sourceLayer":{"nullable":true,"type":"string","description":"search, map, detail, project, agency, locations or catalog."},"scrapedAt":{"nullable":true,"type":"string","description":"When the row was collected (UTC)."},"source":{"nullable":true,"type":"string","description":"metrocuadrado.com"},"kind":{"nullable":true,"type":"string","description":"Row kind for non-listing modes (inmobiliaria, constructora, city, neighborhood, zone, point, amenity, antiquity, type, propertyType)."},"agencyId":{"nullable":true,"type":"string","description":"Agency or builder id (mode=agency rows and their agencyListing child rows)."},"agencyUrl":{"nullable":true,"type":"string","description":"Agency or builder page (mode=agency rows and their agencyListing child rows)."},"agencyName":{"nullable":true,"type":"string","description":"Agency or builder name on agencyListing child rows."},"listingCount":{"nullable":true,"type":"number","description":"Listings shown on the agency page (agency row only; the listings themselves are agencyListing rows when includeAgencyListings is on)."},"label":{"nullable":true,"type":"string","description":"Display label (locations / catalog)."},"value":{"nullable":true,"type":"string","description":"Value to pass back as a filter (catalog: amenities value, propertyType slug)."},"id":{"nullable":true,"description":"Numeric id (catalog propertyType)."},"filter":{"nullable":true,"type":"string","description":"Input field this catalog value belongs to."},"verified":{"nullable":true,"type":"boolean","description":"True for a predefined property-type mapping; false for a catalog entry returned by the site."},"zone":{"nullable":true,"type":"string","description":"Zone (locations)."},"region":{"nullable":true,"type":"string","description":"Department / region (locations)."},"urlFragment":{"nullable":true,"type":"string","description":"Site slug path, e.g. bogota/usaquen — use city/neighborhood from it."},"normalizedLocation":{"nullable":true,"type":"string","description":"Site-normalized location label."},"raw":{"nullable":true,"type":"object","description":"Original web location point."}},"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; rowType=listing: listingId, price|priceSale|priceLease|project.priceMin; rowType=similarListing: listingId, listingUrl; rowType=agencyListing: listingId, listingUrl; rowType=agency: agencyId; rowType=location: urlFragment|label|name; rowType=catalog: value|label|name."},"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"}}}}}}