{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoCasas Property Scraper (UY/PY/BO)",
    "description": "Property listings from InfoCasas across Uruguay, Paraguay and Bolivia. Sale and rental searches scoped by optional location; one normalized schema: price and currency, property type, area, rooms, bathrooms, address, images, posting date, URL. On-demand scrape — fresh listings every run.",
    "version": "0.1",
    "x-build-id": "245ReORCEV227aB88"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~infocasas-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-infocasas-property-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/automatic~infocasas-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-infocasas-property-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/automatic~infocasas-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-infocasas-property-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": "InfoCasas country site to search. The country sets the site (infocasas.com.uy/.py/.bo/.pe) and the local currency a bare \"$\" price resolves to; USD, \"Gs.\" and \"S/\" prices keep their own currency. Pasted startUrls use the country of their own site. If left unset, uses \"uy\".",
            "default": "uy"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "alquiler",
              "alquiler-temporal",
              "anticretico"
            ],
            "type": "string",
            "description": "Sale (venta), long-term rental (alquiler), holiday rental (alquiler temporal) or, in Bolivia only, anticrético. If left unset, uses \"venta\".",
            "default": "venta"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Optional department, city or neighbourhood, e.g. \"montevideo\", \"pocitos\", \"punta-del-este\", \"asuncion\", \"santa-cruz\", \"miraflores\". Free text works (\"Punta del Este\"). Empty searches the whole country. A place the site does not recognise ends with 0 listings and says so."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Optional extra places, each searched on its own; a listing found in two of them is saved once. Example: [\"pocitos\", \"punta-carretas\", \"carrasco\"].",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "InfoCasas search URLs",
            "type": "array",
            "description": "Optional: paste search result URLs from infocasas.com.uy/.py/.bo/.pe exactly as the site shows them, with any filters you picked there. Each URL is one search; the filters below are added on top.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these types. Empty = every type. Types a country site does not have are skipped with a note.",
            "items": {
              "type": "string",
              "enum": [
                "casa",
                "apartamento",
                "duplex",
                "terreno",
                "local-comercial",
                "oficina",
                "chacra-campo",
                "garaje",
                "edificio",
                "hotel",
                "galpon",
                "negocio-especial",
                "condominio",
                "habitacion",
                "otro"
              ],
              "enumTitles": [
                "Casa",
                "Apartamento / departamento",
                "Dúplex (PY)",
                "Terreno / lote",
                "Local comercial",
                "Oficina",
                "Chacra, campo o quinta",
                "Garaje o cochera",
                "Edificio",
                "Hotel",
                "Galpón, local industrial o depósito",
                "Negocio especial",
                "Condominio (BO)",
                "Habitación (BO)",
                "Otro"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in the currency below. Example: 100000."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in the currency below. Example: 250000."
          },
          "priceCurrency": {
            "title": "Price currency",
            "enum": [
              "USD",
              "local"
            ],
            "type": "string",
            "description": "Currency of minPrice/maxPrice: USD (U$S) or the country's own currency (pesos uruguayos, guaraníes, soles). If left unset, uses \"USD\".",
            "default": "USD"
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many dormitorios. 0 includes monoambientes."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many baños."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest surface in m², as the site filters it."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest surface in m², as the site filters it."
          },
          "minParkings": {
            "title": "Minimum garages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many garage / parking spaces."
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only listings published in the last N days. Example: 7."
          },
          "publisherType": {
            "title": "Published by",
            "enum": [
              "any",
              "owner",
              "agency"
            ],
            "type": "string",
            "description": "Everyone, owners only (dueño directo) or real-estate agencies and developers only. If left unset, uses \"any\".",
            "default": "any"
          },
          "listingKind": {
            "title": "Units or developments",
            "enum": [
              "all",
              "unit",
              "development"
            ],
            "type": "string",
            "description": "Individual properties, new-development projects (emprendimientos), or both. If left unset, uses \"all\".",
            "default": "all"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "under-construction",
              "off-plan"
            ],
            "type": "string",
            "description": "The site's Estado filter. If left unset, uses \"any\".",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "Result order. If left unset, uses \"relevance\" (the site's Popularidad).",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Stop after this many listings in total (up to 3,000 per run), shared fairly between several places or URLs. Listings are saved page by page, so a run that hits its time limit keeps what it found. Leave empty with maxPages empty for a quick one-page sample."
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Result pages to read per search (21 listings per page, up to 150). Leave empty to read as many as maxResults needs."
          },
          "requestDelaySecs": {
            "title": "Delay between page requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Seconds between page requests, from 0.5 to 10. If left unset, uses 1.0.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}