{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoCasas Bolivia Scraper - Bolivia Real Estate Listings",
    "description": "Track Santa Cruz and La Paz home prices, spot new listings first and build realtor lead lists. Scrapes InfoCasas Bolivia sales, rentals and anticretico: price in USD and bolivianos, bedrooms, area, GPS, amenities, agency or owner with WhatsApp phone, photos. Filters: city, price, area, seller.",
    "version": "1.0",
    "x-build-id": "Qp2tyOI989EeMwj8m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~infocasas-bo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-infocasas-bo-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/normdata~infocasas-bo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-infocasas-bo-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/normdata~infocasas-bo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-infocasas-bo-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total. Leave empty for no limit. The Apify Free plan is always capped at 10."
          },
          "dealType": {
            "title": "Deal",
            "enum": [
              "sale",
              "rent",
              "anticretico",
              "seasonal",
              "all"
            ],
            "type": "string",
            "description": "For sale, for rent, anticrético, holiday rent or all. Empty = for sale."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Houses, apartments, land, shops, offices, farms and more. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "houses",
                "apartments",
                "condos",
                "rooms",
                "land",
                "farms",
                "shops",
                "offices",
                "warehouses",
                "business",
                "garages",
                "other"
              ],
              "enumTitles": [
                "House",
                "Apartment",
                "Gated condo",
                "Room",
                "Land",
                "Country house or farm",
                "Shop",
                "Office",
                "Industrial or warehouse",
                "Business",
                "Garage",
                "Other"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities and towns of Bolivia. Empty = all of Bolivia.",
            "items": {
              "type": "string",
              "enum": [
                "santa-cruz",
                "la-paz",
                "cochabamba",
                "tarija",
                "sucre",
                "el-alto",
                "cobija",
                "oruro",
                "potosi",
                "trinidad",
                "buena-vista",
                "la-guardia",
                "montero",
                "porongo",
                "portachuelo",
                "samaipata",
                "warnes",
                "cotoca",
                "puerto-suarez",
                "riberalta",
                "rurrenabaque",
                "san-javier",
                "san-joaquin",
                "santiago-del-torno",
                "yapacani",
                "puerto-quijarro",
                "puerto-busch",
                "tolata",
                "villamontes",
                "yacuiba",
                "robore",
                "palca",
                "viacha",
                "puerto-rico",
                "punata",
                "vallegrande",
                "tupiza",
                "uyuni",
                "san-ignacio-de-velasco",
                "san-jose",
                "sorata",
                "pucarani",
                "monteagudo",
                "apolo",
                "achacachi",
                "santa-ana-del-yacuma",
                "san-ramon",
                "san-matias",
                "san-ignacio-de-moxo",
                "san-borja",
                "reyes",
                "magdalena",
                "huacaraje",
                "guayaramerin",
                "ascension",
                "avaroa",
                "llallagua",
                "ixiamas",
                "huanuni",
                "guaqui",
                "camiri",
                "coroico",
                "copacabana",
                "concepcion",
                "chulumani",
                "caranavi",
                "bermejo",
                "baures"
              ],
              "enumTitles": [
                "Santa Cruz",
                "La Paz",
                "Cochabamba",
                "Tarija",
                "Sucre",
                "El Alto",
                "Cobija",
                "Oruro",
                "Potosí",
                "Trinidad",
                "Buena Vista",
                "La Guardia",
                "Montero",
                "Porongo",
                "Portachuelo",
                "Samaipata",
                "Warnes",
                "Cotoca",
                "Puerto Suárez",
                "Riberalta",
                "Rurrenabaque",
                "San Javier",
                "San Joaquin",
                "Santiago del Torno",
                "Yapacaní",
                "Puerto Quijarro",
                "Puerto Busch",
                "Tolata",
                "Villamontes",
                "Yacuiba",
                "Roboré",
                "Palca",
                "Viacha",
                "Puerto Rico",
                "Punata",
                "Vallegrande",
                "Tupiza",
                "Uyuni",
                "San Ignacio de Velasco",
                "San José",
                "Sorata",
                "Pucarani",
                "Monteagudo",
                "Apolo",
                "Achacachi",
                "Santa Ana del Yacuma",
                "San Ramón",
                "San Matías",
                "San Ignacio de Moxos",
                "San Borja",
                "Reyes",
                "Magdalena",
                "Huacaraje",
                "Guayaramerín",
                "Ascensión",
                "Avaroa",
                "Llallagua",
                "Ixiamas",
                "Huanuni",
                "Guaqui",
                "Camiri",
                "Coroico",
                "Copacabana",
                "Concepción",
                "Chulumani",
                "Caranavi",
                "Bermejo",
                "Baures"
              ]
            }
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "popular",
              "priceLow",
              "priceHigh",
              "areaLow",
              "areaHigh"
            ],
            "type": "string",
            "description": "Order of results. Default: newest first."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "array",
            "description": "Number of bedrooms (any of the chosen). Houses and apartments.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5+"
              ],
              "enumTitles": [
                "Studio",
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms",
                "4 bedrooms",
                "5 bedrooms or more"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings from this price in US dollars (prices in bolivianos are compared at the site's rate). Rent: per month."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings up to this price in US dollars."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings from this area."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings up to this area."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many bathrooms."
          },
          "minGarages": {
            "title": "Minimum garages",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many garage spaces."
          },
          "sellerTypes": {
            "title": "Seller",
            "type": "array",
            "description": "Agencies or private owners only.",
            "items": {
              "type": "string",
              "enum": [
                "agency",
                "private"
              ],
              "enumTitles": [
                "Agencies",
                "Private owners"
              ]
            }
          },
          "withPhoneOnly": {
            "title": "With phone only",
            "type": "boolean",
            "description": "Only listings with a seller phone (WhatsApp)."
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Skip listings saved by earlier runs with the same monitor name."
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share their history. Use a different name for each schedule."
          },
          "startUrls": {
            "title": "Links",
            "type": "array",
            "description": "InfoCasas search pages with any of their filters (https://www.infocasas.com.bo/venta/casas/santa-cruz) or listing pages (https://www.infocasas.com.bo/casa-en-venta/194564251).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}