{"openapi":"3.1.0","info":{"title":"Metrocuadrado Colombia Real Estate Data (x402 & MCP)","version":"0.1.0","description":"Colombian real estate listings, new projects and agencies from Metrocuadrado.com with price, area and stratum, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://agensi.opendata.best"}],"paths":{"/s/metrocuadrado-com/v1/search":{"post":{"operationId":"metrocuadrado_com_search","summary":"Metrocuadrado Colombia Real Estate Data: Search Metrocuadrado Colombia property listings","description":"Query Colombian sale and rental properties, projects or agencies by city, neighborhood and property filters. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["metrocuadrado-com","Data"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"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","enum":["auto","search","map","detail","project","agency","locations","catalog"]},"city":{"type":"string","description":"Enter a Metrocuadrado city slug, such as bogota, medellin or cali; use locations mode to find one. With no target fields, the API runs a three-row example search for Bogota apartments for sale."},"startUrls":{"type":"array","items":{"type":"string"},"description":"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":"Enter listing identifiers, such as 512-M4491547. With this target alone, auto mode selects detail."},"projectCodes":{"type":"array","items":{"type":"string"},"description":"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":"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":"Enter part of a city or neighborhood name, such as chapinero. Locations mode returns matching places and available slug paths."},"operation":{"type":"string","description":"venta (sale) or arriendo (rent).","default":"venta","enum":["venta","arriendo"]},"propertyType":{"type":"string","description":"Property type; empty = every type. New-build projects = proyectos-vivienda.","default":"apartamentos","enum":["","apartamentos","casas","apartaestudios","oficinas","consultorios","locales","bodegas","fincas","lotes","edificio-de-apartamentos","edificio-de-oficinas","proyectos-vivienda"]},"neighborhood":{"type":"string","description":"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":"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":"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":"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},"includeSimilar":{"type":"boolean","description":"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},"includeAgencyListings":{"type":"boolean","description":"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},"catalog":{"type":"string","description":"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","enum":["all","amenities","antiquity","types","propertyTypes"]},"zone":{"type":"string","description":"Choose a city zone: north (norte), south (sur), center (centro), east (oriente) or west (occidente). Availability depends on the city.","default":"","enum":["","norte","sur","centro","oriente","occidente"]},"bedrooms":{"type":"integer","description":"Filter search or map rows by the bedroom count requested from the site, from 0 to 20.","minimum":0,"maximum":20},"bathrooms":{"type":"integer","description":"Filter search or map rows by the bathroom count requested from the site, from 0 to 20.","minimum":0,"maximum":20},"stratum":{"type":"integer","description":"Filter search or map rows by Colombian socioeconomic stratum (estrato), from 1 to 6.","minimum":1,"maximum":6},"garages":{"type":"integer","description":"Filter search or map rows by the parking-space count requested from the site, from 0 to 20.","minimum":0,"maximum":20},"amenities":{"type":"array","items":{"type":"string"},"description":"Enter amenity values such as ascensor, conPiscina or conGimnasio. Use catalog mode with catalog=amenities to find available values.","default":[]},"status":{"type":"string","description":"Select used (usado) or new-build (nuevo) listings for search or map. An explicit value takes precedence over includeProjects.","default":"","enum":["","usado","nuevo"]},"keyword":{"type":"string","description":"Enter a term for the site to match in listings, such as chico."},"minArea":{"type":"integer","description":"Minimum floor area in square metres for search or map. If both bounds are set, maxArea must be at least minArea.","minimum":0},"maxArea":{"type":"integer","description":"Maximum floor area in square metres for search or map. If both bounds are set, this must be at least minArea.","minimum":0},"minPrice":{"type":"integer","description":"Minimum asking price in COP for search or map rows. If both bounds are set, maxPrice must be at least minPrice.","minimum":0},"maxPrice":{"type":"integer","description":"Maximum asking price in COP for search or map rows. If both bounds are set, this must be at least minPrice.","minimum":0},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 20 (default 10). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"mode":"auto","city":"bogota","operation":"venta","propertyType":"apartamentos","scrapeDetails":false,"includeProjects":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_metrocuadrado_com"},"example":{"jobId":"job_metrocua_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"listingId":"example_listingId","title":"example_title","operation":"example_operation","propertyType":"example_propertyType","city":"example_city","neighborhood":"example_neighborhood"}],"meta":{"site":"metrocuadrado-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/metrocuadrado-com/v1/health":{"get":{"operationId":"metrocuadrado_com_health","summary":"Metrocuadrado Colombia Real Estate Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["metrocuadrado-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"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"}}},"Row_metrocuadrado_com":{"type":"object","properties":{"listingId":{"type":["string","null"],"title":"Id"},"title":{"type":["string","number","boolean","object","array","null"]},"operation":{"type":["string","null"],"title":"Operation"},"propertyType":{"type":["string","null"],"title":"Type"},"city":{"type":["string","null"],"title":"City"},"neighborhood":{"type":["string","null"],"title":"Neighborhood"},"price":{"type":["number","null"],"title":"Price (COP)"},"priceAdmin":{"type":["number","string","null"]},"areaM2":{"type":["string","number","boolean","object","array","null"]},"bedrooms":{"type":["string","number","boolean","object","array","null"]},"bathrooms":{"type":["string","number","boolean","object","array","null"]},"garages":{"type":["string","number","boolean","object","array","null"]},"estrato":{"type":["number","null"],"title":"Estrato"},"phone":{"type":["string","null"],"title":"Phone"},"whatsapp":{"type":["string","null"],"title":"WhatsApp"},"companyName":{"type":["string","number","boolean","object","array","null"]},"latitude":{"type":["number","null"],"title":"Lat"},"longitude":{"type":["number","null"],"title":"Lng"},"listingUrl":{"type":["string","null"],"format":"uri","title":"URL"},"imageUrl":{"type":["string","null"],"format":"uri"},"phones":{"type":["string","null"],"title":"Phones (lead)"},"emails":{"type":["string","null"],"title":"Emails (lead)"},"address":{"type":["string","null"],"title":"Address (lead)"},"geo":{"type":["string","null"],"title":"Geo (lead)"},"person":{"type":["string","null"],"title":"Person (lead)"},"org":{"type":["string","null"],"title":"Org (lead)"},"web":{"type":["string","null"],"title":"Web (lead)"},"leadSource":{"type":["string","null"],"title":"Lead Source"},"leadReveal":{"type":["string","null"],"title":"Lead Reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead Absences"}},"additionalProperties":true},"Response_metrocuadrado_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_metrocuadrado_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}