# NIT Colombia RUES API (`latinamericadata/nit-colombia`) Actor

Consulta NIT Colombia, razon social o matricula mercantil en datos abiertos RUES y entrega empresas estructuradas para validacion, CRM, BI y automatizacion.

- **URL**: https://apify.com/latinamericadata/nit-colombia.md
- **Developed by:** [Latin America Data](https://apify.com/latinamericadata) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 4 total users, 2 monthly users, 88.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 empresa entregadas

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## NIT Colombia API - Buscar Empresa por NIT o Razon Social

Consulta **NIT Colombia**, razon social o matricula mercantil usando datos abiertos RUES publicados en Datos Abiertos Colombia. Entrega empresas estructuradas en Apify Dataset, JSON, CSV, Excel, XML y API para validacion comercial, CRM, BI, monitoreo y automatizacion.

El Actor usa la API de datos abiertos directamente, no navegador. Esto lo hace rapido, barato y estable para consultas puntuales o lotes. Cada empresa entregada se cobra como evento `result` a **USD 0.003**.

### Para que sirve

| Caso de uso | Como ayuda |
| --- | --- |
| Buscar empresa por NIT | Devuelve razon social, estado, camara, matricula y actividad. |
| Validacion de proveedores | Revisa estado de matricula, renovacion y datos de registro. |
| Limpieza de CRM | Normaliza NIT, digito verificador y razon social. |
| Inteligencia comercial | Extrae empresas por nombre o matricula para analisis y dashboards. |
| Automatizacion via API | Descarga resultados en JSON, CSV, Excel o por Apify API. |

### Fuente y cobertura

La fuente es el dataset publico **Personas Naturales, Personas Juridicas y Entidades Sin Animo de Lucro** de `datos.gov.co`, relacionado con informacion registral RUES. El Actor esta orientado a filas con NIT y empresas; no esta pensado para consulta de cedulas de ciudadania.

La frescura, cobertura y actualizacion dependen de la fuente publica. El dataset usado fue verificado con actualizacion visible en la fuente el 2026-06-01 UTC.

### Input rapido

Buscar por NIT:

```json
{
  "queries": [
    {
      "searchType": "nit",
      "term": "900654922-7"
    }
  ],
  "maxPagesPerQuery": 1,
  "maxResultsPerQuery": 3,
  "pageSize": 3,
  "validateCheckDigit": true
}
```

Buscar por razon social:

```json
{
  "queries": [
    {
      "searchType": "razon_social",
      "term": "PRUEBA"
    }
  ],
  "maxPagesPerQuery": 2,
  "maxResultsPerQuery": 6,
  "pageSize": 3
}
```

Buscar por matricula mercantil:

```json
{
  "queries": [
    {
      "searchType": "matricula",
      "term": "18108052"
    }
  ]
}
```

### Output

Cada fila puede incluir:

| Campo | Descripcion |
| --- | --- |
| `status` | `success`, `no_results`, `blocked` o `failed`. |
| `nit_full` | NIT con digito verificador cuando la fuente lo entrega. |
| `business_name` | Razon social. |
| `registration_status` | Estado de la matricula. |
| `organization_type` | Tipo de organizacion juridica. |
| `company_type` | Tipo de sociedad. |
| `chamber` | Camara de comercio. |
| `registration_number` | Matricula mercantil. |
| `primary_activity_code` | Codigo CIIU principal. |
| `renewal_date` | Fecha de renovacion cuando existe. |
| `source_url` | URL exacta de la consulta a la fuente. |
| `error_message` | Motivo cuando la consulta no termina como resultado exitoso. |

Si una consulta valida no tiene resultados, el Actor guarda una fila con `status: no_results` para que el dataset sea auditable.

### SEO keywords

NIT Colombia API, buscar empresa por NIT Colombia, RUES API, RUES scraper, consulta NIT Colombia, razon social Colombia, matricula mercantil Colombia, Colombia company registry API, Colombia business lookup, bulk NIT lookup Colombia.

# Actor input Schema

## `queries` (type: `array`):

Lista de consultas. Cada item puede buscar por NIT, razon social o matricula mercantil.

## `maxPagesPerQuery` (type: `integer`):

Cantidad maxima de paginas de datos abiertos por consulta.

## `maxResultsPerQuery` (type: `integer`):

Limite de resultados cobrados por consulta.

## `pageSize` (type: `integer`):

Cantidad de registros solicitados por pagina a la API fuente.

## `validateCheckDigit` (type: `boolean`):

Cuando el NIT incluye digito verificador, valida que sea correcto antes de consultar.

## `timeoutSecs` (type: `integer`):

Segundos maximos para esperar cada respuesta.

## `retries` (type: `integer`):

Cantidad de reintentos por pagina ante errores temporales.

## `allowPartialResults` (type: `boolean`):

Si una consulta falla o queda bloqueada, guarda esa fila y continua.

## Actor input object example

```json
{
  "queries": [
    {
      "searchType": "nit",
      "term": "900654922-7"
    }
  ],
  "maxPagesPerQuery": 1,
  "maxResultsPerQuery": 10,
  "pageSize": 10,
  "validateCheckDigit": true,
  "timeoutSecs": 20,
  "retries": 2,
  "allowPartialResults": true
}
```

# Actor output Schema

## `results` (type: `string`):

Filas de empresas y estados de consulta.

## `summary` (type: `string`):

Resumen de consultas, resultados y eventos cobrados.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("latinamericadata/nit-colombia").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("latinamericadata/nit-colombia").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call latinamericadata/nit-colombia --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=latinamericadata/nit-colombia",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/q3tALBCxSrgeqEAbI/builds/Tyh5ZPcYhDcBkvhWi/openapi.json
