{
  "openapi": "3.0.1",
  "info": {
    "title": "Fincaraiz Scraper: Colombia Property Listings",
    "description": "Scrape Fincaraiz Colombia real estate (inmuebles) from simple filters or URLs. Extract COP+USD prices, price/m² vs barrio and estrato, cheap/fair/expensive deal labels, rental yield, admin-fee burden, days on market and stale flag, a market report, and monitor mode. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "YQCTwSna3h5JSn7sS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~fincaraiz-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-fincaraiz-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/kareninatech~fincaraiz-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-fincaraiz-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/kareninatech~fincaraiz-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-fincaraiz-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "arriendo"
            ],
            "type": "string",
            "description": "Buy (venta) or rent (arriendo).",
            "default": "venta"
          },
          "property_type": {
            "title": "Property type",
            "enum": [
              "apartamentos",
              "casas",
              "apartaestudios",
              "lotes",
              "fincas",
              "locales",
              "oficinas",
              "bodegas",
              "consultorios",
              "casas-campestres",
              "edificios",
              "inmuebles"
            ],
            "type": "string",
            "description": "Type of property. 'All property types' searches every type at once.",
            "default": "apartamentos"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A place name as you would type it: Bogotá, Medellín, Cali, Barranquilla, Cartagena, Chapinero, El Poblado, Usaquén, Laureles... For a barrio in a specific city use 'Medellín, Laureles'. Leave empty for all of Colombia.",
            "default": "Bogotá"
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Extra places to search in the same run. max_items is split between all searches.",
            "items": {
              "type": "string"
            }
          },
          "search_url": {
            "title": "Fincaraiz search URL (optional)",
            "type": "string",
            "description": "Paste a search page from fincaraiz.com.co with your filters already set. When you use URLs, the filters above are ignored."
          },
          "start_urls": {
            "title": "More search URLs",
            "type": "array",
            "description": "Extra fincaraiz.com.co search pages (Colombia only).",
            "items": {
              "type": "string"
            }
          },
          "min_price": {
            "title": "Min price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in Colombian pesos, for example 200000000. Leave empty for no minimum."
          },
          "max_price": {
            "title": "Max price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in Colombian pesos, for example 800000000. Leave empty for no maximum."
          },
          "min_m2": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum built area (land area for lots and farms)."
          },
          "max_m2": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum built area (land area for lots and farms)."
          },
          "min_bedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms, for example 2. Leave empty for no minimum."
          },
          "min_bathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bathrooms, for example 1. Leave empty for no minimum."
          },
          "estratos": {
            "title": "Estratos",
            "type": "array",
            "description": "Only these estratos (1 to 6). Leave empty for all estratos.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "Estrato 1",
                "Estrato 2",
                "Estrato 3",
                "Estrato 4",
                "Estrato 5",
                "Estrato 6"
              ]
            }
          },
          "seller_type": {
            "title": "Seller type",
            "enum": [
              "",
              "particular",
              "inmobiliaria",
              "desarrollador"
            ],
            "type": "string",
            "description": "Only private owners, agencies or developers. Listings where Fincaraiz does not show the owner type are excluded when you choose one.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "",
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of results. Monitor mode uses 'Newest' when this is empty.",
            "default": ""
          },
          "max_items": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings to save (split between searches). Each results page has 21 listings.",
            "default": 42
          },
          "max_pages": {
            "title": "Max pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional limit of result pages per search. Empty = as many as needed for max listings."
          },
          "compare_with_zone": {
            "title": "Compare price per m² with the barrio and estrato",
            "type": "boolean",
            "description": "Adds the zone median price per m², the % difference and a cheap / fair / expensive label. Uses listings from this run: same barrio and estrato first, then barrio, locality and city.",
            "default": true
          },
          "min_zone_peers": {
            "title": "Min listings for a zone median",
            "minimum": 3,
            "maximum": 50,
            "type": "integer",
            "description": "A zone needs at least this many listings with price per m² before it is used for comparison.",
            "default": 5
          },
          "estimate_rental_yield": {
            "title": "Estimate rental yield",
            "type": "boolean",
            "description": "For sale listings, reads a few rental pages of the same search to estimate monthly rent and gross yield.",
            "default": true
          },
          "yield_sample_pages": {
            "title": "Rental sample pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many rental result pages (21 each) to read per sale search for the yield estimate. Empty = automatic: 3 pages, or more for big runs (1 page per 100 listings, up to 20)."
          },
          "stale_days": {
            "title": "Stale listing after (days)",
            "minimum": 7,
            "maximum": 1000,
            "type": "integer",
            "description": "Listings published this many days ago or more get stale_listing = true.",
            "default": 90
          },
          "include_description": {
            "title": "Include description",
            "type": "boolean",
            "description": "Also save the full listing description text. Off by default because descriptions make each row larger.",
            "default": true
          },
          "include_images": {
            "title": "Include all image URLs",
            "type": "boolean",
            "description": "Add the list of all photo URLs (the main photo is always included).",
            "default": true
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Remember listings between runs and save only new or price-changed ones. Schedule the Actor to get alerts.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use a different name for each saved search you monitor."
          },
          "emit_removed": {
            "title": "Report removed listings",
            "type": "boolean",
            "description": "In monitor mode, also save listings that disappeared. Only works when the run covers the whole search (raise max listings).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed today. Turn on Apify Proxy if Fincaraiz starts blocking.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}