Skip to content

Peru SUNAT RUC and DICAPI Vessel Scraper

Try for free

Get Peru company data from SUNAT (RUC, razón social, status, condition, fiscal address with district, province and department, economic activities) and the vessels each company owns in the DICAPI registry (matrícula, tonnage, length, beam, depth). No login.

🇵🇪 Peru SUNAT RUC and DICAPI Vessel Scraper

Get Peruvian company data straight from SUNAT's public RUC consultation: RUC, razón social, taxpayer type, status (estado del contribuyente), condition (habido / no habido), fiscal address split into district, province and department, and the economic activities with their CIIU codes. For every company the actor can also add the vessels it owns in the public DICAPI vessel registry (Dirección General de Capitanías y Guardacostas): matrícula, vessel name, status, gross and net tonnage, length, beam, depth and hold capacity. No login, no account at SUNAT or DICAPI.

✨ Why use Peru SUNAT RUC and DICAPI Vessel Scraper?

  • 🏢 Official sources — every company row comes from SUNAT's own consultation page and every vessel row from DICAPI's own registry pages.
  • 🗺️ Location ready — the fiscal address is split into department, province and district, so you can filter on LORETO, MAYNAS or IQUITOS directly.
  • 🚢 Companies and their fleet together — one run gives the company and the vessels registered to its RUC.
  • 📚 More than SUNAT's first page — when a name fills SUNAT's 30-result page, the actor narrows it letter by letter to reach the rest.
  • 🔎 Filters that save work — keep only a department, province, district, economic activity (e.g. CIIU 5021 / 5022, river transport) or active contributors.
  • 📋 Honest results — names SUNAT does not know and lookups that did not answer are listed in the run summary, never silently dropped.

🎯 Use cases

  • 🚤 Build a list of river transport companies in Loreto (Iquitos) with their RUC, address, activity and vessels.
  • 🧾 Check suppliers or clients: status (ACTIVO, BAJA DE OFICIO, SUSPENSIÓN TEMPORAL) and condition (HABIDO, NO HABIDO).
  • 📊 Market research on a sector or region by economic activity.
  • ⚓ Look up vessels by matrícula (e.g. IQ-37978-MF), by a matrícula prefix (e.g. IQ-341) or by vessel name, with their owners.

🚀 How to use

  1. Enter company names (or part of a name) in Companies, the same way you would type them in SUNAT's "Nombre o Razón Social" search. You can also enter a RUC followed by the name, e.g. 20493651529 TRANSPORTE FLUVIAL MATSUYO.
  2. Optionally set the filters: department (e.g. LORETO), province, district, economic activity keywords or active contributors only.
  3. Keep Add the company's vessels on to get the DICAPI vessels of every company, or add matrículas / vessel names under Vessel search.
  4. Run the actor and export the results as JSON, CSV or Excel.

📥 Input

FieldWhat it does
companiesCompany names or parts of names; or a RUC followed by the name. A RUC on its own is looked up with the owner name DICAPI has for it (see FAQ).
splitFullSearchesReach the companies beyond SUNAT's 30-result page (default on).
includeVesselsAdd one row per vessel each company owns in DICAPI (default on).
departments, provinces, districtsKeep only companies whose fiscal address is in these places.
activityKeywordsKeep only companies with an economic activity containing one of these (CIIU code or words).
activeOnlySkip contributors whose status is not ACTIVO.
vesselSearchVessel matrículas, matrícula prefixes or vessel names to look up directly in DICAPI.
{
  "companies": ["TRANSPORTE FLUVIAL", "20600020618", "20493651529 TRANSPORTE FLUVIAL MATSUYO"],
  "departments": ["LORETO"],
  "includeVessels": true
}

📤 Output

Each row has record_type: company (SUNAT) or vessel (DICAPI). Vessel rows carry the owner company's ruc and name, so you can join them with the company rows.

