{
  "openapi": "3.0.1",
  "info": {
    "title": "Fincaraiz Scraper",
    "description": "Extrae automáticamente propiedades inmobiliarias de FincarRaiz.com.co con filtros por ciudad, precio, tipo de propiedad y negocio. Ideal para análisis de mercado, inversiones e investigación inmobiliaria en Colombia. Datos en CSV/JSON.",
    "version": "0.0",
    "x-build-id": "6QlrLlvRTynotLTvw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/diegomedflo~fincaraiz-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-diegomedflo-fincaraiz-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/diegomedflo~fincaraiz-scraper/runs": {
      "post": {
        "operationId": "runs-sync-diegomedflo-fincaraiz-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/diegomedflo~fincaraiz-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-diegomedflo-fincaraiz-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",
        "required": [
          "operation",
          "city"
        ],
        "properties": {
          "operation": {
            "title": "Tipo de Negocio",
            "enum": [
              "venta",
              "arriendo"
            ],
            "type": "string",
            "description": "Seleccione el tipo de operación inmobiliaria",
            "default": "venta"
          },
          "city": {
            "title": "Ciudad",
            "enum": [
              "arauca",
              "armenia",
              "barranquilla",
              "bello",
              "bogota",
              "bucaramanga",
              "cali",
              "cartagena",
              "cucuta",
              "dosquebradas",
              "envigado",
              "floridablanca",
              "ibague",
              "leticia",
              "manizales",
              "medellin",
              "monteria",
              "neiva",
              "pasto",
              "pereira",
              "popayan",
              "santa-marta",
              "soacha",
              "valledupar",
              "villavicencio"
            ],
            "type": "string",
            "description": "Ciudad donde buscar propiedades",
            "default": "bogota"
          },
          "property_types": {
            "title": "Tipos de Propiedad",
            "type": "array",
            "description": "Seleccione uno o más tipos de propiedad a buscar",
            "items": {
              "type": "string",
              "enum": [
                "casas",
                "apartamentos",
                "lotes",
                "locales",
                "oficinas",
                "fincas",
                "parqueaderos",
                "consultorios",
                "edificios",
                "apartaestudios",
                "bodegas",
                "cabañas",
                "casas-campestres",
                "casas-lotes",
                "habitaciones"
              ],
              "enumTitles": [
                "Casas",
                "Apartamentos",
                "Lotes",
                "Locales Comerciales",
                "Oficinas",
                "Fincas",
                "Parqueaderos",
                "Consultorios",
                "Edificios",
                "Apartaestudios",
                "Bodegas",
                "Cabañas",
                "Casas Campestres",
                "Casas con Lote",
                "Habitaciones"
              ]
            }
          },
          "precio_min": {
            "title": "Precio Mínimo",
            "minimum": 0,
            "type": "integer",
            "description": "Precio mínimo en pesos colombianos (COP)"
          },
          "precio_max": {
            "title": "Precio Máximo",
            "minimum": 0,
            "type": "integer",
            "description": "Precio máximo en pesos colombianos (COP)"
          },
          "bedrooms": {
            "title": "Habitaciones",
            "type": "array",
            "description": "Número de habitaciones",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4+"
              ]
            }
          },
          "bathrooms": {
            "title": "Baños",
            "type": "array",
            "description": "Número de baños",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4+"
              ]
            }
          },
          "garage": {
            "title": "Parqueaderos",
            "type": "array",
            "description": "Número de espacios de parqueadero",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "Sin parqueadero",
                "1",
                "2",
                "3",
                "4+"
              ]
            }
          },
          "stratum": {
            "title": "Estratos",
            "type": "array",
            "description": "Estratos socioeconómicos",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "Estrato 1",
                "Estrato 2",
                "Estrato 3",
                "Estrato 4",
                "Estrato 5",
                "Estrato 6"
              ]
            }
          },
          "m2_min": {
            "title": "Área Mínima",
            "minimum": 1,
            "type": "integer",
            "description": "Área mínima en metros cuadrados"
          },
          "m2_max": {
            "title": "Área Máxima",
            "minimum": 1,
            "type": "integer",
            "description": "Área máxima en metros cuadrados"
          },
          "m2_type": {
            "title": "Tipo de Área",
            "enum": [
              "totales",
              "edificados"
            ],
            "type": "string",
            "description": "Tipo de metros cuadrados a considerar"
          },
          "condition": {
            "title": "Condición del Inmueble",
            "enum": [
              "usados",
              "nuevos",
              "en-construccion"
            ],
            "type": "string",
            "description": "Estado de construcción del inmueble"
          },
          "antiquity": {
            "title": "Antigüedad",
            "enum": [
              "menor-a-1-anio",
              "de-1-a-8-anios",
              "de-9-a-15-anios",
              "de-16-a-30-anios",
              "mas-de-30-anios"
            ],
            "type": "string",
            "description": "Tiempo de construcción del inmueble"
          },
          "projects": {
            "title": "Solo Proyectos Nuevos",
            "type": "boolean",
            "description": "Buscar únicamente proyectos de construcción nuevos"
          },
          "max_pages": {
            "title": "Páginas Máximas",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Número máximo de páginas a procesar (cada página contiene hasta 200 propiedades). Cada resultado se cobra como 1 evento.",
            "default": 1
          },
          "rows": {
            "title": "Resultados por Página",
            "minimum": 10,
            "maximum": 200,
            "type": "integer",
            "description": "Número de resultados por página de la API (máximo 200).",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Configuración de Proxy",
            "type": "object",
            "description": "Opcional: configura un proxy de Apify para evitar bloqueos. Se recomienda 'Residential' si se producen errores 429."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}