{
  "openapi": "3.0.1",
  "info": {
    "title": "Metrocuadrado Colombia Property Scraper",
    "description": "Collect Metrocuadrado apartment and house listings for sale or rent in Bogotá, Medellín and Cali. Export COP prices, area, rooms, bathrooms, garages, city/zone context, images, listing links and collection timestamps. Individual listing details depend on availability.",
    "version": "0.3",
    "x-build-id": "Xgp1HNUrIv6QGJfgh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~metrocuadrado-co-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-metrocuadrado-co-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/automatic~metrocuadrado-co-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-metrocuadrado-co-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/automatic~metrocuadrado-co-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-metrocuadrado-co-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": "Listing operation to search: sale (venta) or rental (arriendo).",
            "default": "venta"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartamento",
              "casa",
              "oficina",
              "local",
              "lote",
              "bodega",
              "finca",
              "consultorio"
            ],
            "type": "string",
            "description": "What to search: apartments, houses, offices, shops, land, warehouses, farms or medical offices.",
            "default": "apartamento"
          },
          "city": {
            "title": "City",
            "enum": [
              "bogota",
              "medellin",
              "cali",
              "cartagena",
              "barranquilla",
              "bucaramanga",
              "pereira",
              "santa-marta",
              "manizales",
              "armenia",
              "ibague",
              "cucuta",
              "villavicencio",
              "chia",
              "cajica"
            ],
            "type": "string",
            "description": "City to search. Bogotá, Medellín, Cali, Cartagena, Barranquilla, Bucaramanga, Pereira, Santa Marta and more.",
            "default": "bogota"
          },
          "zone": {
            "title": "Zone or neighbourhood (barrio)",
            "type": "string",
            "description": "Optional barrio or zone in the chosen city, such as chico, usaquen or cedritos (Bogotá), el-poblado or laureles (Medellín). Names with accents or spaces work too. Empty = the whole city.",
            "default": ""
          },
          "zones": {
            "title": "More zones",
            "type": "array",
            "description": "Optional: several barrios of the same city in one run, one per line. Each is its own search; a listing found twice is delivered once.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Metrocuadrado search links",
            "type": "array",
            "description": "Optional: paste search result links from metrocuadrado.com (with the filters you set there). Each link is its own search and is paged to the end or to Maximum results.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Sale price, or monthly rent for arriendo, in Colombian pesos."
          },
          "maxPrice": {
            "title": "Maximum price (COP)",
            "minimum": 1,
            "type": "integer",
            "description": "Sale price, or monthly rent for arriendo, in Colombian pesos."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Built area in square metres."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 1,
            "type": "integer",
            "description": "Built area in square metres."
          },
          "bedrooms": {
            "title": "Bedrooms (habitaciones)",
            "type": "array",
            "description": "Exact bedroom counts to include, for example 2 and 3.",
            "items": {
              "type": "integer"
            }
          },
          "bathrooms": {
            "title": "Bathrooms (baños)",
            "type": "array",
            "description": "Exact bathroom counts to include, for example 2.",
            "items": {
              "type": "integer"
            }
          },
          "parkingSpaces": {
            "title": "Parking spaces (garajes)",
            "type": "array",
            "description": "Exact parking-space counts to include; 0 = no parking.",
            "items": {
              "type": "integer"
            }
          },
          "stratum": {
            "title": "Estrato",
            "type": "array",
            "description": "Socio-economic stratum (estrato) 1 to 6, for example 4, 5 and 6.",
            "items": {
              "type": "integer"
            }
          },
          "condition": {
            "title": "New or used",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New projects and new builds (nuevo) or resale homes (usado).",
            "default": "any"
          },
          "publisherType": {
            "title": "Published by",
            "enum": [
              "any",
              "owner",
              "agency",
              "builder"
            ],
            "type": "string",
            "description": "Only listings from private owners, real-estate agencies or builders.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "Order of the results, as on Metrocuadrado.",
            "default": "relevance"
          },
          "includeDetails": {
            "title": "Open each listing page",
            "type": "boolean",
            "description": "Adds building age (antigüedad), the full amenity list, the agency or builder name and link, video, and for new projects the delivery date and price/area range. One extra page per listing, so runs take longer. No extra charge.",
            "default": false
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Upper limit on result pages per search, about 65 listings each, up to 200 (Metrocuadrado shows at most 10,000 listings per search). Leave at 200 to let Maximum results decide.",
            "default": 200
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many listings in the whole run, up to 10,000. Leave empty with everything else empty for a 20-listing sample."
          },
          "requestDelaySecs": {
            "title": "Delay between page requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between result pages, 0.5 to 10 seconds (half of it between listing pages).",
            "default": 1
          },
          "proxyUrl": {
            "title": "Proxy URL (optional)",
            "type": "string",
            "description": "Optional resilience-only proxy. Either a full URL with embedded credentials, or a bare host:port together with proxyUsername/proxyPassword. Empty = direct connection."
          },
          "proxyUsername": {
            "title": "Proxy username",
            "type": "string",
            "description": "Username for proxyUrl when the URL does not embed credentials."
          },
          "proxyPassword": {
            "title": "Proxy password",
            "type": "string",
            "description": "Password for proxyUrl when the URL does not embed credentials."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}