Company fieldMeaning
ruc, name, trade_nameRUC, razón social, nombre comercial
taxpayer_typeTipo de contribuyente
status, deregistration_dateEstado del contribuyente (and fecha de baja when there is one)
conditionCondición del contribuyente (HABIDO, NO HABIDO ...)
fiscal_address, address, district, province, departmentDomicilio fiscal, also split into its parts
main_activity, main_activity_code, activitiesActividad económica principal and all activities with CIIU code
registration_date, activity_start_dateFecha de inscripción, fecha de inicio de actividades
vessel_count, vessel_registrationsVessels found in DICAPI for the RUC
Vessel fieldMeaning
registration, vessel_name, vessel_statusMatrícula, nombre de la nave, estado
gross_tonnage, net_tonnageArqueo bruto, arqueo neto
length_m, beam_m, depth_mEslora, manga, puntal (metres)
hold_capacityCapacidad de bodega
owners, certificatesRegistered owners and the vessel's certificates (type, issue date, validity)
[
  {
    "record_type": "company",
    "ruc": "20493651529",
    "name": "TRANSPORTE FLUVIAL MATSUYO E.I.R.L.",
    "taxpayer_type": "EMPRESA INDIVIDUAL DE RESP. LTDA",
    "status": "ACTIVO",
    "condition": "HABIDO",
    "address": "CAL.DIEGO DE ALMAGRO NRO. 761 (POR AV. FREYRE)",
    "district": "PUNCHANA",
    "province": "MAYNAS",
    "department": "LORETO",
    "main_activity": "5022 - TRANSPORTE DE CARGA POR VÍAS DE NAVEGACIÓN INTERIORES",
    "vessel_count": 3,
    "vessel_registrations": ["IQ-21546-MF", "IQ-70086-MF", "IQ-50942-MF"]
  },
  {
    "record_type": "vessel",
    "ruc": "20493651529",
    "name": "TRANSPORTE FLUVIAL MATSUYO E.I.R.L.",
    "registration": "IQ-21546-MF",
    "vessel_name": "EL GRAN DIEGO",
    "vessel_status": "Activa",
    "gross_tonnage": 468.81,
    "net_tonnage": 114.29,
    "length_m": 55.4,
    "beam_m": 7.2,
    "depth_m": 1.76,
    "hold_capacity": 451.58
  }
]

❓ FAQ

Where does the data come from? The actor makes requests to SUNAT's public RUC consultation (e-consultaruc.sunat.gob.pe) and to DICAPI's public vessel consultation (consultas.dicapi.mil.pe). It returns what those pages show, at the time of the run.

Do I need a login or a key? No. Both sources are public pages.

How many companies can I get? SUNAT lists at most 30 contributors per name search. When a search fills that page, the actor searches the name plus one more starting letter or digit (A-Z, 0-9, up to three characters) to reach the companies beyond the first 30, so a broad term such as TRANSPORTE FLUVIAL returns far more than 30. A company is returned once per entry; if two of your entries both match it, it appears under each.

Can I search by RUC only? SUNAT's RUC-number search needs an interactive check that this actor does not perform, so the actor looks companies up by name and keeps the listed contributor with your RUC. Give the RUC together with the name for the most reliable match. A RUC on its own works when the company owns vessels in DICAPI: the actor takes the owner name from DICAPI and searches SUNAT with it, then without legal-form and abbreviated words, then with its distinctive words (narrowed by one more starting letter when that fills SUNAT's page). DICAPI sometimes writes names differently from SUNAT; a RUC that SUNAT does not list for any of these names is reported in the status message and the run summary with the names tried.

What if a field is empty? The field is empty on the official page too, for example no trade name or no vessels.

Can I schedule it or use the API? Yes, like any actor: schedules, API, webhooks and integrations.

⚠️ Limits

  • SUNAT shows at most 30 contributors per name search. The letter-by-letter narrowing reaches most of the rest, but a name whose only distinguishing word is a single letter, or a narrowed search that still fills 30 results at three extra characters, can leave some companies out; add more specific names for those.
  • DICAPI shows at most 30 owners and 100 vessels per search (a matrícula prefix that fills a page is split into longer prefixes automatically).
  • SUNAT matches every word of a name search as the start of a word in the company name, in any order.
  • DICAPI does not publish the vessel type, draught (calado), passenger capacity, cargo capacity other than hold capacity, engine power or fuel type, so the actor cannot return them.
  • Legal representatives, workers and debt pages of SUNAT are not read.
  • The run summary (key-value store record RUN_SUMMARY) lists names with no SUNAT result and lookups that did not answer.
//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.