Latinfo

Free API and CLI to query RUC, DNI, and business data from SUNAT Peru. 11M+ records. JSON. Fast.

Install

npm install -g latinfo

Quick start

# Authenticate with GitHub
latinfo login

# Query a RUC
latinfo ruc 20100047218

# Query a DNI
latinfo dni 12345678

# Search by business name
latinfo search "BANCO CREDITO"

# JSON output (for scripts and AI agents)
latinfo ruc 20100047218 --json

API

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

# Query RUC via API
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.latinfo.dev/pe/ruc/20100047218

# Query DNI
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.latinfo.dev/pe/dni/12345678

# Search
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.latinfo.dev/pe/search?q=BANCO+CREDITO"

Response fields

FieldDescriptionExample
rucRUC number (11 digits)20100047218
razon_socialBusiness nameBANCO DE CREDITO DEL PERU S.A.
estadoTax statusACTIVO
condicionConditionHABIDO
ubigeoLocation code150115
tipo_viaStreet typeAV.
nombre_viaStreet nameCENTENARIO
numeroStreet number156
departamentoDepartmentLIMA
provinciaProvinceLIMA
distritoDistrictLA MOLINA

Pricing

PlanRequests/monthPrice
Free1,000,000$0
Pro10,000,000$1/month

Why latinfo vs alternatives

Featurelatinfoapis.net.peruc-peru (npm)SUNAT directo
CLI toolYes (npm i -g latinfo)NoNo (SDK only)No
JSON output--json flagREST APISDK onlyHTML
Free tier1M req/monthLimited (unspecified)Requires tokenCaptcha
Auth setup1 command (latinfo login)Manual signupSignup at ruc.conflux.peNone
Data sourceFull SUNAT padrón (11M+)SUNAT scrapingSUNAT scrapingSUNAT web
Search by nameYesNoNoLimited
DNI to RUCYesDiscontinuedYesYes
UptimeCloudflare edgeDepends on SUNATDepends on SUNATFrequent downtime
AI-friendlyStructured JSON, exit codesNo CLINo CLINo
Last updated2026Active3 years agoN/A

Countries

LIVE Peru (SUNAT padrón) — RUC, DNI, search by razón social.

More countries coming: Brazil, Mexico, Colombia, Argentina, Chile.