New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

latinfo

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

latinfo

Tax registry & procurement API for Latin America. Query RUC, DNI, NIT, licitaciones from Peru & Colombia. Offline MPHF search, full OCDS data, updated daily.

latest
Source
npmnpm
Version
0.20.7
Version published
Maintainers
1
Created
Source

latinfo

latinfo

Tax registry API for Latin America. Query RUC, DNI, and company data from Peru's SUNAT. 18M+ records, updated daily, sub-100ms from anywhere.

Install

npm install -g latinfo
latinfo login

latinfo login opens GitHub OAuth in your browser and stores your API key in ~/.latinfo/config.json. Takes 30 seconds.

CLI

latinfo ruc 20100047218           # Lookup by RUC
latinfo dni 12345678              # Lookup by DNI (converts to RUC automatically)
latinfo search "banco de credito" # Search by company name
latinfo ruc 20100047218 --json    # JSON output (for scripts and AI agents)

No login needed for demo data (~95 embedded records). Run latinfo login for 18M+ records.

SDK

npm install latinfo
import { Latinfo } from 'latinfo';

const client = new Latinfo('YOUR_API_KEY');

// Lookup by RUC
const company = await client.pe.ruc('20100047218');
console.log(company.razon_social); // BANCO DE CREDITO DEL PERU

// Lookup by DNI
const person = await client.pe.dni('12345678');

// Search by company name
const results = await client.pe.search('banco de credito');

// Rotate API key
const { api_key } = await client.rotate();

Get your API key: npm install -g latinfo && latinfo login

API

Base URL: https://api.latinfo.dev

GET /pe/ruc/:ruc       → Lookup by RUC (11 digits)
GET /pe/dni/:dni       → Lookup by DNI (8 digits)
GET /pe/search?q=...   → Search by company name
POST /auth/rotate      → Rotate API key
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.latinfo.dev/pe/ruc/20100047218

Full API reference: latinfo.dev/docs

Response fields

FieldDescriptionExample
rucRUC number (11 digits)20100047218
razon_socialBusiness nameBANCO DE CREDITO DEL PERU
estadoTax statusACTIVO
condicionDomicile conditionHABIDO
ubigeoLocation code (6 digits)150114
tipo_viaStreet typeJR.
nombre_viaStreet nameCENTENARIO
codigo_zonaZone codeURB.
tipo_zonaZone nameBALCONCILLO
numeroStreet number156
interiorInterior / apt-
loteLot-
departamentoDept (within building)-
manzanaBlock-
kilometroKilometer marker-

What you don't have to do

You don't download 364MB from SUNAT. You don't parse Latin1 with escaped pipe delimiters. You don't write a check digit algorithm. You don't build a search index that handles S.A.C. and E.I.R.L. You don't set up a daily import pipeline. You don't manage servers.

We do all of that. Daily.

Pricing

  • Free: 100,000 requests/day — no credit card
  • Pro: 10M requests/month — $1/month

Countries

CountryDataStatus
PeruSUNAT padrón — RUC, DNI, company searchActive
Brazil, Mexico, Colombia, Argentina, ChileIn development

Keywords

sunat

FAQs

Package last updated on 21 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts