{
  "openapi": "3.0.1",
  "info": {
    "title": "Metrocuadrado Scraper — Colombia Listings (Enhanced)",
    "description": "Enhanced Metrocuadrado.com scraper for Bogotá apartment sales: anonymous list API plus optional detail enrichment for builder company, sales-room address/hours and delivery date. Phones and WhatsApp kept as published; no login, JWT or reveal clicks.",
    "version": "0.1",
    "x-build-id": "IepG6OLHuu4og6iQt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~metrocuadrado-colombia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-metrocuadrado-colombia-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/stone_jadex~metrocuadrado-colombia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-metrocuadrado-colombia-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/stone_jadex~metrocuadrado-colombia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-metrocuadrado-colombia-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": {
          "startUrls": {
            "title": "Metrocuadrado start URLs",
            "type": "array",
            "description": "HTTPS www.metrocuadrado.com public /apartamentos|/casas|/inmueble|/proyecto|/api/rest-search/search URLs. Off-site hosts, credentials, non-443 ports, Homlity, JWT/auth query tokens, /web/, /detail/, favorites, Incapsula and login paths are rejected. Mutually preferred over top-level city/propertyType/business when provided — those filter fields have no schema default so omitting them with startUrls does not inject a conflict. Direct /inmueble|/proyecto detail URLs require includeDetails=true.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Search city for the anonymous list API (city query param). Prefill is Console UI-only — there is no schema default, so the platform will not inject a city when you omit it (avoids overriding a city already present in startUrls path/query). When neither startUrls nor city are supplied, Actor code falls back to Bogotá D.C."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartamento",
              "casa",
              "local",
              "oficina",
              "bodega",
              "lote",
              "finca",
              "consultorio"
            ],
            "type": "string",
            "description": "realEstateTypeList value (e.g. apartamento, casa). Prefill only — no schema default (avoids startUrls conflict). Actor code fallback: apartamento."
          },
          "business": {
            "title": "Business / operation",
            "enum": [
              "venta",
              "arriendo"
            ],
            "type": "string",
            "description": "realEstateBusinessList value (venta or arriendo). Prefill only — no schema default (avoids startUrls conflict). Actor code fallback: venta."
          },
          "realEstateTypeList": {
            "title": "Property type (API alias)",
            "type": "string",
            "description": "Alias of propertyType (realEstateTypeList query). Prefill only — no schema default."
          },
          "realEstateBusinessList": {
            "title": "Business (API alias)",
            "type": "string",
            "description": "Alias of business (realEstateBusinessList query). Prefill only — no schema default."
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global successfully pushed-row limit; clamped to 1–10000. Duplicate adId values are skipped before enrich/charge when deduplicate=true and do not count toward the limit.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Fetch public detail HTML Flight/RSC enrichment. Default false = list-only. Direct detail startUrls require includeDetails=true (no silent force). List-only rows charge metrocuadrado-listing-result; successfully detail-merged rows charge metrocuadrado-detail-result only (not both). Failed detail enrichments are not charged. Enhanced delta vs free list API: companyName/companyImage/companyLink/salesRoom*/deliverDate/video/publicationId/ranges/featuresDetail.",
            "default": false
          },
          "deduplicate": {
            "title": "Deduplicate by adId",
            "type": "boolean",
            "description": "Skip already-seen adId/listingId values before enrich/charge. Default true.",
            "default": true
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 1200,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum interval between consecutive completed requests (serial). Clamped to 1200–60000. robots.txt has no crawl-delay; Disallow hits still increment robotsDisallowedHits (continuing per task rule).",
            "default": 1200
          },
          "maxRunSeconds": {
            "title": "Maximum run seconds",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Soft wall-clock budget for the run. Soft deadline is also capped 20s before the platform timeout when ACTOR_TIMEOUT_AT / APIFY_TIMEOUT_AT is set. Hitting the budget stops SUCCEEDED (run-time-limit).",
            "default": 3600
          },
          "pageSize": {
            "title": "Page size (size)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "List API size query param (results per request). Clamped to 1–100. Default 50. Actual results length can vary; empty results end the page loop SUCCEEDED.",
            "default": 50
          },
          "size": {
            "title": "Page size alias",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Alias of pageSize (size query). Same clamp 1–100.",
            "default": 50
          },
          "startFrom": {
            "title": "Start from offset",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Initial list API from offset (0-based). Soft pagination — claimed totalEntries/totalHits are metadata only, not a hard crawl end.",
            "default": 0
          },
          "from": {
            "title": "From offset alias",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Alias of startFrom. Same 0–1000000 clamp.",
            "default": 0
          },
          "maxFrom": {
            "title": "Max from soft-cap",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional soft-cap on list API from offset. When reached, run stops SUCCEEDED with a warning. Omit for no soft-cap. Claimed totals are NOT a hard bound."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Buyer proxy is not supported in this freeze. Omit the field, or pass {\"useApifyProxy\":false} only. Any nonempty proxy settings are rejected. No automatic proxy/session/UA/IP rotate/requeue."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}