{
  "openapi": "3.0.1",
  "info": {
    "title": "Ciencuadras Scraper: Colombia Property Listings",
    "description": "Scrape Ciencuadras listings in Colombia: sale, rent, auctions, new projects, agencies and builders. Price, area, rooms, GPS, photos, amenities, stratum. Export CSV, Excel, JSON.",
    "version": "0.1",
    "x-build-id": "6Ukx7MPyPNunZSg9V"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~ciencuadras-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-ciencuadras-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/recordsdata~ciencuadras-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-ciencuadras-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/recordsdata~ciencuadras-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-ciencuadras-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": {
          "section": {
            "title": "What do you want to scrape?",
            "enum": [
              "venta",
              "arriendo",
              "inmuebles-en-remate",
              "proyectos-vivienda-nueva",
              "proyectos-sobre-planos",
              "proyectos-entrega-inmediata",
              "proyectos-en-construccion",
              "vivienda-interes-social",
              "inmobiliarias",
              "constructoras"
            ],
            "type": "string",
            "description": "Pick the part of ciencuadras.com to read. Sale and rent return listings, project sections return new-build projects, agencies and builders return company rows. Example: Rent. Ignored when you paste links below.",
            "default": "venta"
          },
          "locations": {
            "title": "Cities or areas",
            "type": "array",
            "description": "One place per line as \"city\", \"city/locality\" or \"city/locality/neighborhood\". Example: medellin, bogota/usaquen, bogota/usaquen/cedritos. No accents needed. Leave empty for the whole country.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "Pick one or more types, for example Apartment and House. Leave empty for every type. Each type is searched separately.",
            "items": {
              "type": "string",
              "enum": [
                "apartamento",
                "casa",
                "apartaestudio",
                "casa-campestre",
                "finca",
                "lote",
                "local",
                "oficina",
                "bodega",
                "edificio",
                "consultorio",
                "suite",
                "parqueadero"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Studio apartment",
                "Country house",
                "Farm",
                "Lot",
                "Commercial space",
                "Office",
                "Warehouse",
                "Building",
                "Medical office",
                "Suite",
                "Parking"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max results (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Total rows to return (listings, projects, agencies, builders). Example: 100. 0 means no limit, your max charge per run still applies. Free plan runs are capped at 10 rows.",
            "default": 20
          },
          "searchMode": {
            "title": "How deep to search",
            "enum": [
              "search",
              "deep",
              "catalog"
            ],
            "type": "string",
            "description": "Search page = first page only, up to 28 listings per search (fastest). Deep = also slices by locality, neighborhood and type, many more listings per city (recommended). Full catalog = every listing in the site map, newest first.",
            "default": "deep"
          },
          "minPrice": {
            "title": "Min price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Colombian pesos (monthly rent for rentals). Example: 800000. 0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Colombian pesos (monthly rent for rentals). Example: 3000000. 0 = no maximum.",
            "default": 0
          },
          "minArea": {
            "title": "Min built area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest built area in square meters. Example: 60. 0 = any.",
            "default": 0
          },
          "maxArea": {
            "title": "Max built area (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest built area in square meters. Example: 150. 0 = any.",
            "default": 0
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many bedrooms. Example: 2. 0 = any.",
            "default": 0
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many bathrooms. Example: 2. 0 = any.",
            "default": 0
          },
          "minParking": {
            "title": "Min parking spaces",
            "minimum": 0,
            "type": "integer",
            "description": "At least this many parking spaces. Example: 1. 0 = any.",
            "default": 0
          },
          "stratum": {
            "title": "Socioeconomic stratum (estrato)",
            "type": "array",
            "description": "Colombian strata, 1 is lowest and 6 is highest. Example: 3 and 4. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "Stratum 1",
                "Stratum 2",
                "Stratum 3",
                "Stratum 4",
                "Stratum 5",
                "Stratum 6"
              ]
            },
            "default": []
          },
          "publishedWithinDays": {
            "title": "Published in the last (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings published in the last N days. Example: 7. 0 = any age.",
            "default": 0
          },
          "keyword": {
            "title": "Keyword (optional)",
            "type": "string",
            "description": "All words must appear in the title, description, address, neighborhood or amenities. Example: terraza piscina. Accents and case are ignored.",
            "default": ""
          },
          "sellerTypes": {
            "title": "Seller type (optional)",
            "type": "array",
            "description": "Keep only these sellers. Example: Real estate agency. Names and contacts of private owners and independent agents are never output. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "agency",
                "independent-agent",
                "private",
                "builder"
              ],
              "enumTitles": [
                "Real estate agency",
                "Independent agent",
                "Private owner",
                "Builder"
              ]
            },
            "default": []
          },
          "scrapeDetails": {
            "title": "Open each listing page (full details)",
            "type": "boolean",
            "description": "On: adds full description, all photos, amenities, nearby places, similar listings and agency address. Billed as a separate listing-detail-record event, one per listing. Off: fast card-level rows only. Project sections always open the project page.",
            "default": true
          },
          "includeAgencyProfiles": {
            "title": "Add agency profiles",
            "type": "boolean",
            "description": "On: each agency behind a listing also gets its own row (offices, specialty, description), once per agency per run. Adds rows that count toward Max results.",
            "default": false
          },
          "includeBuilderProfiles": {
            "title": "Add builder profiles",
            "type": "boolean",
            "description": "On: each builder behind a project also gets its own row, once per builder per run. Adds rows that count toward Max results.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Add business contact details",
            "type": "boolean",
            "description": "On: adds phones, emails and WhatsApp that agencies and builders publish. Private owners and independent agents are never included.",
            "default": false
          },
          "startUrls": {
            "title": "Links to scrape",
            "type": "array",
            "description": "Paste ciencuadras.com pages: listings (/inmueble/...), projects (/proyecto-de-vivienda/...), agencies (/inmobiliaria/...), builders (/constructora/...) or searches like /venta/apartamento/medellin. When filled, Section and Cities are ignored.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "onlyNew": {
            "title": "Only new results (monitor mode)",
            "type": "boolean",
            "description": "On: skips and does not charge for records returned by an earlier run of the same search, so a scheduled run returns only new listings. The memory is stored in your own account.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor label",
            "type": "string",
            "description": "Keeps the memory of this search apart from others with identical settings. Example: bogota-weekly.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget earlier results",
            "type": "boolean",
            "description": "On: clears the monitor memory of this search before the run starts.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed: the site answers plain requests from Apify servers. Turn on Apify Proxy only if you see blocked requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}