{
  "openapi": "3.0.1",
  "info": {
    "title": "InfoCasas Peru Scraper - Peru Real Estate Listings",
    "description": "Track Lima and Arequipa home prices, spot new listings first and build realtor lead lists. Scrapes InfoCasas Peru sales and rentals: price in USD and soles, bedrooms, area, GPS, amenities, agency or owner with WhatsApp phone, photos. Filters: district, type, price, area, bedrooms, seller.",
    "version": "1.0",
    "x-build-id": "tgFyalCLYwtbDSW5F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~infocasas-pe-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-infocasas-pe-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-pe-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-infocasas-pe-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-pe-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-infocasas-pe-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",
              "seasonal",
              "all"
            ],
            "type": "string",
            "description": "For sale, for rent, 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",
                "land",
                "shops",
                "offices",
                "farms",
                "garages",
                "business",
                "buildings",
                "hotels",
                "warehouses",
                "other"
              ],
              "enumTitles": [
                "House",
                "Apartment",
                "Land",
                "Shop",
                "Office",
                "Country house or farm",
                "Garage",
                "Business",
                "Building",
                "Hotel",
                "Industrial or warehouse",
                "Other"
              ]
            }
          },
          "cities": {
            "title": "Places",
            "type": "array",
            "description": "Regions of Peru and their districts (Miraflores (Lima), Cayma (Arequipa)...). Empty = all of Peru.",
            "items": {
              "type": "string",
              "enum": [
                "amazonas",
                "ancash",
                "arequipa",
                "asia",
                "cajamarca",
                "callao",
                "canete",
                "cuzco",
                "huancayo",
                "huanuco",
                "ica",
                "iquitos",
                "junin",
                "la-libertad",
                "lambayeque",
                "lambayeque-chiclayo",
                "lima",
                "loreto",
                "lurin",
                "madre-de-dios",
                "mala",
                "pasco",
                "piura",
                "puno",
                "san-martin",
                "tacna",
                "tarapoto",
                "trujillo",
                "tumbes",
                "ucayali",
                "amazonas/amazonas",
                "ancash/chimbote",
                "ancash/huaraz",
                "ancash/nuevo-chimbote",
                "arequipa/alto-selva-alegre",
                "arequipa/arequipa",
                "arequipa/camana",
                "arequipa/cayma",
                "arequipa/cerro-colorado",
                "arequipa/la-joya",
                "arequipa/majes",
                "arequipa/mejia",
                "arequipa/miraflores",
                "arequipa/mollendo",
                "arequipa/orrantia",
                "arequipa/paucarpata",
                "arequipa/sabandia",
                "arequipa/sachaca",
                "arequipa/samuel-pastor",
                "arequipa/socabaya",
                "arequipa/uchumayo",
                "arequipa/vallecito",
                "arequipa/yanahuara",
                "asia/asia",
                "cajamarca/cajamarca",
                "callao/bellavista",
                "callao/callao",
                "callao/cercado-callao",
                "callao/la-perla",
                "callao/la-punta",
                "callao/ventanilla",
                "canete/asia",
                "canete/cerro-azul",
                "cusco/cusco",
                "huancayo/el-tambo",
                "huancayo/huancayo",
                "huanuco/huanuco",
                "ica/chincha",
                "ica/chincha-baja",
                "ica/ica",
                "ica/paracas",
                "ica/pisco",
                "ica/subtanjalla",
                "junin/chanchamayo",
                "junin/huancayo",
                "junin/junin",
                "junin/satipo",
                "la-libertad/huanchaco",
                "la-libertad/la-libertad",
                "la-libertad/pacasmayo",
                "la-libertad/trujillo",
                "la-libertad/victor-larco-herrera",
                "lambayeque-chiclayo/chiclayo",
                "lambayeque/chiclayo",
                "lambayeque/lambayeque",
                "lima/ancon",
                "lima/arequipa",
                "lima/asia",
                "lima/ate",
                "lima/ate-vitarte",
                "lima/barranca",
                "lima/barranco",
                "lima/bellavista",
                "lima/brena",
                "lima/callao",
                "lima/canete",
                "lima/carabayllo",
                "lima/cercado-callao",
                "lima/cercado-de-lima",
                "lima/cercado-del-callao",
                "lima/cerro-azul",
                "lima/chaclacayo",
                "lima/chancay",
                "lima/chilca",
                "lima/chincha",
                "lima/chorrillos",
                "lima/chosica",
                "lima/cieneguilla",
                "lima/comas",
                "lima/el-agustino",
                "lima/huachipa",
                "lima/huacho",
                "lima/huaral",
                "lima/huarochiri",
                "lima/huaura",
                "lima/independencia",
                "lima/jesus-maria",
                "lima/la-molina",
                "lima/la-victoria",
                "lima/lima-cercado",
                "lima/lince",
                "lima/los-olivos",
                "lima/lunahuana",
                "lima/lurigancho",
                "lima/lurigancho-chosica",
                "lima/lurin",
                "lima/magdalena-del-mar",
                "lima/mala",
                "lima/miraflores",
                "lima/pachacamac",
                "lima/piura",
                "lima/pucusana",
                "lima/pueblo-libre",
                "lima/puente-piedra",
                "lima/punta-hermosa",
                "lima/punta-negra",
                "lima/rimac",
                "lima/san-bartolo",
                "lima/san-borja",
                "lima/san-isidro",
                "lima/san-juan-de-lurigancho",
                "lima/san-juan-de-miraflores",
                "lima/san-luis",
                "lima/san-martin-de-porres",
                "lima/san-miguel",
                "lima/santa-anita",
                "lima/santa-maria-del-mar",
                "lima/santa-rosa",
                "lima/santiago-de-surco",
                "lima/surquillo",
                "lima/trujillo",
                "lima/ventanilla",
                "lima/villa-el-salvador",
                "lima/villa-maria-del-triunfo",
                "loreto/iquitos",
                "loreto/loreto",
                "lurin/pachacamac",
                "madre-de-dios/tambopata",
                "mala/canete",
                "moquegua/moquegua",
                "pasco/oxapampa",
                "piura/chulucanas",
                "piura/mancora",
                "piura/piura",
                "piura/sector-de-los-ejidos-del-norte",
                "piura/sullana",
                "piura/talara",
                "piura/tambo-grande",
                "puno/juliaca",
                "puno/puno",
                "san-martin/morales",
                "san-martin/san-martin",
                "san-martin/tarapoto",
                "tacna/pocollay",
                "tacna/tacna",
                "trujillo/el-bosque",
                "trujillo/moche",
                "tumbes/tumbes",
                "tumbes/zorritos",
                "ucayali/ucayali"
              ],
              "enumTitles": [
                "Amazonas",
                "Ancash",
                "Arequipa",
                "Asia",
                "Cajamarca",
                "Callao",
                "Canete",
                "Cuzco",
                "Huancayo",
                "Huanuco",
                "Ica",
                "Iquitos",
                "Junin",
                "la Libertad",
                "Lambayeque",
                "Lambayeque Chiclayo",
                "Lima",
                "Loreto",
                "Lurin",
                "Madre de Dios",
                "Mala",
                "Pasco",
                "Piura",
                "Puno",
                "San Martin",
                "Tacna",
                "Tarapoto",
                "Trujillo",
                "Tumbes",
                "Ucayali",
                "Amazonas (Amazonas)",
                "Chimbote (Ancash)",
                "Huaraz (Ancash)",
                "Nuevo Chimbote (Ancash)",
                "Alto Selva Alegre (Arequipa)",
                "Arequipa (Arequipa)",
                "Camana (Arequipa)",
                "Cayma (Arequipa)",
                "Cerro Colorado (Arequipa)",
                "la Joya (Arequipa)",
                "Majes (Arequipa)",
                "Mejia (Arequipa)",
                "Miraflores (Arequipa)",
                "Mollendo (Arequipa)",
                "Orrantia (Arequipa)",
                "Paucarpata (Arequipa)",
                "Sabandia (Arequipa)",
                "Sachaca (Arequipa)",
                "Samuel Pastor (Arequipa)",
                "Socabaya (Arequipa)",
                "Uchumayo (Arequipa)",
                "Vallecito (Arequipa)",
                "Yanahuara (Arequipa)",
                "Asia (Asia)",
                "Cajamarca (Cajamarca)",
                "Bellavista (Callao)",
                "Callao (Callao)",
                "Cercado Callao (Callao)",
                "la Perla (Callao)",
                "la Punta (Callao)",
                "Ventanilla (Callao)",
                "Asia (Canete)",
                "Cerro Azul (Canete)",
                "Cusco (Cusco)",
                "el Tambo (Huancayo)",
                "Huancayo (Huancayo)",
                "Huanuco (Huanuco)",
                "Chincha (Ica)",
                "Chincha Baja (Ica)",
                "Ica (Ica)",
                "Paracas (Ica)",
                "Pisco (Ica)",
                "Subtanjalla (Ica)",
                "Chanchamayo (Junin)",
                "Huancayo (Junin)",
                "Junin (Junin)",
                "Satipo (Junin)",
                "Huanchaco (la Libertad)",
                "la Libertad (la Libertad)",
                "Pacasmayo (la Libertad)",
                "Trujillo (la Libertad)",
                "Victor Larco Herrera (la Libertad)",
                "Chiclayo (Lambayeque Chiclayo)",
                "Chiclayo (Lambayeque)",
                "Lambayeque (Lambayeque)",
                "Ancon (Lima)",
                "Arequipa (Lima)",
                "Asia (Lima)",
                "Ate (Lima)",
                "Ate Vitarte (Lima)",
                "Barranca (Lima)",
                "Barranco (Lima)",
                "Bellavista (Lima)",
                "Brena (Lima)",
                "Callao (Lima)",
                "Canete (Lima)",
                "Carabayllo (Lima)",
                "Cercado Callao (Lima)",
                "Cercado de Lima (Lima)",
                "Cercado del Callao (Lima)",
                "Cerro Azul (Lima)",
                "Chaclacayo (Lima)",
                "Chancay (Lima)",
                "Chilca (Lima)",
                "Chincha (Lima)",
                "Chorrillos (Lima)",
                "Chosica (Lima)",
                "Cieneguilla (Lima)",
                "Comas (Lima)",
                "el Agustino (Lima)",
                "Huachipa (Lima)",
                "Huacho (Lima)",
                "Huaral (Lima)",
                "Huarochiri (Lima)",
                "Huaura (Lima)",
                "Independencia (Lima)",
                "Jesus Maria (Lima)",
                "la Molina (Lima)",
                "la Victoria (Lima)",
                "Lima Cercado (Lima)",
                "Lince (Lima)",
                "los Olivos (Lima)",
                "Lunahuana (Lima)",
                "Lurigancho (Lima)",
                "Lurigancho Chosica (Lima)",
                "Lurin (Lima)",
                "Magdalena del Mar (Lima)",
                "Mala (Lima)",
                "Miraflores (Lima)",
                "Pachacamac (Lima)",
                "Piura (Lima)",
                "Pucusana (Lima)",
                "Pueblo Libre (Lima)",
                "Puente Piedra (Lima)",
                "Punta Hermosa (Lima)",
                "Punta Negra (Lima)",
                "Rimac (Lima)",
                "San Bartolo (Lima)",
                "San Borja (Lima)",
                "San Isidro (Lima)",
                "San Juan de Lurigancho (Lima)",
                "San Juan de Miraflores (Lima)",
                "San Luis (Lima)",
                "San Martin de Porres (Lima)",
                "San Miguel (Lima)",
                "Santa Anita (Lima)",
                "Santa Maria del Mar (Lima)",
                "Santa Rosa (Lima)",
                "Santiago de Surco (Lima)",
                "Surquillo (Lima)",
                "Trujillo (Lima)",
                "Ventanilla (Lima)",
                "Villa el Salvador (Lima)",
                "Villa Maria del Triunfo (Lima)",
                "Iquitos (Loreto)",
                "Loreto (Loreto)",
                "Pachacamac (Lurin)",
                "Tambopata (Madre de Dios)",
                "Canete (Mala)",
                "Moquegua (Moquegua)",
                "Oxapampa (Pasco)",
                "Chulucanas (Piura)",
                "Mancora (Piura)",
                "Piura (Piura)",
                "Sector de los Ejidos del Norte (Piura)",
                "Sullana (Piura)",
                "Talara (Piura)",
                "Tambo Grande (Piura)",
                "Juliaca (Puno)",
                "Puno (Puno)",
                "Morales (San Martin)",
                "San Martin (San Martin)",
                "Tarapoto (San Martin)",
                "Pocollay (Tacna)",
                "Tacna (Tacna)",
                "el Bosque (Trujillo)",
                "Moche (Trujillo)",
                "Tumbes (Tumbes)",
                "Zorritos (Tumbes)",
                "Ucayali (Ucayali)"
              ]
            }
          },
          "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 soles 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.pe/venta/departamentos/lima/miraflores) or listing pages (https://www.infocasas.com.pe/se-vende-departamento-miraflores/193636298).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}