{
  "openapi": "3.0.1",
  "info": {
    "title": "Metrocuadrado Scraper",
    "description": "Scraper ultra rápido de Metrocuadrado Colombia. Extrae fácilmente miles de propiedades con filtros precisos: precio, ciudad, habitaciones y estrato. Obtén información clave: coordenadas, áreas, fotos, descripciones y precios. Perfecto para el análisis del mercado y la prospección inmobiliaria.",
    "version": "1.0",
    "x-build-id": "BN8T3rmgGdIpU1rVZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/knowten~metrocuadrado-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-knowten-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/knowten~metrocuadrado-scraper/runs": {
      "post": {
        "operationId": "runs-sync-knowten-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/knowten~metrocuadrado-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-knowten-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": {
          "city": {
            "title": "Ciudad",
            "type": "string",
            "description": "Ciudad donde buscar (ej. cali, bogota).",
            "default": "cali"
          },
          "offerType": {
            "title": "Oferta",
            "enum": [
              "Arrendar",
              "Comprar",
              "Ambos"
            ],
            "type": "string",
            "description": "Tipo de oferta.",
            "default": "Ambos"
          },
          "propertyCondition": {
            "title": "Condición (Nuevo/Usado)",
            "enum": [
              "Nuevo",
              "Usado",
              "Ambos"
            ],
            "type": "string",
            "description": "Aplica si seleccionas Comprar o Ambos.",
            "default": "Ambos"
          },
          "propertyTypes": {
            "title": "Tipos de Inmueble",
            "type": "array",
            "description": "Selecciona los tipos de inmueble.",
            "items": {
              "type": "string",
              "enum": [
                "Apartaestudio",
                "Apartamento",
                "Casa",
                "Oficina",
                "Bodega",
                "Consultorio",
                "Local Comercial",
                "Lote",
                "Casa Lote",
                "Finca",
                "Edificio de oficinas",
                "Edificio de apartamentos"
              ]
            },
            "default": []
          },
          "rooms": {
            "title": "Habitaciones",
            "type": "array",
            "description": "Número de habitaciones.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            },
            "default": []
          },
          "bathrooms": {
            "title": "Baños",
            "type": "array",
            "description": "Número de baños.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            },
            "default": []
          },
          "garages": {
            "title": "Parqueaderos",
            "type": "array",
            "description": "Número de parqueaderos.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            },
            "default": []
          },
          "estrato": {
            "title": "Estrato",
            "type": "array",
            "description": "Estrato de la propiedad.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "Comercial",
                "Rural"
              ]
            },
            "default": []
          },
          "priceMin": {
            "title": "Precio Mínimo",
            "type": "integer",
            "description": "Precio mínimo (sólo números, ej: 2000000)."
          },
          "priceMax": {
            "title": "Precio Máximo",
            "type": "integer",
            "description": "Precio máximo (sólo números, ej: 5000000)."
          },
          "areaMin": {
            "title": "Área Mínima (m2)",
            "type": "integer",
            "description": "Área mínima en m2 (sólo números, ej: 50)."
          },
          "areaMax": {
            "title": "Área Máxima (m2)",
            "type": "integer",
            "description": "Área máxima en m2 (sólo números, ej: 300)."
          },
          "attributes": {
            "title": "Atributos adicionales",
            "type": "array",
            "description": "Atributos adicionales de la propiedad.",
            "items": {
              "type": "string",
              "enum": [
                "Negociable",
                "Bajó de precio",
                "Disponible ahora"
              ]
            },
            "default": []
          },
          "characteristics": {
            "title": "Características",
            "type": "array",
            "description": "Características específicas de la propiedad.",
            "items": {
              "type": "string",
              "enum": [
                "Acceso con tarjetas o dispositivos",
                "Acceso para discapacitados",
                "Aire acondicionado",
                "Alarma",
                "Altillo",
                "Apto para niños",
                "Ascensor",
                "Bahias de parqueo",
                "Cancha(s) de Basket",
                "Cancha(s) de Fútbol",
                "Cancha(s) de Tennis",
                "Cancha(s) de squash",
                "Cerca Centros Comerciales",
                "Cerca Colegios / Universidades",
                "Cerca Parques",
                "Cerca Supermercados",
                "Cerca Transporte Público",
                "Cerca a Jardines y Colegios",
                "Cerca a gimnasio",
                "Cerca a hospitales",
                "Cerca a parque industrial",
                "Cerca a restaurantes",
                "Cerca a tiendas de barrio",
                "Cerca playa",
                "Circuito cerrado de TV",
                "Citófonos",
                "Comedor auxiliar",
                "Con calefacción",
                "Con chimenea",
                "Con muebles",
                "Conjunto cerrado",
                "Control de ruido",
                "Control térmico",
                "Cuarto de escoltas",
                "Cuarto de servicio",
                "Despensa",
                "Detección de humo",
                "Dúplex",
                "Energia solar",
                "Estudio o biblioteca",
                "Extractor",
                "Gimnasio",
                "Hall de Alcobas",
                "Horno",
                "Jacuzzi",
                "Lavaplatos",
                "Luz en la mañana",
                "Luz en la tarde",
                "Monoambiente",
                "Parqueadero cubierto",
                "Parqueadero inteligente",
                "PentHouse",
                "Piscina",
                "Puerta eléctrica",
                "Puertas de seguridad",
                "Recepción Lobby",
                "Roof garden",
                "Salón comunal",
                "Sauna y/o turco",
                "Shut de basura",
                "Sobre vía principal",
                "Sobre vía secundaria",
                "Terraza Rooftop",
                "Vista panorámica",
                "Walking closet",
                "Zona de BBQ",
                "Zona de lavanderia",
                "Zona para niños",
                "Zonas verdes"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of properties to scrape.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}