{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Tourism & Hotels B2B Leads — RNT Official Registry",
    "description": "Extract 128,000+ verified hotels, Airbnbs (Viviendas Turísticas), travel agencies, restaurants & tour operators from Colombia's official Registro Nacional de Turismo (RNT) with direct emails, phones, WhatsApp E.164, NITs, room capacity & lead quality scoring.",
    "version": "1.0",
    "x-build-id": "aEnh13DLdmohkl9Ke"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/churches2908~colombia-rnt-tourism-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-churches2908-colombia-rnt-tourism-leads",
        "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/churches2908~colombia-rnt-tourism-leads/runs": {
      "post": {
        "operationId": "runs-sync-churches2908-colombia-rnt-tourism-leads",
        "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/churches2908~colombia-rnt-tourism-leads/run-sync": {
      "post": {
        "operationId": "run-sync-churches2908-colombia-rnt-tourism-leads",
        "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": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "search",
              "bulk_verify"
            ],
            "type": "string",
            "description": "Choose 'search' to discover leads by location/category/size, or 'bulk_verify' to verify specific RNT codes or NITs.",
            "default": "search"
          },
          "categories": {
            "title": "Tourism Categories",
            "type": "array",
            "description": "Filter by official RNT tourism categories. Leave empty to include all categories.",
            "items": {
              "type": "string",
              "enum": [
                "ESTABLECIMIENTOS DE ALOJAMIENTO TURÍSTICO",
                "VIVIENDAS TURÍSTICAS",
                "AGENCIAS DE VIAJES",
                "ESTABLECIMIENTOS DE GASTRONOMÍA",
                "OPERADORES PROFESIONALES DE CONGRESOS FERIAS Y CONVENCIONES",
                "EMPRESAS DE TRANSPORTE TERRESTRE AUTOMOTOR",
                "ARRENDADORES DE VEHÍCULOS PARA TURISMO NACIONAL E INTERNACIONAL",
                "GUIAS DE TURISMO",
                "OFICINAS DE REPRESENTACION TURÍSTICA",
                "PARQUES TEMÁTICOS",
                "OPERADORES DE PLATAFORMAS ELECTRÓNICAS O DIGITALES DE SERVICIOS TURÍSTICOS",
                "BARES",
                "ORGANIZADORES DE BODA DESTINO"
              ]
            },
            "default": [
              "ESTABLECIMIENTOS DE ALOJAMIENTO TURÍSTICO"
            ]
          },
          "subCategoryContains": {
            "title": "Subcategory Keyword (Optional)",
            "type": "string",
            "description": "Filter by subcategory text (e.g., 'HOTEL', 'HOSTAL', 'APARTAHOTEL', 'FINCA TURÍSTICA', 'GLAMPING', 'OPERADORA')."
          },
          "departments": {
            "title": "Departments (Departamentos)",
            "type": "array",
            "description": "Filter by Colombian departments (e.g., ANTIOQUIA, BOGOTA, BOLIVAR, MAGDALENA, VALLE DEL CAUCA, QUINDIO, CUNDINAMARCA, SANTANDER, ATLANTICO). Leave empty for nationwide.",
            "items": {
              "type": "string"
            },
            "default": [
              "BOLIVAR"
            ]
          },
          "municipalities": {
            "title": "Municipalities / Cities (Municipios)",
            "type": "array",
            "description": "Filter by city/municipality name (e.g., CARTAGENA, MEDELLIN, BOGOTA, SANTA MARTA, CALI, BARRANQUILLA, SAN ANDRES). Matches partial names case-insensitively.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Business Name Keyword (Optional)",
            "type": "string",
            "description": "Search inside business trade name (razón social / establecimiento), e.g. 'BOUTIQUE', 'RESORT', 'TOURS'."
          },
          "providerType": {
            "title": "Provider Type (Tipo de Prestador)",
            "enum": [
              "ALL",
              "Comerciante",
              "No Comerciante"
            ],
            "type": "string",
            "description": "Filter between registered commercial businesses ('Comerciante', ~82K) and individual non-commercial hosts ('No Comerciante', ~46K).",
            "default": "Comerciante"
          },
          "onlyWithEmail": {
            "title": "Only Businesses With Valid Email",
            "type": "boolean",
            "description": "When enabled, returns only records that have a valid establishment or corporate email address.",
            "default": true
          },
          "onlyWithPhone": {
            "title": "Only Businesses With Valid Phone / WhatsApp",
            "type": "boolean",
            "description": "When enabled, returns only records that have a valid mobile or landline phone number.",
            "default": false
          },
          "minRooms": {
            "title": "Minimum Rooms (Habitaciones)",
            "minimum": 0,
            "type": "integer",
            "description": "Filter hotels/accommodations with at least this many rooms (0 = no minimum).",
            "default": 0
          },
          "maxRooms": {
            "title": "Maximum Rooms (Optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit on room count (0 = no maximum). Useful for targeting boutique hotels or small rentals.",
            "default": 0
          },
          "minEmployees": {
            "title": "Minimum Employees",
            "minimum": 0,
            "type": "integer",
            "description": "Filter establishments with at least this many declared employees (0 = no minimum).",
            "default": 0
          },
          "rntCodes": {
            "title": "RNT Codes (for bulk_verify mode)",
            "type": "array",
            "description": "List of official RNT numeric codes to verify (e.g., ['11', '45210']).",
            "items": {
              "type": "string"
            }
          },
          "nits": {
            "title": "Tax IDs / NITs (for bulk_verify mode)",
            "type": "array",
            "description": "List of Colombian NITs (with or without check digit, e.g., ['800078692', '900123456-7']).",
            "items": {
              "type": "string"
            }
          },
          "includeContactFields": {
            "title": "Include Public Contact Fields (Email & Phone)",
            "type": "boolean",
            "description": "Include public establishment emails and phone numbers from datos.gov.co. Disable if you only need anonymized market analytics.",
            "default": true
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "habitaciones DESC",
              "num_emp1 DESC",
              "codigo_rnt DESC",
              "codigo_rnt ASC"
            ],
            "type": "string",
            "description": "Ordering applied at the API query level.",
            "default": "habitaciones DESC"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of RNT business records to extract (1 to 50,000).",
            "default": 50
          },
          "socrataAppToken": {
            "title": "Socrata App Token (Optional)",
            "type": "string",
            "description": "Optional datos.gov.co Socrata App Token for very large extractions (>10,000 rows)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}