{
  "openapi": "3.0.1",
  "info": {
    "title": "Ultracasas Bolivia Scraper",
    "description": "Scrape real estate listings from UltraCasas.com, Bolivia's second largest property portal. Extract prices (USD & BOB), locations, GPS coordinates, photos, agent contacts, and amenities. Supports venta, alquiler, and anticretico listings across all 9 Bolivian departments.",
    "version": "1.0",
    "x-build-id": "Qz0bRAeJm3Ha0tDud"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/qoqa~ultracasas-bolivia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-qoqa-ultracasas-bolivia-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/qoqa~ultracasas-bolivia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-qoqa-ultracasas-bolivia-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/qoqa~ultracasas-bolivia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-qoqa-ultracasas-bolivia-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"
        ],
        "properties": {
          "mode": {
            "title": "What to Extract / Que Extraer",
            "enum": [
              "listings",
              "agents"
            ],
            "type": "string",
            "description": "Properties = full listing data. Agents = unique contacts from listings. | Propiedades = datos completos. Agentes = contactos unicos de listados.",
            "default": "listings"
          },
          "operation": {
            "title": "Operation / Operacion",
            "enum": [
              "venta",
              "alquiler",
              "anticretico"
            ],
            "type": "string",
            "description": "Buy, rent, or anticretico | Comprar, alquilar, o anticretico",
            "default": "venta"
          },
          "propertyType": {
            "title": "Property Type / Tipo",
            "enum": [
              "inmuebles",
              "casas",
              "departamentos",
              "terrenos",
              "oficinas",
              "locales",
              "galpones"
            ],
            "type": "string",
            "description": "Type of property | Tipo de propiedad",
            "default": "inmuebles"
          },
          "department": {
            "title": "Region / Region",
            "enum": [
              "",
              "santa-cruz",
              "la-paz",
              "cochabamba",
              "tarija",
              "sucre",
              "oruro",
              "potosi",
              "beni",
              "pando"
            ],
            "type": "string",
            "description": "Department in Bolivia | Departamento de Bolivia",
            "default": ""
          },
          "zone": {
            "title": "Zone / Zona",
            "type": "string",
            "description": "Neighborhood, e.g. 'equipetrol' | Barrio, ej: 'equipetrol'"
          },
          "minPrice": {
            "title": "Min Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price | Precio minimo"
          },
          "maxPrice": {
            "title": "Max Price (USD)",
            "type": "integer",
            "description": "Maximum price | Precio maximo"
          },
          "minArea": {
            "title": "Min Area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum size | Tamano minimo"
          },
          "maxArea": {
            "title": "Max Area (m2)",
            "type": "integer",
            "description": "Maximum size | Tamano maximo"
          },
          "bedrooms": {
            "title": "Bedrooms / Dormitorios",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum bedrooms | Minimo de dormitorios"
          },
          "bathrooms": {
            "title": "Bathrooms / Banos",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum bathrooms | Minimo de banos"
          },
          "maxResults": {
            "title": "Max Results / Limite",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many listings to process | Cuantas propiedades procesar",
            "default": 100
          },
          "includeDetails": {
            "title": "Full Details / Detalles",
            "type": "boolean",
            "description": "Visit each listing page for complete data (slower but recommended) | Visitar cada pagina para datos completos (mas lento pero recomendado)",
            "default": true
          },
          "startUrls": {
            "title": "Custom URLs",
            "type": "array",
            "description": "Override search - scrape specific URLs instead | Ignorar busqueda - extraer URLs especificas",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings | Configuracion de proxy"
          },
          "imageStorage": {
            "title": "Save Images / Guardar Fotos",
            "type": "object",
            "description": "Download property photos | Descargar fotos de propiedades",
            "properties": {
              "enabled": {
                "title": "Enable / Activar",
                "type": "boolean",
                "description": "Save images | Guardar imagenes"
              },
              "maxImagesPerListing": {
                "title": "Max per Property",
                "type": "integer",
                "minimum": 1,
                "maximum": 30,
                "description": "Images per property | Fotos por propiedad"
              },
              "downloadInFastMode": {
                "title": "Download in Fast Mode",
                "type": "boolean",
                "description": "Download even without Full Details | Descargar sin Detalles Completos"
              },
              "storeName": {
                "title": "Store Name",
                "type": "string",
                "description": "Key-Value Store name | Nombre del almacen"
              },
              "rateLimitMs": {
                "title": "Delay (ms)",
                "type": "integer",
                "minimum": 100,
                "maximum": 2000,
                "description": "Wait between downloads | Espera entre descargas"
              }
            }
          },
          "monitorMode": {
            "title": "Monitor / Monitoreo",
            "type": "object",
            "description": "Track new listings between runs | Detectar nuevas propiedades entre ejecuciones",
            "properties": {
              "enabled": {
                "title": "Enable / Activar",
                "type": "boolean",
                "description": "Only new listings | Solo propiedades nuevas"
              },
              "sinceDays": {
                "title": "Days Back / Dias",
                "type": "integer",
                "minimum": 1,
                "maximum": 30,
                "description": "Get listings from last N days | Propiedades de los ultimos N dias"
              },
              "stateKeyName": {
                "title": "State Key",
                "type": "string",
                "description": "Custom state key | Clave de estado personalizada"
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}