Peru SUNAT RUC Scraper avatar

Peru SUNAT RUC Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Peru SUNAT RUC Scraper

Peru SUNAT RUC Scraper

Look up taxpayers in Peru's official SUNAT RUC registry by RUC number or company name: status, condition, fiscal address and economic activity. On-demand lookup — fresh registry answers every run.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Philip Kirkbride

Philip Kirkbride

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Features

Limited permissionsMulti-tenantServer interface

Share

Peru SUNAT RUC Taxpayer Records

Look up Peruvian taxpayers in the official SUNAT RUC registry by RUC number or company name. You get one clean record per taxpayer with its status, condition, fiscal address, economic activity and registration dates, with a fresh registry answer on every run.

Built for KYB and compliance teams, B2B lead enrichment and due-diligence analysts who need to verify Peruvian suppliers, customers and partners.

What you can do with it

  • Verify a supplier or customer (KYB). Confirm that a RUC exists, is ACTIVO and HABIDO (reachable at its fiscal address), and matches the legal name you were given.
  • Screen before you pay or sign. A status such as BAJA DE OFICIO or a condition such as NO HALLADO is a red flag worth checking before onboarding.
  • Find a company's RUC. Search a name fragment and get up to 30 matching taxpayers with their RUC, status and location.
  • Enrich a lead list. Add fiscal address, economic activity, taxpayer type and start date to a list of RUCs.
  • Monitor counterparties. Re-run your RUCs on a schedule and watch estado and condicion for changes.

Also available

The Latin American company data suite: pick the job.

ActorUse when
Peru SUNAT RUC (this Actor)Peruvian taxpayer status and fiscal address
Peru SEACE ContractsAwarded Peruvian contracts by buyer or supplier
Colombia NIT RegistryColombian company records plus contract history
Brazil CNPJ RegistryVerify Brazilian companies, partners and activity
Mexico DENUE DirectoryMexican businesses with address and phone
Sanctions & AML ScreenerScreen names and wallets against sanctions lists

Quick Start

  1. Open the Actor in Apify Console. The form is prefilled with the RUC 20131312955.
  2. Enter a RUC, or clear it and enter a company name instead.
  3. Click Start, then download the dataset as JSON, CSV or Excel.
{"ruc": "20131312955"}
{"companyName": "AVICOLA", "maxResults": 10}

Provide exactly one of ruc or companyName. A RUC lookup returns one full record; a company-name search returns up to 30 matching records and, by default, attempts to enrich each with its full registry details. If enrichment fails, the search-card fields are retained with detailError. An empty input ({}) returns a small sample: the record for the example RUC 20131312955, and the status message says it was a sample. A RUC or company name left empty ({"ruc": ""}) runs the same sample.

Input

FieldTypeDefaultMeaning
rucstring—11-digit RUC number to look up. Its check digit is validated before the request, so a typo stops the run with a clear message.
companyNamestring—Company-name (razón social) fragment to search, at least 5 characters.
maxResultsinteger30Maximum name-search records. SUNAT caps one name answer at 30.
includeDetailsbooleantrueEnrich each name-search hit with its full registry record. RUC lookups always return the full record.
requestDelaySecsnumber1Pause between detail requests during enrichment, 0.5 to 10 s.

What it returns

One row per taxpayer:

FieldMeaning
rucThe 11-digit RUC number.
companyKeyStable key for the taxpayer, {source}:{ruc}.
razonSocialRegistered legal name.
estadoRegistry status, for example ACTIVO.
condicionRegistry condition, for example HABIDO.
domicilioFiscalRegistered fiscal address.
actividadEconomicaRegistered economic activity.
tipoContribuyenteTaxpayer type.
nombreComercialTrade name, when published.
fechaInscripcionDate of registration at SUNAT.
fechaInicioActividadesDate activities began.
ubicacionLocation as published.
matchTyperuc or name — how the row was found.
sourceQueryThe RUC number or company-name fragment that produced the row.
sourceThe official registry source identifier.
scrapedAtUTC time the record was observed.
detailErrorSet on a name-search row whose full details could not be fetched; the search-card fields are still returned.

