# Colombia Company NIT Lookup — RUES Company Data (`fabrikit/colombia-company-nit-lookup`) Actor

Look up Colombian companies by NIT or search the RUES registry by name, CIIU activity, department, legal form, status and registration date: legal name, DV check, chamber of commerce, renewal year. Legal entities only. From US$3 per 1,000 companies.

- **URL**: https://apify.com/fabrikit/colombia-company-nit-lookup.md
- **Developed by:** [Fabrikit](https://apify.com/fabrikit) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 company results

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Colombia Company NIT Lookup — RUES Company Data

Look up **Colombian companies by NIT** or **search the national business registry (RUES)** by name, CIIU economic activity, department, chamber of commerce, legal form, registration status and registration date. Data comes live from the official RUES open dataset that Colombia's chambers of commerce publish on **datos.gov.co** (≈9.4 million registrations, updated regularly).

For each company you get:

- **Normalized NIT** (`899999068` and `899.999.068-1`) with the **DIAN check digit (DV)** computed and validated
- **Legal name** (razón social), acronym (sigla), **legal form** (S.A.S., Ltda., S.A., empresa unipersonal, foundation, cooperative...)
- **Registration status** (ACTIVA, CANCELADA...) with an `isActive` flag, registration number (matrícula) and **chamber of commerce** + department
- **Registration date**, **last renewal date and year** (companies must renew every year — a great "is it really operating?" signal), duration and cancellation date
- **Up to 4 CIIU Rev. 4 activity codes** with their Spanish description and economic sector
- **Government-bidder registration** (Registro Único de Proponentes number), when the chamber publishes it
- Other registrations of the same NIT (for example after a change of domicile)

**Legal entities only.** Natural-person merchants are excluded from every query, and the person-level columns of the dataset (names of individuals, legal representatives and their ID numbers) are never requested or returned.

### Why this actor

- **Live and official**: every run queries the current version of the RUES open dataset through the datos.gov.co API — no stale copies, no scraping of web pages.
- **Fast and cheap**: a 50-NIT lookup takes about a second; a 1,000-company search a few seconds.
- **Any NIT format in, clean JSON/CSV/Excel out**: with or without DV, dots, dashes or a `NIT` prefix. Not-found and invalid NITs still return a record so your input and output lists line up — and they are free.
- **Lead-generation filters** the registry website doesn't give you: CIIU code or keyword, department, legal form, newly registered companies, up-to-date renewals, government bidders.

### Input

#### Lookup mode (default)

```json
{
  "mode": "lookup",
  "nits": ["899999068-1", "890.903.938-8", "8909006089", "900843898", "860034313-7"]
}
```

Accepted formats: `900.123.456-7`, `900123456-7`, `9001234567` (10 digits starting with 8 or 9 are read as NIT + DV), `900123456` (DV computed for you), `NIT 900123456-7`. Several NITs on one line separated by spaces or semicolons also work. Up to 100,000 NITs per run; duplicates are returned once.

Every input produces one record with a `status`:

| status | meaning |
| --- | --- |
| `found` | company found (`found: true`) |
| `not_found` | no legal entity with that NIT in the registry (it may be a natural person or not registered with a chamber of commerce) |
| `invalid_dv` | the check digit does not match the NIT (the correct DV is shown in `dv`) |
| `invalid_format` | not a NIT |

When a NIT has several registrations (e.g. cancelled in one chamber after moving to another), the active / most recently renewed one is returned and the rest are listed in `otherRegistrations`.

#### Search mode

```json
{
  "mode": "search",
  "activities": ["software"],
  "departments": ["Bogotá D.C.", "Antioquia"],
  "registeredFrom": "2025-01-01",
  "sortBy": "newest",
  "maxItems": 500
}
```

| Filter | Notes |
| --- | --- |
| `nameContains` | all words must appear in the legal name; accents and case ignored |
| `activities` | CIIU code (`6201`), prefix (`62`, `551`), Spanish words from the official description (`transporte carga`) or keywords: `software`, `restaurant`, `construction`, `real estate`, `mining`, `logistics`, `accounting`, `law firm`, `consulting`, `marketing`, `health`, `education`, `ecommerce`, `coffee`, `hotel`, `security`, `staffing`... The log shows the codes each entry matched |
| `primaryActivityOnly` | compare only the main activity instead of all 4 |
| `departments` / `chambers` | department or specific chamber of commerce where the company is registered |
| `legalForms` | `sas`, `ltda`, `sa`, `unipersonal`, `limited_partnership`, `general_partnership`, `foreign_branch`, `state_company`, `other_company`, `solidarity`, `nonprofit` |
| `status` | `active` (default), `cancelled` or `any` |
| `registeredFrom` / `registeredTo` | registration date range (YYYY-MM-DD) |
| `renewedSinceYear` | e.g. `2026` = only companies up to date with their annual renewal |
| `onlyBidders` | only companies with a Registro Único de Proponentes number |
| `sortBy` | `newest` (default), `oldest`, `name`, `renewal` |
| `maxItems` | maximum number of companies (default 100) |

Advanced: `appToken` (your own free Socrata app token, only for very large runs) and `proxyConfiguration` (not needed).

### Output example

```json
{
  "input": "890.903.938-8",
  "nit": "890903938",
  "dv": 8,
  "nitFormatted": "890.903.938-8",
  "dvValid": true,
  "found": true,
  "status": "found",
  "legalName": "BANCOLOMBIA S.A, ADEMÁS PODRÁ GIRAR BAJO LA DENOMINACIÓN BANCO DE COLOMBIA S.A.",
  "acronym": null,
  "legalForm": "SOCIEDAD ANONIMA",
  "legalFormCode": "04",
  "legalFormGroup": "sa",
  "entityType": "SOCIEDAD COMERCIAL",
  "registrationStatus": "ACTIVA",
  "registrationStatusCode": "01",
  "isActive": true,
  "chamberOfCommerce": "Medellín para Antioquia",
  "chamberCode": "21",
  "department": "Antioquia",
  "registrationNumber": "8396404",
  "registrationDate": "1984-11-22",
  "lastRenewalDate": "2026-03-24",
  "lastRenewedYear": 2026,
  "durationUntil": "2144-12-08",
  "cancellationDate": null,
  "primaryActivityCode": "6412",
  "primaryActivity": "Bancos comerciales",
  "economicSector": "Actividades financieras y de seguros",
  "activities": [
    { "code": "6412", "description": "Bancos comerciales" },
    { "code": "6422", "description": "Actividades de las compañías de financiamiento" },
    { "code": "6493", "description": "Actividades de compra de cartera o factoring" }
  ],
  "ciiuCodes": ["6412", "6422", "6493"],
  "bidderRegistrationNumber": "22584",
  "hasBidderRegistration": true,
  "otherRegistrations": [],
  "registryUpdatedAt": "2026-10-01T14:38:26",
  "source": "RUES (datos.gov.co c82u-588k)",
  "dataAsOf": "2026-10-02",
  "retrievedAt": "2026-10-12T18:59:43.111Z"
}
```

`durationUntil` is the company's statutory duration (`9999-12-31` = indefinite). `dataAsOf` is the last update of the open dataset. The run also stores a `SUMMARY` record in the key-value store with counts per status, the filters used, the CIIU codes each keyword matched and the total number of matching companies.

### Pricing

Pay per event — you only pay for companies actually returned:

| Event | Price | When |
| --- | --- | --- |
| `company-result` | US$3.00 per 1,000 (US$0.003 each) | each company record with `found: true` (lookup or search) |
| Actor start | US$0.00005 | once per run (Apify's standard start event) |

Not-found and invalid NITs are **free**. Platform compute is included. Set a maximum charge per run in Apify and the actor stops cleanly when it is reached.

### Use cases

- **KYB / supplier onboarding**: validate a supplier's NIT and DV, legal name, status and last renewal before paying invoices.
- **CRM and invoice data cleaning**: normalize NIT formats, fix check digits and fill in legal names, legal forms and CIIU codes in bulk.
- **B2B lead generation**: active software, construction or logistics companies in a department, by legal form, renewed this year.
- **New-company monitoring**: companies registered this month in your sector (`registeredFrom` + `sortBy: newest`).
- **Public-procurement prospecting**: companies registered as government bidders (RUP) in your activity.
- **Market sizing**: `SUMMARY.totalMatches` gives the number of companies for any filter combination.

### FAQ

**Where does the data come from?** From the open dataset "Personas Naturales, Personas Jurídicas y Entidades Sin Ánimo de Lucro" (`c82u-588k`) published on datos.gov.co with the commercial-registry data of all chambers of commerce synced to the RUES. The actor queries it live through the public Socrata API.

**Do you return data about people?** No. Natural-person merchants are filtered out of every query, and the dataset's columns with names of individuals, legal representatives and their ID numbers are never requested. ID numbers are only returned when their type is NIT. Some legal names (for example many S.A.S. and empresas unipersonales) include their founder's name; that is the company's registered name.

**Is there a municipality or address?** The open dataset has no municipality, address, phone or e-mail fields. Location is given by the chamber of commerce where the company is registered and its department.

**Why does a found company have `nit: null`?** Some very new or old registrations don't have the NIT filled in the registry yet. They are still returned in search mode (with their registration number) because they are valid legal entities.

**Why is a valid NIT `not_found`?** It belongs to a natural person, to an entity not registered with a chamber of commerce (e.g. many public bodies), or to an entity registered under a different identification.

**How fresh is it?** Each record shows `dataAsOf`, the last update of the dataset (it is refreshed by the chambers regularly). The actor always reads the live dataset.

**Is there an API?** Yes — like every Apify actor you can call it via the Apify API, the JavaScript/Python clients, Make, Zapier or n8n, and export results to JSON, CSV or Excel.

### En español

**Consulta de empresas colombianas por NIT** con los datos abiertos oficiales del RUES (Registro Único Empresarial y Social) publicados en datos.gov.co por las cámaras de comercio: razón social, sigla, tipo de sociedad (S.A.S., Ltda., S.A., empresa unipersonal, ESAL, cooperativa...), estado de la matrícula (activa, cancelada), número de matrícula, cámara de comercio y departamento, fecha de matrícula, fecha y año de la última renovación, vigencia, fecha de cancelación, hasta 4 códigos CIIU Rev. 4 con su descripción y número de inscripción en el Registro Único de Proponentes (RUP).

- **Modo consulta**: pegue una lista de NIT en cualquier formato (con o sin dígito de verificación, con puntos o guion). El DV se calcula y se valida con el algoritmo de la DIAN. Cada NIT devuelve un registro con su estado (`found`, `not_found`, `invalid_dv`, `invalid_format`).
- **Modo búsqueda**: filtre por palabras del nombre, actividad económica (código CIIU, prefijo o palabra clave), departamento o cámara de comercio, tipo de sociedad, estado, rango de fecha de matrícula, año de renovación y proponentes del Estado. Ideal para prospección B2B, monitoreo de empresas nuevas y depuración de bases de datos de clientes y proveedores.
- **Solo personas jurídicas**: se excluyen las personas naturales comerciantes y nunca se consultan ni se entregan nombres ni documentos de representantes legales.
- **Precio**: US$3 por cada 1.000 empresas encontradas; los NIT no encontrados o inválidos no se cobran.

# Actor input Schema

## `mode` (type: `string`):

`lookup` = enrich a list of company NITs (one record per NIT, including not-found ones). `search` = find companies by name, CIIU activity, department / chamber of commerce, legal form, status and registration date.

## `nits` (type: `array`):

One NIT per line, with or without check digit (DV): `900.123.456-7`, `900123456-7`, `9001234567` (10 digits starting with 8 or 9 = NIT + DV), or `900123456`. Several NITs on one line separated by spaces or semicolons also work. When a DV is given it is validated (DIAN módulo 11). Only legal entities are searched; up to 100,000 NITs per run.

## `nameContains` (type: `string`):

Words that must all appear in the legal name (razón social), in any order. Accents and case are ignored. Example: `constructora andina`.

## `activities` (type: `array`):

A company matches if ANY of its up to 4 registered CIIU Rev. 4 activity codes matches ANY entry. Each entry can be a 4-digit code (`6201`), a 2–3 digit prefix (`62` = all IT services, `551` = hotels), Spanish words from the official description (`transporte carga`) or a keyword: `software`, `restaurant`, `construction`, `real estate`, `mining`, `logistics`, `accounting`, `law firm`, `consulting`, `marketing`, `health`, `education`, `ecommerce`, `coffee`, `hotel`, `security`... The log shows the codes each entry matched.

## `primaryActivityOnly` (type: `boolean`):

When on, only the main CIIU activity (actividad principal) is compared, not the secondary ones.

## `departments` (type: `array`):

Department of the chamber of commerce where the company is registered (the registry has no municipality field; Bogotá is its own option). A company matches if it is in ANY selected department or chamber.

## `chambers` (type: `array`):

Specific chambers of commerce (cámaras de comercio). Combined with Departments as OR.

## `legalForms` (type: `array`):

Leave empty for all legal entities (companies, non-profits and cooperatives).

## `status` (type: `string`):

`active` = registration ACTIVA (or new by transfer of domicile). `cancelled` = cancelled, including by transfer, merger and Law 1429.

## `registeredFrom` (type: `string`):

Earliest commercial registration date (fecha de matrícula), YYYY-MM-DD. Combine with `Newest first` to get newly created companies.

## `registeredTo` (type: `string`):

Latest commercial registration date, YYYY-MM-DD.

## `renewedSinceYear` (type: `integer`):

Only companies whose last registry renewal (último año renovado) is this year or later — e.g. `2026` keeps companies that are up to date with their annual renewal.

## `onlyBidders` (type: `boolean`):

Only companies with a registration number in the Registro Único de Proponentes (bidders for public contracts).

## `sortBy` (type: `string`):

Order of the results.

## `maxItems` (type: `integer`):

Stop after this many companies in search mode. Lookup mode always returns one record per unique input NIT.

## `appToken` (type: `string`):

Your own free datos.gov.co / Socrata app token. Not needed for normal use; it only raises the API rate limit for very large runs.

## `proxyConfiguration` (type: `object`):

Not needed: datos.gov.co serves the open-data API to any client. If the API ever refuses Apify IPs, the actor switches to a Colombian residential proxy automatically.

## Actor input object example

```json
{
  "mode": "lookup",
  "nits": [
    "899999068-1",
    "890.903.938-8",
    "8909006089",
    "900843898",
    "860034313-7",
    "800153993-7",
    "890100577",
    "860025900-2"
  ],
  "primaryActivityOnly": false,
  "status": "active",
  "onlyBidders": false,
  "sortBy": "newest",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `companies` (type: `string`):

Company records produced by the run

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

Counts, filters and the dataset version used by the run

# 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 = {
    "mode": "lookup",
    "nits": [
        "899999068-1",
        "890.903.938-8",
        "8909006089",
        "900843898",
        "860034313-7",
        "800153993-7",
        "890100577",
        "860025900-2"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/colombia-company-nit-lookup").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 = {
    "mode": "lookup",
    "nits": [
        "899999068-1",
        "890.903.938-8",
        "8909006089",
        "900843898",
        "860034313-7",
        "800153993-7",
        "890100577",
        "860025900-2",
    ],
    "maxItems": 100,
}

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

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

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

```

## CLI example

```bash
echo '{
  "mode": "lookup",
  "nits": [
    "899999068-1",
    "890.903.938-8",
    "8909006089",
    "900843898",
    "860034313-7",
    "800153993-7",
    "890100577",
    "860025900-2"
  ],
  "maxItems": 100
}' |
apify call fabrikit/colombia-company-nit-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fabrikit/colombia-company-nit-lookup"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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