{
  "openapi": "3.0.1",
  "info": {
    "title": "Metrocuadrado Scraper: Colombia Property Listings",
    "description": "Scrape Metrocuadrado Colombia real estate (venta and arriendo) by city, barrio or URL. Get COP+USD prices, price/m² vs barrio and estrato, cheap/fair/expensive deal labels, rental yield, admin fee, price-drop tags, market report and monitor mode.",
    "version": "0.1",
    "x-build-id": "Osf6CjNSnQXZKCFgn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~metrocuadrado-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-metrocuadrado-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/kareninatech~metrocuadrado-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-metrocuadrado-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/kareninatech~metrocuadrado-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-metrocuadrado-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "arriendo"
            ],
            "type": "string",
            "description": "Buy (venta) or rent (arriendo).",
            "default": "venta"
          },
          "property_type": {
            "title": "Property type",
            "enum": [
              "apartamentos",
              "casas",
              "apartaestudios",
              "oficinas",
              "locales",
              "lotes",
              "bodegas",
              "fincas",
              "consultorios",
              "inmuebles"
            ],
            "type": "string",
            "description": "Type of property. 'All property types' searches every type at once.",
            "default": "apartamentos"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A place name as you would type it: Bogotá, Medellín, Cali, Barranquilla, Cartagena, Chapinero, Usaquén, El Poblado, Laureles, or a department like Antioquia. For a barrio in a specific city use 'Medellín, Laureles'. Leave empty for all of Colombia.",
            "default": "Bogotá"
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Extra places to search in the same run. max_items is split between all searches.",
            "items": {
              "type": "string"
            }
          },
          "search_url": {
            "title": "Metrocuadrado search URL (optional)",
            "type": "string",
            "description": "Paste a results page from metrocuadrado.com with your filters already set. When you use URLs, the filters above are ignored."
          },
          "start_urls": {
            "title": "More search URLs",
            "type": "array",
            "description": "Optional extra search or listing URLs from the same site. Leave empty to use the filters above.",
            "items": {
              "type": "string"
            }
          },
          "min_price": {
            "title": "Min price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in Colombian pesos, for example 200000000. Leave empty for no minimum."
          },
          "max_price": {
            "title": "Max price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in Colombian pesos, for example 800000000. Leave empty for no maximum."
          },
          "min_m2": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum built area (land area for lots and farms)."
          },
          "max_m2": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum built area (land area for lots and farms)."
          },
          "min_bedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "At least this many bedrooms. 5 means 5 or more."
          },
          "min_bathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "At least this many bathrooms. 5 means 5 or more."
          },
          "estratos": {
            "title": "Estratos",
            "type": "array",
            "description": "Only these estratos (1 to 6). Leave empty for all estratos.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "Estrato 1",
                "Estrato 2",
                "Estrato 3",
                "Estrato 4",
                "Estrato 5",
                "Estrato 6"
              ]
            }
          },
          "seller_type": {
            "title": "Seller type",
            "enum": [
              "",
              "particular",
              "inmobiliaria",
              "desarrollador"
            ],
            "type": "string",
            "description": "Only private owners, agencies or developers (constructoras).",
            "default": ""
          },
          "condition": {
            "title": "New or used",
            "enum": [
              "",
              "nuevo",
              "usado"
            ],
            "type": "string",
            "description": "Only new (projects from developers) or used properties.",
            "default": ""
          },
          "tags": {
            "title": "Site tags",
            "type": "array",
            "description": "Only listings with these Metrocuadrado tags (for example 'Bajó de precio' = price reduced).",
            "items": {
              "type": "string",
              "enum": [
                "6",
                "1",
                "7",
                "2",
                "3",
                "12",
                "10",
                "11",
                "5",
                "9"
              ],
              "enumTitles": [
                "Bajó de precio (price reduced)",
                "Negociable",
                "Para inversión (investment)",
                "Para estrenar (brand new)",
                "Renovado (renovated)",
                "Disponible ahora (available now)",
                "Con vista (with view)",
                "Permite mascotas (pets allowed)",
                "Rentas cortas (short-term rentals)",
                "Con accesibilidad (accessible)"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Optional words to search in listings, like 'piscina' or 'terraza'."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "",
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of results. Monitor mode uses 'Newest' when this is empty.",
            "default": ""
          },
          "max_items": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings to save (split between searches). Each results page has about 50 listings. Metrocuadrado shows up to 10,000 per search.",
            "default": 50
          },
          "max_pages": {
            "title": "Max pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional limit of result pages per search. Empty = as many as needed for max listings."
          },
          "compare_with_zone": {
            "title": "Compare price per m² with the barrio and estrato",
            "type": "boolean",
            "description": "Adds the zone median price per m², the % difference and a cheap / fair / expensive label. Uses listings from this run: same barrio and estrato first, then barrio, zone and city.",
            "default": true
          },
          "min_zone_peers": {
            "title": "Min listings for a zone median",
            "minimum": 3,
            "maximum": 50,
            "type": "integer",
            "description": "A zone needs at least this many listings with price per m² before it is used for comparison.",
            "default": 5
          },
          "estimate_rental_yield": {
            "title": "Estimate rental yield",
            "type": "boolean",
            "description": "For sale listings, reads a few rental pages of the same search to estimate monthly rent and gross yield.",
            "default": true
          },
          "yield_sample_pages": {
            "title": "Rental sample pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many rental result pages (about 50 each) to read per sale search for the yield estimate. Empty = automatic: 2 pages, or more for big runs (1 page per 250 listings, up to 10)."
          },
          "include_details": {
            "title": "Open each listing page (extra fields)",
            "type": "boolean",
            "description": "Slower: also opens every listing page to add the agency name, building age, amenities by group and the full description. Off = search results only (already very complete).",
            "default": false
          },
          "include_description": {
            "title": "Include description",
            "type": "boolean",
            "description": "Also save the full listing description text. Off by default because descriptions make each row larger.",
            "default": true
          },
          "include_images": {
            "title": "Include all image URLs",
            "type": "boolean",
            "description": "Add the list of all photo URLs (the main photo is always included).",
            "default": true
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember listings between runs and save only new or price-changed ones. Schedule the Actor to get alerts.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each saved search you monitor."
          },
          "emit_removed": {
            "title": "Report removed listings",
            "type": "boolean",
            "description": "In monitor mode, also save listings that disappeared. Only works when the run covers the whole search (raise max listings).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed today. Turn on Apify Proxy if Metrocuadrado starts blocking.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}