Every successful run also writes a key-value OUTPUT summary (status, records, matchType, emptyReason, summaryLine). A genuine no-match is a labelled empty run: status is succeeded_empty with a clear emptyReason, no dataset rows are pushed, and the run exits successfully. Input the Actor cannot use (a RUC that fails the checksum, both lookup modes at once, an out-of-range limit) also exits successfully with status: "no_results" and an emptyReason naming the field and the fix, before any request. If the registry is unavailable or returns something unexpected, the run fails instead of reporting a false empty result.

Output example

RUC lookup row for the prefilled RUC (SUNAT's own registration):

{
"ruc": "20131312955",
"companyKey": "e-consultaruc.sunat.gob.pe:20131312955",
"razonSocial": "SUPERINTENDENCIA NACIONAL DE ADUANAS Y DE ADMINISTRACION TRIBUTARIA - SUNAT",
"estado": "ACTIVO",
"condicion": "HABIDO",
"domicilioFiscal": "AV. GARCILASO DE LA VEGA NRO. 1472 LIMA - LIMA - LIMA",
"actividadEconomica": "8411 - ACTIVIDADES DE LA ADMINISTRACIÓN PÚBLICA EN GENERAL",
"tipoContribuyente": "INSTITUCIONES PUBLICAS",
"nombreComercial": null,
"fechaInscripcion": "04/05/1993",
"fechaInicioActividades": "09/06/1988",
"matchType": "ruc",
"sourceQuery": "20131312955",
"source": "e-consultaruc.sunat.gob.pe",
"scrapedAt": "2026-09-04T12:00:00+00:00"
}

Dates are returned as SUNAT publishes them (DD/MM/YYYY).

FAQ

How fresh is the data? Each run queries the official taxpayer registry live, so the answer is what SUNAT shows at that moment.

What lookup scopes are supported? Search by an 11-digit RUC or a company-name fragment.

What happens when there is no match? When SUNAT answers that it found no taxpayer, the run is a labelled empty result: OUTPUT.status is succeeded_empty with a clear emptyReason, no dataset rows are pushed, and the run exits successfully. An unavailable or unexpected registry answer fails the run, so only a successful, labelled empty run means a real no-match.

What happens when a field is not published? Detail fields are returned as null rather than guessed. Name-search-only rows can omit detail fields. ubicacion comes from name-search cards; detailError is added only when enrichment fails.

Does it include legal representatives, debts or tax compliance history? No. It returns the RUC registry record: identity, status, condition, address, activity, type and dates.

Can I check many RUCs? One lookup runs per run. For a list, start one run per RUC from your own code or an Apify task; each run costs one start event plus one record.

Can I run it on a schedule? Yes. Save the input as a task and schedule it; compare estado and condicion between runs to catch status changes.

Which export formats are available? JSON, CSV, Excel, XML and the other dataset formats Apify offers, or read the dataset from your own code with the Apify API.

Use it as an API

Verify a Peruvian company in the official SUNAT registry: status, condition, fiscal address and economic activity. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

curl --get 'https://automatic--peru-sunat-ruc-scraper.apify.actor/' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--data-urlencode ruc=20131312955

Send the same fields as a JSON object with POST /. Results are in data. See GET /openapi.json for the request and response definitions.

Price

$0.002 per record delivered, plus $0.005 per run start. The run-start event is charged per GB of memory; the default 256 MB run is one start event. The start is charged even if the run saves no records. Platform usage is included in these prices.

Worked costs: one RUC lookup is about $0.007; a 30-result name search about $0.065; checking 100 RUCs one per run about $0.70.

For questions or issues, contact Apify support from the Actor page.

Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's Issues tab. We read every issue and use them to decide what to build next.