{
  "openapi": "3.0.1",
  "info": {
    "title": "Infocasas Scraper — Uruguay, Paraguay, Bolivia & Peru Inmuebles",
    "description": "Infocasas real estate scraper for Uruguay, Paraguay, Bolivia and Peru (inmuebles en venta y alquiler): price and currency, m², bedrooms, bathrooms, common expenses, GPS, photos, amenities, agency and full description. Filter by operation, type, location, price and area, or paste a search URL.",
    "version": "0.1",
    "x-build-id": "8S8CjJAHpDTTQ3tf1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~infocasas-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-infocasas-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/fabrikit~infocasas-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-infocasas-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/fabrikit~infocasas-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-infocasas-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": {
          "country": {
            "title": "Country",
            "enum": [
              "UY",
              "PY",
              "BO",
              "PE"
            ],
            "type": "string",
            "description": "Which Infocasas site to scrape: Uruguay (infocasas.com.uy), Paraguay (infocasas.com.py), Bolivia (infocasas.com.bo) or Peru (infocasas.com.pe). Ignored when you give start URLs (each URL carries its own country).",
            "default": "UY"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent",
              "temporary_rent",
              "sale_or_rent",
              "anticretico",
              "auction",
              "any"
            ],
            "type": "string",
            "description": "Sale, long-term rent or temporary (holiday) rent. `sale_or_rent` exists in PY/BO/PE, `anticretico` only in Bolivia and `auction` (remates) only in Uruguay.",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "One or more property types. Leave empty for all types. Types that do not exist in the chosen country are ignored with a warning.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "apartment",
                "land",
                "commercial",
                "office",
                "farm",
                "parking",
                "warehouse",
                "building",
                "hotel",
                "special_business",
                "duplex",
                "condominium",
                "room",
                "other"
              ],
              "enumTitles": [
                "House (casa)",
                "Apartment (apartamento / departamento)",
                "Land / lot (terreno)",
                "Retail space (local comercial)",
                "Office (oficina)",
                "Farm / country estate (chacra, campo, quinta)",
                "Garage / parking (garaje, cochera)",
                "Warehouse / industrial (galpón, depósito)",
                "Building (edificio)",
                "Hotel (UY, PE)",
                "Special business (negocio especial)",
                "Duplex (Paraguay)",
                "Condominium (Bolivia)",
                "Room (habitación, Bolivia)",
                "Other"
              ]
            },
            "default": [
              "apartment"
            ]
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Departments, cities or neighbourhoods as you would type them on the site: `Montevideo`, `Pocitos`, `Punta del Este`, `Asunción`, `Santa Cruz`, `Miraflores`. Several entries are combined (OR). Disambiguate with a comma (`Centro, Montevideo`). The site's internal slugs also work (`neighbourhood-montevideo-pocitos`). Leave empty for the whole country. The run fails with a clear error if a location cannot be found — it never silently searches the whole country instead.",
            "default": [
              "Montevideo"
            ],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound, in the currency chosen below. The site converts between currencies, so a USD band also matches listings priced in local currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound, in the currency chosen below."
          },
          "priceCurrency": {
            "title": "Price filter currency",
            "enum": [
              "USD",
              "LOCAL"
            ],
            "type": "string",
            "description": "Currency of Min/Max price. `LOCAL` = UYU in Uruguay, PYG in Paraguay, PEN in Peru (Bolivia lists in USD only).",
            "default": "USD"
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only listings with at least this many bedrooms (0 = studios included, 5 = five or more). Leave empty for any."
          },
          "minAreaM2": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum surface in square metres."
          },
          "maxAreaM2": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum surface in square metres."
          },
          "areaType": {
            "title": "Area filter applies to",
            "enum": [
              "covered",
              "total"
            ],
            "type": "string",
            "description": "Whether the m² filter uses covered (built) area or total area.",
            "default": "covered"
          },
          "newDevelopmentsOnly": {
            "title": "New developments only",
            "type": "boolean",
            "description": "Only new-development projects and their units (proyectos / en pozo / en construcción).",
            "default": false
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "any",
              "today",
              "yesterday",
              "7",
              "15",
              "30",
              "40"
            ],
            "type": "string",
            "description": "Only listings published recently — ideal for daily monitoring.",
            "default": "any"
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Paste search URLs copied from infocasas.com.uy / .com.py / .com.bo / .com.pe (with any filters you set on the site), or single listing / project URLs. When given, the filter fields above are ignored and each URL keeps its own filters and country.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "`newest` is the best choice for monitoring new listings.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 300000,
            "type": "integer",
            "description": "Stop after this many listings. The site returns at most 10,000 results per search; bigger searches are split into price bands automatically, so you can collect a whole country in one run.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Add agency & development details (add-on)",
            "type": "boolean",
            "description": "Adds `agencyDetails` (office address, city, website, number of active listings, profile URL of the publishing agency or developer) and, for new developments, `developmentDetails` (delivery date, construction state, unit mix with prices, builder/architect when published). Charged as a separate `property-details` event per enriched listing. All core listing data — including the full description, photos and amenities — is included without this add-on.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Infocasas answers plain requests, so no proxy is needed by default. If the site ever blocks the run, the Actor switches to Apify RESIDENTIAL proxy in the listing's country automatically.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}