{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Company NIT Lookup — RUES Company Data",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "Kwi2McfiM32C5Y2pk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~colombia-company-nit-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-colombia-company-nit-lookup",
        "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/fabrikit~colombia-company-nit-lookup/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-colombia-company-nit-lookup",
        "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/fabrikit~colombia-company-nit-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-colombia-company-nit-lookup",
        "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": "Mode",
            "enum": [
              "lookup",
              "search"
            ],
            "type": "string",
            "description": "`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.",
            "default": "lookup"
          },
          "nits": {
            "title": "Company NITs (lookup mode)",
            "type": "array",
            "description": "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.",
            "default": [
              "899999068-1",
              "890.903.938-8",
              "8909006089",
              "900843898",
              "860034313-7",
              "800153993-7",
              "890100577",
              "860025900-2"
            ],
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Words that must all appear in the legal name (razón social), in any order. Accents and case are ignored. Example: `constructora andina`."
          },
          "activities": {
            "title": "Economic activities (CIIU)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "primaryActivityOnly": {
            "title": "Match the primary activity only",
            "type": "boolean",
            "description": "When on, only the main CIIU activity (actividad principal) is compared, not the secondary ones.",
            "default": false
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "Amazonas",
                "Antioquia",
                "Arauca",
                "Atlántico",
                "Bogotá D.C.",
                "Bolívar",
                "Boyacá",
                "Caldas",
                "Caquetá",
                "Casanare",
                "Cauca",
                "Cesar",
                "Chocó",
                "Córdoba",
                "Cundinamarca",
                "Guaviare",
                "Huila",
                "La Guajira",
                "Magdalena",
                "Meta",
                "Nariño",
                "Norte de Santander",
                "Putumayo",
                "Quindío",
                "Risaralda",
                "San Andrés y Providencia",
                "Santander",
                "Sucre",
                "Tolima",
                "Valle del Cauca"
              ]
            }
          },
          "chambers": {
            "title": "Chambers of commerce",
            "type": "array",
            "description": "Specific chambers of commerce (cámaras de comercio). Combined with Departments as OR.",
            "items": {
              "type": "string",
              "enum": [
                "55",
                "53",
                "42",
                "48",
                "01",
                "02",
                "03",
                "04",
                "05",
                "06",
                "07",
                "08",
                "09",
                "10",
                "50",
                "28",
                "12",
                "29",
                "11",
                "54",
                "13",
                "47",
                "41",
                "14",
                "15",
                "23",
                "16",
                "17",
                "18",
                "30",
                "19",
                "52",
                "20",
                "21",
                "22",
                "49",
                "51",
                "24",
                "25",
                "26",
                "27",
                "56",
                "46",
                "31",
                "57",
                "32",
                "33",
                "43",
                "34",
                "58",
                "35",
                "45",
                "36",
                "37",
                "38",
                "44",
                "39",
                "40"
              ],
              "enumTitles": [
                "Aburrá Sur (Antioquia)",
                "Aguachica (Cesar)",
                "Amazonas (Amazonas)",
                "Arauca (Arauca)",
                "Armenia (Quindío)",
                "Barrancabermeja (Santander)",
                "Barranquilla (Atlántico)",
                "Bogotá (Bogotá D.C.)",
                "Bucaramanga (Santander)",
                "Buenaventura (Valle del Cauca)",
                "Buga (Valle del Cauca)",
                "Cali (Valle del Cauca)",
                "Cartagena (Bolívar)",
                "Cartago (Valle del Cauca)",
                "Casanare (Casanare)",
                "Cauca (Cauca)",
                "Chinchiná (Caldas)",
                "Chocó (Chocó)",
                "Cúcuta (Norte de Santander)",
                "Dosquebradas (Risaralda)",
                "Duitama (Boyacá)",
                "Facatativá (Cundinamarca)",
                "Florencia para el Caquetá (Caquetá)",
                "Girardot (Cundinamarca)",
                "Honda (Tolima)",
                "Huila (Huila)",
                "Ibagué (Tolima)",
                "Ipiales (Nariño)",
                "La Dorada (Caldas)",
                "La Guajira (La Guajira)",
                "Magangué (Bolívar)",
                "Magdalena Medio y Nordeste Antioqueño (Antioquia)",
                "Manizales (Caldas)",
                "Medellín para Antioquia (Antioquia)",
                "Montería (Córdoba)",
                "Ocaña (Norte de Santander)",
                "Oriente Antioqueño (Antioquia)",
                "Palmira (Valle del Cauca)",
                "Pamplona (Norte de Santander)",
                "Pasto (Nariño)",
                "Pereira (Risaralda)",
                "Piedemonte Araucano (Arauca)",
                "Putumayo (Putumayo)",
                "San Andrés (San Andrés y Providencia)",
                "San José del Guaviare (Guaviare)",
                "Santa Marta para el Magdalena (Magdalena)",
                "Santa Rosa de Cabal (Risaralda)",
                "Sevilla (Valle del Cauca)",
                "Sincelejo (Sucre)",
                "Soacha (Cundinamarca)",
                "Sogamoso (Boyacá)",
                "Sur y Oriente del Tolima (Tolima)",
                "Tuluá (Valle del Cauca)",
                "Tumaco (Nariño)",
                "Tunja (Boyacá)",
                "Urabá (Antioquia)",
                "Valledupar (Cesar)",
                "Villavicencio (Meta)"
              ]
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "Leave empty for all legal entities (companies, non-profits and cooperatives).",
            "items": {
              "type": "string",
              "enum": [
                "sas",
                "ltda",
                "sa",
                "unipersonal",
                "limited_partnership",
                "general_partnership",
                "foreign_branch",
                "state_company",
                "other_company",
                "solidarity",
                "nonprofit"
              ],
              "enumTitles": [
                "S.A.S. (sociedad por acciones simplificada)",
                "Ltda. (sociedad limitada)",
                "S.A. (sociedad anónima)",
                "Empresa unipersonal",
                "Sociedad en comandita (simple / por acciones)",
                "Sociedad colectiva",
                "Foreign company branch (sociedad extranjera)",
                "State industrial & commercial company",
                "Other companies",
                "Cooperatives & solidarity economy",
                "Non-profits (ESAL: foundations, associations, corporations...)"
              ]
            }
          },
          "status": {
            "title": "Registration status",
            "enum": [
              "active",
              "cancelled",
              "any"
            ],
            "type": "string",
            "description": "`active` = registration ACTIVA (or new by transfer of domicile). `cancelled` = cancelled, including by transfer, merger and Law 1429.",
            "default": "active"
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Earliest commercial registration date (fecha de matrícula), YYYY-MM-DD. Combine with `Newest first` to get newly created companies."
          },
          "registeredTo": {
            "title": "Registered until",
            "type": "string",
            "description": "Latest commercial registration date, YYYY-MM-DD."
          },
          "renewedSinceYear": {
            "title": "Renewed in or after year",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "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": {
            "title": "Only registered government bidders (RUP)",
            "type": "boolean",
            "description": "Only companies with a registration number in the Registro Único de Proponentes (bidders for public contracts).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "name",
              "renewal"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max results (search mode)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many companies in search mode. Lookup mode always returns one record per unique input NIT.",
            "default": 100
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "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": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "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.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}